centos7 安装 nginx-1.14.2

第一步:安装依赖包

yum -y install pcre-devel  openssl openssl-devel libevent-devel libxslt-devel gcc gcc-c++ gcc-g7

第二步:下载 nginx-1.14.2.tar.gz

               解压到 /usr/local/tools

               tar -zxvf nginx-1.14.2.tar.gz

               cd  nginx-1.14.2

第三步:编译安装

              ./configure --prefix=/usr/local/nginx  --with-select_module --with-poll_module --with-file-aio --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module   --with-http_sub_module --with-http_dav_module  --with-http_flv_module --with-http_mp4_module --with-http_gzip_static_module  --with-http_random_index_module  --with-http_secure_link_module  --with-http_degradation_module --with-http_stub_status_module  --with-mail --with-mail_ssl_module

               make && make install 

猜你喜欢

转载自www.cnblogs.com/ligang0357/p/11362469.html
今日推荐