Mac安装nginx

//brew 搜索软件
brew search nginx
//brew 安装软件
brew install nginx
//brew 卸载软件
brew uninstall nginx
//brew 升级
sudo brew update
//查看安装信息(经常用到, 比如查看安装目录等)
sudo brew info nginx
//查看已经安装的软件
brew list
//启动nginx服务
sudo brew services start nginx
//查看nginx版本
nginx -v
//关闭nginx服务
sudo brew services stop nginx
//重新加载nginx
nginx -s reload
//停止nginx
nginx -s stop

你可能感兴趣的:(Mac安装nginx)