VIP视频自助网站建设,安溪县住房和城乡规划建设网站,wordpress注入工具,网站建设行业产业链分析在测试环境下安装openstack#xff0c;由于在centos6下安装openstack#xff0c;针对源的问题有很多#xff0c;安装起来很不顺利#xff01; 但是在centos7下安装却很顺利#xff0c;所以考虑将服务器由centos6升级到centos7 这个我是在测试机中运行的#xff0c;建议不…在测试环境下安装openstack由于在centos6下安装openstack针对源的问题有很多安装起来很不顺利 但是在centos7下安装却很顺利所以考虑将服务器由centos6升级到centos7 这个我是在测试机中运行的建议不要用于实际环境 另外操作前要记得整盘备份。 下面对这一升级过程进行记录 1.查看升级前的版本信息 [rootopenstack ~]# lsb_release -aLSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarchDistributor ID: CentOSDescription: CentOS release 6.8 (Final)Release: 6.8Codename: Final 2、在“/etc/yum.repos.d/”目录中创建文件upgradetool.repo [rootopenstack ~]# cd /etc/yum.repos.d/ [rootopenstack yum.repos.d]# touch upgradetool.repo 把以下内容贴进upgradetool.repo [rootopenstack yum.repos.d]vi upgradetool.repo 文件内容如下[upg]nameCentOS-$releasever – Upgrade Toolbaseurlhttp://dev.centos.org/centos/6/upg/x86_64/gpgcheck1enabled1gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6保存退出3、安装升级工具[rootopenstack ~]#yum install redhat-upgrade-tool preupgrade-assistant-contents4、安装完后运行 [rootopenstack ~]# preupg -l CentOS6_7 查看支持的升级 5、执行升级分析 preupg仅仅是分析系统而不会执行任何任务执行后它会给出一些建议告诉更新程序在更新的时候去搜索什么。[rootopenstack ~]# preupg -s CentOS6_7Preupg tool doesn’t do the actual upgrade.Please ensure you have backed up your system and/or data in the event of a failed upgradethat would require a full re-install of the system from installation media.Do you want to continue? y/ny 直到完成跑相当长的时间请耐心等待如果没有提示出错可以继续下一步。否则请检查要全部PASS才可以。 6、导入centos7源[rootopenstack ~]# rpm –import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-77、升级系统[rootopenstack ~]# centos-upgrade-tool-cli –network 7 –instrepohttp://mirror.centos.org/centos/7/os/x86_64/国内比较慢可以使用以下源[rootopenstack ~]# centos-upgrade-tool-cli –network 7 –instrepohttp://mirrors.163.com/centos/7/os/x86_64/8、重启系统完成 [rootopenstack ~]# reboot转载于:https://www.cnblogs.com/zhangmingcheng/p/6044472.html