Nginx:command not found

Cause: To get install nginx configuration information, there is a module which is installed, using nginx -V command prompt If that was wrong.


Solution:

vim /etc/profile


Add the following two sentences at the end of the page:

PATH = $ PATH: / home / nginx / nginxssl / sbin #nginx boot file path 

export PATH


Storage


Valid configuration:

source /etc/profile


Re-configure nginx View

nginx -V

image.png



Guess you like

Origin blog.51cto.com/13502993/2457228