Linux CenterOS 安装Nginx详细步骤

5 篇文章 0 订阅
  1. 安装Gcc编译环境、及相应的组件
  2. yum install gcc-c++
    yum install -y pcre pcre-devel
    yum install -y zlib zlib-devel
    yum install -y openssl openssl-devel
  3.  创建目录并上传nginx包

  943  mkdir /usr/local/nginx
  944  cd /usr/local/nginx/
  945  rz
  946  tar -zxvf nginx-1.18.0.tar.gz 
  947  cd nginx-1.18.0
  948  ./configure
  949  make && make install
  950   vim /etc/profile
  951  source /etc/profile
  952  cp /usr/local/nginx/conf/nginx.conf /usr/local/nginx/conf/nginx.conf-bak
  953  ps -ef | grep nginx
  954  ll
  955  nginx
  956  ps -ef | grep nginx
  957  cd /usr/local/nginx/conf/
  958  nginx -t
  959  nginx -s reload
  960  cd ..
  961  pwd
  962  ./configure --with-http_ssl_module
  963  cd /usr/local/nginx/
  964  ./configure --with-http_ssl_module
  965  cd /usr/local/nginx/
  966  cd nginx-1.18.0
  967  ./configure --with-http_ssl_module
  968  cd
  969  nginx -t
  970  yum -y install openssl openssl-devel
  971  cd /usr/local/nginx/nginx-1.18.0
  972  ./configure
  973  ./configure --with-http_ssl_module
  978  nginx -t
  979  nginx -s reload

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值