备忘。
原文地址:http://mrjeye.iteye.com/blog/1317763
解压
- tar -xzf nginx-1.1.11.tar.gz
添加操作权限
- chmod a+rwx *
- ./configure --without-http_rewrite_module
- make && make install
- sudo /usr/local/nginx/sbin/nginx
--- 环境配置
- sudo vim /etc/profile
添加(或修改)
- export PATH=/usr/local/nginx/sbin:$PATH
- source /etc/profile
- mrjs-MacBook-Pro:~ mrj$ which nginx
- /usr/local/nginx/sbin/nginx
Welcome to nginx!