After the nginx installation is successful, enter the command nginx, and the startup is successful.
But entering the commands
nginx -s reload and
nginx -s stop both prompt:
nginx: [error] invalid PID number "" in"/usr/local/nginx/logs/nginx.pid"
Invalid pid number
ps -ef | grep nginx
echo 6026> /usr/local/nginx/logs/nginx.pid
nginx -s reloadand
nginx -s stopcommands at this time, and the restart and stop are successful.