第一步:安装依赖包
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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。