自己整理好用好用非常好用的nginx安装代码,默认带了ssl模块 所有temp都在temp文件下面

#一键安装上面四个依赖
yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel

#创建一个文件夹
cd /usr/local
mkdir nginx
cd nginx
#下载tar包
wget http://nginx.org/download/nginx-1.18.0.tar.gz
tar -xvf nginx-1.18.0.tar.gz

#进入nginx目录
cd /usr/local/nginx
#temp 用来存放临时文件
mkdir temp
#存放缓存
mkdir temp/cache_temp
#进入目录
cd nginx-1.18.0
#执行命令
./configure --prefix=/usr/local/nginx --http-client-body-temp-path=temp/client-body-temp --http-proxy-temp-path=temp/proxy-temp --http-fastcgi-temp-path=temp/fastcgi-temp --http-uwsgi-temp-path=temp/uwsgi-temp --http-scgi-temp-path=temp/scgi-temp  --with-http_ssl_module
#执行make命令
make
#执行make install命令
make install

 

相关文章:

  • 2022-01-14
  • 2021-07-29
  • 2021-09-04
  • 2021-12-31
  • 2021-05-24
  • 2021-12-22
  • 2021-10-22
  • 2021-04-07
猜你喜欢
  • 2021-04-11
  • 2022-12-23
  • 2021-08-08
  • 2021-05-08
  • 2021-07-21
  • 2022-12-23
  • 2021-07-10
相关资源
相似解决方案