nginx服务重启命令与服务器各种重启命令

直接上代码了

service wdapache start|stop|restart    wdcp后台 启动|停止|重起
service nginxd start|stop|restart        nginx服务 启动|停止|重起
service httpd start|stop|restart          httpd服务 启动|停止|重起
service pureftpd start|stop|restart     ftp服务 启动|停止|重起
service mysqld start|stop|restart        mysql服务 启动|停止|重起


查看配置是否正确

nginx -t -c /etc/nginx/nginx.conf
nginx -c /etc/nginx/nginx.conf

查看配置

ps -ef | grep nginx


重启nginx

cd /etc/nginx/ #需要先进入指定目录可以 find /home -name nginx.conf  //home是指定目录,可以删掉,全服务器查找
nginx -s reload


相关内容

发表评论

验证码:
点击我更换图片

最新评论