Nginx:Job for nginx.service failed

执行 service nginx start或者restart命令出现下面错误

[[email protected] ~]# service nginx restart
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.

莫名奇妙的出现了这个错误,查看logs也没什么发现,之后就停止了nginx的进程,再运行service nginx start,又可以了,具体出错原因现在还不清楚。

查看nginx进程命令

ps -ef | grep  nginx

pkill -9 nginx

原文地址:https://www.cnblogs.com/readingstuff/p/9136498.html

时间: 2024-10-30 05:21:38

Nginx:Job for nginx.service failed的相关文章

nginx提示Job for nginx.service failed because the control的问题

启动nginx时就报错!Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. 墙内外找了一圈找了一圈终于还是在墙外找到答案了.. 现在假设你是这样操作的:你修改了/etc/nginx/conf.d/default.con

nginx启动报错:Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' fo

一.背景 这个错误在重启nginx或者启动nginx的时候,经常会出现.我之前也一直认为出现这个错误是因为有程序占用了nginx的进程.但是知其然不知其所以然.每次报错都有点懵逼,所以这边一步步排查错误,做个记录. 二.排错过程 1.按照提示 //按照提示,执行此命令,查看错误原因 systemctl status nginx.service 由报错信息可知,nginx绑定80端口失败.详细错误请输入 -l 继续查看 2.继续跟踪错误 //查看错误的详情 systemctl status ngi

nginx.service: Failed to read PID from file /run/nginx.pid: Invalid argument解决

先附上错误信息: 1 (myblog) [email protected]:/home/uwsgi# service nginx status 2 ● nginx.service - A high performance web server and a reverse proxy server 3 Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) 4 Active: activ

把Nginx加为系统服务(service nginx start/stop/restart)

1.编写脚本,名为nginx #!/bin/sh # # nginx - this script starts and stops the nginx daemon # # chkconfig:   - 85 15 # description: Nginx is an HTTP(S) server, HTTP(S) reverse \ #               proxy and IMAP/POP3 proxy server # processname: nginx # config:  

nginx: [alert] kill(2480, 10) failed (3: No such process)的解决办法

[问题描述] 更改完nginx.conf文件后,执行/app/nginx/sbin/nginx -s reload命令重新加载配置文件,报以下错误信息: nginx: [alert] kill(2480, 10) failed (3: No such process) 提示没有相关进程. [解决] 其实这个问题很低级的说,就是我之前压根就没有启动nginx服务,执行/app/nginx/sbin/nginx,开启nginx服务后,重新加载nginx配置,一切正常! [附录] nginx帮助信息

Nginx错误:nginx: [error] OpenEvent("Global\ngx_reload_6252") failed (2: The system cannot find the file specified)

执行nginx -s reload命令: nginx: [error] OpenEvent("Global\ngx_reload_6252") failed (2: The system cannot find the file specified) 错误原因: Nginx 尚未启动导致,执行 start nginx 命令开启Nginx

nginx: [alert] kill(1668, 1) failed (3: No such process)的解决办法及nginx服务常用命令总结

[问题描述] 更改完nginx.conf文件后,执行/application/nginx/sbin/nginx -s reload命令重新加载配置文件,报以下错误信息: nginx: [alert] kill(1668, 1) failed (3: No such process) 提示没有相关进程. [解决] 其实这个问题很低级的说,就是我之前压根就没有启动nginx服务,执行/app/nginx/sbin/nginx,开启nginx服务后,重新加载nginx配置,一切正常! [nginx服务

解决 重启nginx: [alert] kill(189, 1) failed (3: No such process)

解决 nginx: [alert] kill(189, 1) failed (3: No such process) [[email protected]/]# nginx -s reloadnginx: [alert] kill(189, 1) failed (3: No such process)  杀死189进程,可是并没有[[email protected] /]# whereis ngnixngnix:[[email protected]/]# [[email protected] /

nginx: [alert] kill(1726, 1) failed

在启动nginx的时候出现如下命令:检查语法正常[[email protected] nginx]# /application/tools/nginx/sbin/nginx -t nginx: the configuration file /application/tools/nginx1.6.2/conf/nginx.conf syntax is oknginx: configuration file /application/tools/nginx1.6.2/conf/nginx.conf