当前位置:   article > 正文

nginx报错-bash:nginx:command not found解决方法_-bash: nginx: command not found

-bash: nginx: command not found

第一种方法:

vim /etc/profile
export PATH=$PATH: /usr/local/nginx/sbin  //这个是你nginx的位置
source /etc/profile
  • 1
  • 2
  • 3

第二种方法

ln -s /usr/local/nginx/sbin/nginx  /usr/local/bin
  • 1
声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号