当前位置:   首页安装配置香港主机Centos7系统安装nginx教程_安装香港

香港主机Centos7系统安装nginx教程_安装香港

发布日期:2022-01-14 17:23 | 文章来源:gibhub

香港主机Centos7系统安装nginx可以通过yum安装!直接通过 yum install nginx 肯定是不行的,因为yum没有nginx,所以首先把 nginx 的源加入 yum 中。运行下面的命令:1.将nginx放到yum repro库中代码如下:[root@localhost ~]# rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm2.查看nginx信息[root@localhost ~]# yum info nginx3.使用yum安装ngnix[root@localhost ~]# yum install nginx效果如下:[root@localhost ~]# yum install nginx已加载插件:fastestmirror, langpacksLoading mirror speeds from cached hostfile* base: mirrors.usc.edu* extras: mirror.raystedman.net* updates: mirror.metrocast.net正在解决依赖关系-- 正在检查事务--- 软件包 nginx.x86_64.1.1.10.1-1.el7.ngx 将被 安装 ······ ······正在安装 : 1:nginx-1.10.1-1.el7.ngx.x86_64 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/---------------------------------------------------------------------- 验证中 : 1:nginx-1.10.1-1.el7.ngx.x86_64 1/1已安装:nginx.x86_64 1:1.10.1-1.el7.ngx 完毕!4.启动nginx[root@localhost ~]# service nginx start5.查看nginx版本[root@localhost ~]# nginx -v

版权声明:本站部分内容来源于网友推荐、互联网收集整理而来,仅供学习参考,不代表本站立场,如有内容涉嫌侵权,请联系alex-e#qq.com处理。

联系我们
关于使用场景和技术架构的更多咨询,请联系我们的销售和技术支持团队。
Yingsoo Host

在线
客服

在线客服:7*24小时在线

客服
热线

400-630-3752
7*24小时客服服务热线

关注
微信

关注官方微信
顶部