码迷,mamicode.com
首页 > 系统相关 > 详细

029_mac下nginx管理

时间:2018-04-27 02:46:07      阅读:195      评论:0      收藏:0      [点我收藏+]

标签:mac   cal   bee   var   login   with   col   www.   sharp   

一、

brew info nginx     #查看nginx信息
nginx: stable 1.13.12 (bottled), HEAD
Docroot is: /usr/local/var/www

The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that
nginx can run without sudo.

nginx will load all files in /usr/local/etc/nginx/servers/.

To have launchd start nginx now and restart at login:
  brew services start nginx
Or, if you don‘t want/need a background service you can just run:
  nginx

Reference: https://www.jianshu.com/p/6c7cb820a020

二、

 

029_mac下nginx管理

标签:mac   cal   bee   var   login   with   col   www.   sharp   

原文地址:https://www.cnblogs.com/itcomputer/p/8955350.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!