当前位置:   article > 正文

Mac m1 安装配置nginx_m1安装nginx

m1安装nginx

准备

安装

  • 执行安装nginx命令,遇到Y/N输入Y,静等执行成功,然后启动服务。
    # 默认最新版本
    brew install nginx
    
    • 1
    • 2

命令

  • Nginx启动brew services start nginx
  • Nginx停止brew services stop nginx
  • Nginx重启brew services restart nginx

安装位置

  • 配置路径(nginx.conf在这个路径下)/opt/homebrew/etc/nginx/
  • 安装路径/opt/homebrew/opt/nginx
  • 安装原路径/opt/homebrew/Cellar/nginx

配置

  • 启动成功访问http://127.0.0.1/,进入nginx环境页面表示成功
    nginx

nginx+php配置

Mac配置php+nginx

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

闽ICP备14008679号