Centos7安装Nginx简化版
[root@localhost ~]# yum -y install gcc pcre pcre-devel zlib zlib-devel openssl openssl-devel gcc-c++ libtool
[root@localhost ~]# cd /opt/soft
[root@localhost soft]# wget http://nginx.org/download/nginx-1.14.0.tar.gz
[root@localhost soft]# tar -zxvf nginx-1.14.0.tar.gz
[root@localhost soft]# mv nginx-1.14.0 /usr/local/nginx
[root@localhost soft]# cd /usr/local/nginx
[root@localhost nginx]# ./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fas
|