写下来供自己笔记以免忘记
1.停止
万能的查看程序进程命令
ps -ef|grep nginx
2.启动
2.1切换到安装目录下的sbin
2.2 启动前请先检查: ./nginx -t
看到如下显示nginx.conf syntax is ok
nginx.conf test is successful
说明配置文件正确!
2.3启动命令 ,各位需更改好自己的nginx相应目录
/opt/mysrv/nginx/sbin/nginx -c /opt/mysrv/etc/nginx/nginx.conf