bash: nginx: command not found

时间:4年前   阅读:5859

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,我们将及时处理。

微信扫码关注

更新实时通知

上一篇:检测网站广告是否被用户屏蔽以及反屏蔽

下一篇:MPlayer快捷键

网友评论

请先 登录 再评论,若不是会员请先 注册