本站教程收集整理的这篇文章主要介绍了bash – 找不到NGINX brew install命令,本站教程本站觉得挺不错的,现在分享给大家,也给大家做个参考。
我做
$brew install Nginx
得到:
==> Downloading http://Nginx.org/download/Nginx-1.2.2.tar.gz Already downloaded: /Library/Caches/Homebrew/Nginx-1.2.2.tar.gz ==> Patching patching file conf/Nginx.conf ==> ./configure --prefix=/usr/local/Cellar/Nginx/1.2.2 --with-http_ssl_module --with-pcre --with-ipv6 --with-cc-opt=-I/usr/local/include --with-ld-opt=-L/usr/local/lib --conf ==> make ==> make install ==> Caveats In thE interest of allowing you to run `Nginx` without `sudo`,the default port is set to localhost:8080. If you want to host pages on your local machine to the public,you should change that to localhost:80,and run `sudo Nginx`. You'll need to turn off any other web servers running port 80,of course. You can start Nginx automatically on login running as your 美国高防vps user with: mkdir -p ~/Library/LaunchAgents cp /usr/local/Cellar/Nginx/1.2.2/homebrew.mxcl.Nginx.plist ~/Library/LaunchAgents/ launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.Nginx.plist Though note that if running as your user,the launch agent will fail if you try to use a port below 1024 (such as http's default of 80.) Warning: /usr/local/sbin is not in your PATH You can amend this by altering your ~/.bashrc file
我在?/ .bashrc文件中有这个:
export PATH=$PATH:/usr/local/sbin
当我运行Nginx -v或sudo Nginx -t我得到这个:
-bash: Nginx: command not found
我没有正确安装Nginx吗?
运行echo $PATH,/usr/local / sbin会出现吗?
如果不:
尝试获取?/ .bashrc文件并查看它是否出现:source~ / .bashrc
再次运行echo $PATH.它应该是apear.
本站总结
以上是本站教程为你收集整理的bash – 找不到NGINX brew install命令全部内容,希望文章能够帮你解决bash – 找不到NGINX brew install命令所遇到的程序开发问题。
如果觉得本站教程网站内容还不错,欢迎将本站教程推荐给好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。