所有文件都放在/opt目录下
tar -zxvf pcre-8.34.tar.gz
tar -zxvf zlib-1.2.8.tar.gz
tar -zxvf openssl-1.0.1c.tar.gz
tar -zxvf nginx-1.4.4.tar.gz
cd nginx-1.4.4
#这里全部复制
./configure --sbin-path=/usr/local/nginx/nginx \
--conf-path=/usr/local/nginx/nginx.conf \
--pid-path=/usr/local/nginx/nginx.pid \
--with-http_ssl_module \
--with-pcre=/opt/pcre-8.34 \
--with-zlib=/opt/zlib-1.2.8 \
--with-openssl=/opt/openssl-1.0.1c
#这里全部复制
make
make install
启动
/usr/local/nginx/nginx
查看进程是否启动
ps -ef|grep nginx