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配置文件格式

https://www.digitalocean.com/community/tutorials/understanding-the-nginx-configuration-file-structure-and-configuration-contexts

File not found解决办法

http://www.jbxue.com/article/8785.html

不配置error_log就不会打印日志。

最新文章

  1. android 创建数组
  2. 华为Java编程军规,每季度代码验收标准
  3. Java 8新特性-2 接口定义增强
  4. JAVA中static关键字
  5. JavaScript中的算法之美——栈、队列、表
  6. EBS安装提示libXtst.so.6: cannot open shared object file
  7. 越狱Season 1-Episode 21: Go
  8. AtomicInteger小小的理解
  9. cocos2d-x多分辨率适配原理分析(2.0.4之后的版本)
  10. Java / Android H基于ttp多线程下载的实现
  11. 每天一个JS 小demo之通过事件委托实现菜单展开及选中特效。主要知识点:事件
  12. Java:类类型变量
  13. MySQL安装的三种方式
  14. [经验交流] k8s mount 文件到容器目录
  15. springMVC下载中文文件名乱码【原】
  16. JAVA多线程之CountDownLatch与join的区别
  17. 使用GraphHttpClient调用Microsoft Graph接口 - PATCH
  18. DNS服务器能遭受到的DDNS攻击类型
  19. 寻路——AI
  20. linux操作系统及命令Part 2

热门文章

  1. 深入了解Redis(1)-字符串底层实现
  2. C调用C++代码
  3. 比原Bapp红包应用
  4. 牛客 51011 可达性统计(拓扑排序,bitset)
  5. Azure认知服务之表格识别器
  6. linux 命令行安装谷歌浏览器
  7. vue cli3.0使用svg全过程
  8. 欧几里得算法(gcd) 裴蜀定理 拓展欧几里得算法(exgcd)
  9. Excel 提取年月日①
  10. 【译】New experimental Razor editor for Visual Studio