在MAC下关于Nginx的一些小操作,不太熟悉就记录下
1.安装
brew install nginx
2.文件目录
which nginx ---------查找文件所在目录
3.nginx配置文件
存放目录:/usr/local/etc/nginx/
编辑: vim nginx.config
4.启动/关闭nginx
启动 sudo nginx
关闭 sudo nginx -s stop
5.查看进程
ps aux|grep nginx
6.配置文件编辑


在MAC下关于Nginx的一些小操作,不太熟悉就记录下
1.安装
brew install nginx
2.文件目录
which nginx ---------查找文件所在目录
3.nginx配置文件
存放目录:/usr/local/etc/nginx/
编辑: vim nginx.config
4.启动/关闭nginx
启动 sudo nginx
关闭 sudo nginx -s stop
5.查看进程
ps aux|grep nginx
6.配置文件编辑
本文标题:nginx安装及配置
本文链接:https://www.haomeiwen.com/subject/krrgzftx.html
网友评论