美文网首页
nginx部署和设置脚本

nginx部署和设置脚本

作者: 喏_ | 来源:发表于2023-08-31 16:08 被阅读0次
#安装缺少的依赖包
yum -y install make gcc gcc-c++ libtool zlib zlib-devel openssl openssl-devel pcre pcre-devel gd gd-devel

cd /home/

wget [http://nginx.org/download/nginx-1.21.6.tar.gz](http://nginx.org/download/nginx-1.21.6.tar.gz)

tar -zxvf nginx-1.21.6.tar.gz

cd nginx-1.21.6

./configure \
--prefix=/usr/local/nginx \
--pid-path=/usr/local/nginx/run \
--with-http_ssl_module \
--with-http_flv_module \
--with-http_stub_status_module \
--with-http_gzip_static_module \
--with-pcre \
--with-stream \
--with-http_image_filter_module \
--with-debug

make 

make install

export PATH=$PATH:/usr/local/nginx/sbin/

相关文章

网友评论

      本文标题:nginx部署和设置脚本

      本文链接:https://www.haomeiwen.com/subject/hmezmdtx.html