26 lines
697 B
Plaintext
26 lines
697 B
Plaintext
#检查是否安装了pcre
|
|
rpm -qa pcre
|
|
#安装pcre
|
|
sudo yum install pcre-devel pcre -y
|
|
#安装openssl
|
|
sudo yum install openssl-devel openssl -y
|
|
|
|
#nginx安装
|
|
tar zxvf nginx-1.8.0.tar.gz
|
|
cd nginx-1.8.0
|
|
sudo ./configure \
|
|
--prefix=/usr/local/nginx \
|
|
--with-http_ssl_module \
|
|
--with-http_dav_module \
|
|
--with-http_realip_module \
|
|
--with-http_gzip_static_module \
|
|
--with-http_stub_status_module \
|
|
--with-mail \
|
|
--with-mail_ssl_module \
|
|
--with-debug \
|
|
--http-client-body-temp-path=/var/tmp/nginx/client \
|
|
--http-proxy-temp-path=/var/tmp/nginx/proxy \
|
|
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi \
|
|
--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi \
|
|
--http-scgi-temp-path=/var/tmp/nginx/scgi
|
|
sudo make && make install |