首页 > 其他 > 详细

centos 安装 nginx

时间:2020-02-22 13:10:17      阅读:46      评论:0      收藏:0      [点我收藏+]

centos yum源不包含nginx, 需要使用rpm包安装:

 rpm -ivh http://nginx.org/packages/centos/7/x86_64/RPMS/nginx-1.10.0-1.el7.ngx.x86_64.rpm  

成功消息:

Retrieving http://nginx.org/packages/centos/7/x86_64/RPMS/nginx-1.10.0-1.el7.ngx.x86_64.rpm
warning: /var/tmp/rpm-tmp.Wy9IRo: Header V4 RSA/SHA1 Signature, key ID 7bd9bf62: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:nginx-1:1.10.0-1.el7.ngx         ################################# [100%]
----------------------------------------------------------------------

Thanks for using nginx!

Please find the official documentation for nginx here:
* http://nginx.org/en/docs/

Commercial subscriptions for nginx are available on:
* http://nginx.com/products/

----------------------------------------------------------------------

  

 

安装成功后设为自动启动:

systemctl enable nginx

  

centos 安装 nginx

原文:https://www.cnblogs.com/kuibono/p/centos-install-nginx.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!