Shell connects sudo -s to switch to the root directory

1. Check whether nginx is installed and the installation directory. In “/ export/servers/nginx/conf”

find /|grep nginx.conf
Copy the code

2. Restart the nginx, general directory in/export/servers/nginx/sbin

Nginx: [Alert] kill(23894, 1) Failed (3: No such process

Check whether the host configuration is disabled

②bash: nginx: command not found

To add a. /

./nginx -s reload
Copy the code