安装包下载网址:

http://nginx.org/en/download.html

进入Linux文件夹执行

wget http://nginx.org/download/nginx-1.8.0.tar.gz

安装nginx依赖模块

yum -y install gcc gcc-c++ automake pcre pcre-devel zlib zlib-devel open openssl-devel

进入解压的文件夹

 ./configure --with-http_ssl_module  
支持https 也可以自己继续添加别的参数

make

make install

 

设置开机启动

echo "/usr/local/nginx/sbin/nginx" >> /etc/rc.d/rc.local

相关文章:

  • 2021-10-04
  • 2021-11-10
  • 2021-08-01
  • 2021-04-28
猜你喜欢
  • 2021-07-26
  • 2021-12-27
  • 2021-09-09
  • 2022-12-23
  • 2021-04-17
  • 2021-04-09
相关资源
相似解决方案