连续复制
一键复制
一键打包
一、直接关闭brew
执行命令时的自动更新
# 1. 编辑配置文件
vim ~/.bash_profile
# 2. 文件内新增一行
export HOMEBREW_NO_AUTO_UPDATE=true
# 3. 重新加载配置文件
source ~/.bash_profile
二、替换brew
源
# 替换brew.git:
cd "$(brew --repo)"
git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git
# 替换homebrew-core.git:
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git
# 应用生效
brew update
# 替换homebrew-bottles:
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~/.bash_profile
source ~/.bash_profile
三、官方默认信息
# 1. 重置brew.git
cd "$(brew --repo)"
git remote set-url origin https://github.com/Homebrew/brew.git
# 2. 重置homebrew-core.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://github.com/Homebrew/homebrew-core.git
问题
Library not loaded: /usr/local/opt/libpsl/lib/libpsl.5.dylib
brew reinstall php@7.2 --build-from-source
关闭随机启动
# 系统
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
# 本地
sudo launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
开启随机启动
# 系统
sudo launchctl load -w /System/Library/LaunchDaemons/homebrew.mxcl.mysql.plist
# 本地
sudo launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
apache命令
sudo apachectl start|restart|stop
评论已关闭