标签:查看命令 star span local size oca kill 错误 emc
启动nginx服务时如果遇到这个错误 Job for nginx.service failed because the control process exited with error code. See “systemctl stat 可能原因如下:
1.nginx配置文件有错误
运行下面命令查看修改
nginx -t
检查端口是否被占用
netstat -tnlp
如果端口已经被占用,自己权衡一下是换个端口还是把占用端口的进程杀掉
如果已经启动使用下面命令干掉即可
pkill -9 nginx
service nginx stop
systemctl stop nginx
service nginx start
systemctl start nginx
service nginx reload
systemctl restart nginx
systemctl enable nginx
systemctl disable nginx
首先利用配置文件启动nginx命令: nginx -c /usr/local/nginx/conf/nginx.conf 重启服务: service nginx restart 快速停止或关闭Nginx:nginx -s stop 正常停止或关闭Nginx:nginx -s quit 配置文件修改重装载命令:nginx -s reload
标签:查看命令 star span local size oca kill 错误 emc
原文地址:https://www.cnblogs.com/fugitive/p/14836382.html