Troubleshooting of nginx in physical examination server

Time:2021-9-23

View and stop all Java processes under Linux

1.ps -ef | grep java

View all Java process commands under Linux: PS – EF | grep Java

Nginx reports an error open() “/ usr / local / nginx / logs / nginx. PID” failed (2: no such file or director

When nginx starts, an error is reported. Nginx: [error] open() “/ usr / local / nginx / logs / nginx. PID” failed (2: no such file or directory). After entering the logs directory, it is found that there is no nginx.pid file

resolvent:

/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

After the specified configuration file starts nginx, nginx.pid is generated

This work adoptsCC agreement, reprint must indicate the author and the link to this article

Recommended Today

Supervisor

Supervisor [note] Supervisor – H view supervisor command help Supervisorctl – H view supervisorctl command help Supervisorctl help view the action command of supervisorctl Supervisorctl help any action to view the use of this action 1. Introduction Supervisor is a process control system. Generally speaking, it can monitor your process. If the process exits abnormally, […]