当前位置:   article > 正文

m1芯片brew安装nginx_brew nginx

brew nginx
  1. brew update
  2. brew search nginx
  3. # 如果安装,报错:Error: Failure while executing; `tar --extract --no-same-owner --file
  4. # /Users/xxx/Library/Caches/Homebrew/
  5. # downloads/2c92bd4234d682c86f85120598f6801772112cf7835ab4b70ce00dcbd9718aa1--pcre-8.45.ar
  6. # m64_big_sur.bottle.tar.gz --directory /private/tmp/d20210813-54722-1c0d6n0` exited with 1.
  7. # 以上报错,那么需要手动执行:brew install pcre
  8. brew install nginx
说明路径
nginx配置路径(conf等文件)/opt/homebrew/etc/nginx
nginx中的日志/opt/homebrew/var/log/nginx
nginx中访问默认首页地址/opt/homebrew/var/www
  1. nginx -version
  2. # 启动nginx(如果要指定配置:nginx -c xxx.conf),启动后的默认端口为8080
  3. nginx
  4. # 查看nginx是否启动(查看进程是否存在)
  5. ps -ef|grep nginx
  6. nginx -s stop
  7. nginx -s reload

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/264619
推荐阅读
相关标签
  

闽ICP备14008679号