mac环境下配置nginx

it2022-05-09  30

  1.建议使用homebrew安装(ruby安装 brew install ruby

  ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

2.安装nginxbrew install nginx3.启动nginxbrew services start nginx4.卸载nginx brew uninstall nginx以上安装需提前安装好ruby

 nginx 常用命令

 nginx #启动  nginx nginx -s quit#快速停止    nginx nginx -V #查看版本,以及配置文件地址    nginx -v #查看版本    nginx -s reload|reopen|stop|quit #重新加载配置|重启|快速停止|安全关闭    nginx nginx -h #帮助

转载于:https://www.cnblogs.com/fancyLee/p/8708977.html

相关资源:数据结构—成绩单生成器

最新回复(0)