原因:raw.githubusercontent.com 无法访问
- 通过该地址,查看可以访问的IP地址 site.ip138.com
- 设置hosts
sudo vi /etc/hosts例如填入如下内容:
182.43.124.6 raw.githubusercontent.com 原因:raw.githubusercontent.com 无法访问
sudo vi /etc/hosts例如填入如下内容:
182.43.124.6 raw.githubusercontent.com MacOS可以使用launchctl命令管理服务,也可以使用brew services。
brew services 相比 launchctl,操作更简化,更加类似 Centos 的 systemd 命令。
例如:启动nginx
brew services start nginx例如:停止php-fpm
brew services stop php 如果还未安装homebrew的话,使用以下命令安装
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"卸载命令
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"查看
cd "$(brew --repo)" && git remote -v更换
git remote set-url origin https://mirrors.cloud.tencent.com/homebrew/brew.git