nginx安装:
三个路径:
brew search nginx
brew install nginx
安装完以后,可以在终端输出的信息里看到一些配置路径:
/usr/local/etc/nginx/nginx.conf (配置文件路径)
/usr/local/var/www (服务器默认路径)
/usr/local/Cellar/nginx/1.8.0 (安装路径)
sudo nginx -s reload 重启nginx
ps -ef|grep nginx nginx的端口号
0 80856 1 0 9:53上午 ?? 0:00.00 nginx: master process nginx
-2 80857 80856 0 9:53上午 ?? 0:00.00 nginx: worker process
501 80867 79397 0 9:54上午 ttys001 0:00.01 grep nginx
sudo Kill -TERM 80856 杀掉nginx
网友评论