安装常用软件
chrome vscode 坚果云 iTerm2 网易云音乐 ssr Proxifier 等
安装oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
chsh -s /bin/zsh
安装brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安装lnmp开发环境
brew install openssl ansible git wget mysql@5.7 nginx node php@7.2 redis composer
brew link php@7.2 -force
安装pecl
curl -O https://pear.php.net/go-pear.phar
sudo php -d detect_unicode=0 go-pear.phar
输入 1,将安装根目录修改为 /usr/local/pecl;
输入 4,将命令安装到 /usr/local/bin 目录;
安装php扩展
pecl install yaf
pecl install redis
启动服务
brew services start mysql@5.7
brew services start nginx
brew services start php@7.2
brew services start redis