bash: nginx: command not found
时间:5年前 阅读:7084
nginx 安装目录 /usr/local/nginx/sbin/nginx
在用户目录下 touch .bash_profile ,添加PATH:
PATH=$PATH:/usr/local/nginx/sbin export PATH
刷新 source .bash_profile
此时 which nginx 可以输出正确的路径。
本站声明:网站内容来源于网络,如有侵权,请联系我们https://www.qiquanji.com,我们将及时处理。

微信扫码关注
更新实时通知
网友评论