当前位置: 首页 > news >正文

MacOS Nginx

查看是否安装:brew info nginx
安装:brew install nginx
卸载:brew uninstall nginx
查看版本:nginx -v
安装目录:/opt/homebrew/Cellar/nginx/1.29.0 (27 files, 2.5MB)
根目录:Docroot is: /opt/homebrew/var/www
配置文件:/opt/homebrew/etc/nginx/nginx.conf
nginx will load all files in /opt/homebrew/etc/nginx/servers/
通过brew启动nginx:brew services start nginx
通过brew重启nginx:brew services restart nginx
直接启动:nginx
重启服务:nginx -s reload

http://www.hskmm.com/?act=detail&tid=28292

相关文章:

  • 缓存的击穿、雪崩、穿透在你项目中的场景是什么
  • [WC2021] 表达式求值
  • Set集合
  • AI时代下,如何看待“算法利维坦”?
  • JAVA - LinkedList 与 ArrayList 区别和 LinkedList 的四大接口解析
  • 苍穹外卖第三天(Swagger、@RequestParam和@RequestBody的使用场景、@PostMapping和@RequestMapping的区别、对象属性拷贝、@Insert注解)
  • Git 多账号管理
  • Hyper Server 2019安装I226-V网卡驱动
  • P10201 永恒
  • CF1209H tj
  • AirBattery - 在Mac上实时监控所有苹果设备电量
  • HTML学习日记
  • 10.10每日总结
  • 二分图与网络流 Trick
  • 10月10号
  • win11 系统如何进行硬盘分区?固态硬盘怎么分区?SSD 固态硬盘分区教程
  • 10/10
  • 数论(未完)
  • 没做完的题
  • 第十一天
  • JavaScriptDay1
  • 淘宝NPM镜像地址https://registry.npm.taobao.org不可用
  • 星星充电一面
  • 6 CF1034 div3 题解
  • 5 ABC413 题解
  • 4 CF 1032 div3 题解
  • 3 ABC411 C ~ E题解
  • 9 ABC408 D~F 题解
  • 8 ABC425 G 题解
  • 智能防御,安全赋能:AI-FOCUS 滤海AI DLP 化解外部 AI 风险