通过rpm 添加yum源

rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm

安装

yum -y install nginx

设置启动nginx同时以开机自动运行

systemctl start nginx.service
systemctl enable nginx.service

转自:https://www.cnblogs.com/Liang-jc/p/8137956.html

相关文章:

  • 2022-01-04
  • 2021-07-22
  • 2021-12-25
  • 2021-11-21
  • 2021-11-12
  • 2022-01-29
猜你喜欢
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-08
  • 2021-11-19
  • 2021-08-25
  • 2022-02-08
相关资源
相似解决方案