Mac OSX上安装Nginx
1. 通过brew instal nginx安装
==> Downloading https://homebrew.bintray.com/bottles/nginx-1.10.1.el_capitan.bot
######################################################################## 100.0%
==> Pouring nginx-1.10.1.el_capitan.bottle.tar.gz
==> 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
==> Summary
/usr/local/Cellar/nginx/1.10.1: 7 files, 972.2K
/usr/local/bin/nginx
2. Nginx配置文件格式
File not found解决办法
http://www.jbxue.com/article/8785.html
不配置error_log就不会打印日志。
最新文章
- android 创建数组
- 华为Java编程军规,每季度代码验收标准
- Java 8新特性-2 接口定义增强
- JAVA中static关键字
- JavaScript中的算法之美——栈、队列、表
- EBS安装提示libXtst.so.6: cannot open shared object file
- 越狱Season 1-Episode 21: Go
- AtomicInteger小小的理解
- cocos2d-x多分辨率适配原理分析(2.0.4之后的版本)
- Java / Android H基于ttp多线程下载的实现
- 每天一个JS 小demo之通过事件委托实现菜单展开及选中特效。主要知识点:事件
- Java:类类型变量
- MySQL安装的三种方式
- [经验交流] k8s mount 文件到容器目录
- springMVC下载中文文件名乱码【原】
- JAVA多线程之CountDownLatch与join的区别
- 使用GraphHttpClient调用Microsoft Graph接口 - PATCH
- DNS服务器能遭受到的DDNS攻击类型
- 寻路——AI
- linux操作系统及命令Part 2