1
Magician 2016-06-09 15:15:40 +08:00 via iPhone
/usr/local/etc/nginx/conf.d/手动配置
|
2
eightqueen OP @Magician 根本就没有 conf.d 目录
|
3
tianice 2016-06-09 22:24:47 +08:00
先确认看的 nginx.conf 是不是对。 nginx -t 可以查看。没有 root 配置是什么意思?不写也是有默认值的
|
4
eightqueen OP 去国外的网站查了一下,终于搞明白了,国内的还是不靠谱。
应该去修改 /usr/local/Cellar/nginx/[version]/html |
5
livelazily 2016-06-10 00:19:09 +08:00
@eightqueen brew inof nginx 就有说明:
==> Caveats 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 |
6
ryd994 2016-06-10 02:07:31 +08:00
nginx -V 看编译参数
包括配置文件路径和默认 root 都有 |
7
leefly 2016-06-14 10:39:58 +08:00
同 5 楼, brew info nginx 之后和 nginx 相关的信息都有了
|