liunx 下Nginx的安装

1、
[root@MiWiFi-R1CL-srv nginx-1.8.1]# which gcc
/usr/bin/gcc
2、
[root@MiWiFi-R1CL-srv nginx-1.8.1]# which g++
/usr/bin/g++
3、
[root@MiWiFi-R1CL-srv nginx-1.8.1]# which make
/usr/bin/make
4、pcre 模块 为了重写rewrite
[root@MiWiFi-R1CL-srv nginx-1.8.1]# which pcre
/usr/bin/which: no pcre in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
[root@MiWiFi-R1CL-srv nginx-1.8.1]# rpm -qa pcre
pcre-7.8-6.el6.x86_64
5、gzip压缩
[root@MiWiFi-R1CL-srv nginx-1.8.1]# which gzip
/bin/gzip
6、
./configure –prefix=/usr/local/nginx –with-http_ssl_module –without-http_rewrite_module
7、make
8、make install

Leave a Reply

电子邮件地址不会被公开。 必填项已用*标注