nginx 编译安装
2017-10-13 16:37
337 查看
nginx 编译安装
一、安装nginx时必须先安装相应的编译工具yum -y install gcc gcc-c++ autoconf automake
yum -y install zlib zlib-devel openssl openssl-devel pcre-devel
建立nginx 组
groupadd -r nginx
useradd -s /sbin/nologin -g nginx -r nginx
id nginx
zlib:nginx提供gzip模块,需要zlib库支持
openssl:nginx提供ssl功能
pcre:支持地址重写rewrite功能
二、tar -zxvf
nginx-1.2.8.tar.gz
三、cd
nginx-1.2.8
四、./configure \
--prefix=/usr \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--pid-path=/var/run/nginx/nginx.pid \
--user=nginx \
--group=nginx \
--with-http_ssl_module \
--with-http_flv_module \
--with-http_gzip_static_module \
--http-log-path=/var/log/nginx/access.log \
--http-client-body-temp-path=/var/tmp/nginx/client \
--http-proxy-temp-path=/var/tmp/nginx/proxy \
--http-fastcgi-temp-path=/var/tmp/nginx/fcgi \
--with-http_stub_status_module
五、make && make
install
小结:centos没有安装make编译器
解决:yum -y install gcc automake autoconf libtool make
相关文章推荐
- 编译安装nginx php mysql 遇到的问…
- 1.2 nginx编译安装
- Linux 下安装nginx 详解(新手)
- linux 下 opencv2.0 的编译与安装 …
- linux 下 opencv2.0 的编译与安装 …
- 源码编译安装MySQL 5.7.9
- <深入剖析Nginx> 编译安装nginx 以及使用eclipse编译开发nginx
- linux centos7 编译安装mysql 5.6
- Linux:Qt的编译和安装配置 (本…
- 2&nbsp;Nginx服务器的安装与配置
- Centos6.2&nbsp;下Nginx的安装和配置
- linux 下编译安装php mongodb扩展
- CentOS 6.3安装Nginx 配…
- Centos7下编译安装配置Nginx+PHP+MySql环境
- 在 centos 7 中编译安装 nginx
- 源码编译lnmp之简介与nginx安装
- Debug&nbsp;和&nbsp;Release&nbsp;编译方式的本质…
- nginx编译安装教程
- airprobe&nbsp;安装&nbsp;part1
- Nginx1.8.0 编译安装