重启有两种方法
1)在终端输入输入如下命令即可重启
promote:~ yangqianhua$ cd /usr/local/Cellar/nginx/1.8.0/bin/
promote:bin yangqianhua$ ./nginx -s reload
promote:bin yangqianhua$
2)根据进程号重启,执行命令 kill -HUP 进程号
启动:sudo nginx
停止:sudo nginx -s stop
重启有两种方法
1)在终端输入输入如下命令即可重启
promote:~ yangqianhua$ cd /usr/local/Cellar/nginx/1.8.0/bin/
promote:bin yangqianhua$ ./nginx -s reload
promote:bin yangqianhua$
2)根据进程号重启,执行命令 kill -HUP 进程号
启动:sudo nginx
停止:sudo nginx -s stop