Mac OS X 10.9.3上安装配置nginx-1.7.2

2014-06-27 wcdj


先从官方的wiki开始。http://wiki.nginx.org/GettingStarted,了解下配置nginx编译选项的各个含义。

./configure --help 查看具体编译选项使用说明,然后写一个简单的安装脚本。

Nginx modules must be selected during compile, run-time selection of modules is not currently supported.

A full summary of the compile-time options, including optional modules, can be found in the provided configure script by running./configure --help


#!/bin/bash

echo "begin to install nginx-1.7.2"

echo "configure..."
./configure --prefix=/Users/gerryyang/LAMP/nginx/install/nginx-1.7.2 \
                 --with-debug \
                 --with-pcre=/Users/gerryyang/LAMP/pcre/pcre-8.35 \
                 --with-openssl=/Users/gerryyang/LAMP/OpenSSL/openssl-1.0.1g

echo "make and make install..."
make && make install

指定后的配置和安装选项结果值如下:

Configuration summary
  + using PCRE library: /Users/gerryyang/LAMP/pcre/pcre-8.35
  + using OpenSSL library: /Users/gerryyang/LAMP/OpenSSL/openssl-1.0.1g
  + md5: using OpenSSL library
  + sha1: using OpenSSL library
  + using system zlib library

  nginx path prefix: "/Users/gerryyang/LAMP/nginx/install/nginx-1.7.2"
  nginx binary file: "/Users/gerryyang/LAMP/nginx/install/nginx-1.7.2/sbin/nginx"
  nginx configuration prefix: "/Users/gerryyang/LAMP/nginx/install/nginx-1.7.2/conf"
  nginx configuration file: "/Users/gerryyang/LAMP/nginx/install/nginx-1.7.2/conf/nginx.conf"
  nginx pid file: "/Users/gerryyang/LAMP/nginx/install/nginx-1.7.2/logs/nginx.pid"
  nginx error log file: "/Users/gerryyang/LAMP/nginx/install/nginx-1.7.2/logs/error.log"
  nginx http access log file: "/Users/gerryyang/LAMP/nginx/install/nginx-1.7.2/logs/access.log"
  nginx http client request body temporary files: "client_body_temp"
  nginx http proxy temporary files: "proxy_temp"
  nginx http fastcgi temporary files: "fastcgi_temp"
  nginx http uwsgi temporary files: "uwsgi_temp"
  nginx http scgi temporary files: “scgi_temp"

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值