nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)

解决办法:

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

 

-bash: nginx: command not found
解决办法:
vim /etc/profile
PATH=$PATH: /usr/local/nginx/sbin  //这个是你nginx的位置
export PATH

 

posted @ 2020-07-06 21:28  榕树下的回忆  阅读(207)  评论(0编辑  收藏  举报