需要安装xcode、git
环境配置
配置命令行科学上网方式:
// 设置终端git代理 为CURL设置proxy
git config --global http.proxy 'socks5://127.0.0.1:1086'
git config --global https.proxy 'socks5://127.0.0.1:1086'
// ...
阿里云
# 替换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...
一键解决:自动脚本(全部国内地址)(在Mac os终端中复制粘贴回车下面这句话)
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
参考链接:https://zhuanlan.zhihu.com/p/111014448
1. 开机启动nginx:
在 /Library/LaunchDaemons/ 目录新建 org.macports.nginx.plist 文件:
[codesyntax lang="xml"]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST ...