CentOS7部署nginx并完成系统平滑升级
发布时间
阅读量:
阅读量
完成nginx的部署操作后,实施其版本的无缝升级过程
1、添加YUM仓库
[root@localhost ~]# ls /etc/yum.repos.d/
[root@localhost ~]# rm -rf /etc/yum.repos.d/*
[root@localhost ~]# ls /etc/yum.repos.d/
[root@localhost ~]# mount /dev/cdrom /mnt
[root@localhost ~]# yum-config-manager --add file:///mnt
[root@localhost ~]# vim /etc/yum.repos.d/mnt.repo
...
gpgcheck=0
...
[root@localhost ~]# yum clean all
[root@localhost ~]# yum repolist
2、安装Nginx
[root@localhost ~]# tar xf lnmp_soft.tar.gz
[root@localhost ~]# cd lnmp_soft/
[root@localhost lnmp_soft]# tar xf
全部评论 (0)
还没有任何评论哟~
