NGINX brew install command not found

给你一囗甜甜゛ 提交于 2019-12-05 03:53:05

run echo $PATH, does /usr/local/sbin appear? if not: Try sourcing your ~/.bashrc file and see if it appears: source ~/.bashrc

run echo $PATH again. It should apear.

In my debian 6 server nginx is installed in /usr/sbin/ . If you want to access it directly from terminal add that directory to your PATH variable:

PATH=/usr/sbin/:$PATH

The sbin directories are commonly added to PATH for the root user, are you logged in the terminal as root ? If not you can do so by entering su command.

I just install nginx by brewHome, and I find the path is /usr/local/Cellar/nginx/1.12.0/bin, so I just add export PATH=$PATH:/usr/local/Cellar/nginx/1.12.0/bin to the conf file, and it works well.

FYI

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!