yum -y install gcc gcc-c++ autoconf automake libtool make cmake
yum -y install zlib zlib-devel openssl openssl-devel pcre-devel

2.安装nginx 

./configure  --with-http_ssl_module  --with-http_stub_status_module --with-pcre

  

make
make install

3,安装之后nginx 的路径是  /usr/local/nginx

4.在全局变量里面配置nginx的环境变量.方便以后使用nginx的命令,

 

vim /etc/profile 

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

相关文章:

  • 2021-07-03
  • 2022-12-23
  • 2021-06-03
  • 2021-11-08
  • 2021-12-20
猜你喜欢
  • 2022-12-23
  • 2021-06-26
  • 2022-01-09
  • 2021-12-26
  • 2022-12-23
  • 2021-11-29
  • 2018-02-28
相关资源
相似解决方案