Record the process of upgrading CentOS6.8 to CentOS�Ʒ��������˵�7 image (upgrade with caution)

888u

Last update at :2024-06-12,Edit by888u

We netizens must have noticed that the official security upgrade package will not be provided for CentOS6. However, we are sure that many servers and even website environments are using the CentOS6.

To be on the safe side, it is recommended that when we take stock of operations and maintenance at the end of the year, Snail will also upgrade the images of corporate customers' website servers one after another to check how many CentOS6 systems are in use. I generally adopt two strategies. If the server needs to be replaced, we will directly install CentOS7+, or install the commonly used Ubuntu system. If the data is relatively large, we may upgrade directly, but we need to make various backups to ensure nothing is lost.

Here I simply record the process of upgrading the test server from CentOS6.8 to CentOS7 image. For reference only, if we want to actually upgrade, we need to make a backup.

Here we check to see the current image version.

cat /etc/redhat-release

Then we install the software packages needed for the upgrade.

yum install openscap pcre-devel libxml2-devel libxslt-devel m2crypto python-simplejson mod_wsgi -y

Then install the latest version of the software.

rpm -ihv http://dev.centos.org/centos/6/upg/x86_64/Packages/preupgrade-assistant-1.0.2-36.0.1.el6.centos.x86_64.rpmrpm -ihv http:/ /dev.centos.org/centos/6/upg/x86_64/Packages/preupgrade-assistant-contents-0.5.14-1.el6.centos.noarch.rpmrpm -ihv http://dev.centos.org/centos/ 6/upg/x86_64/Packages/preupgrade-assistant-ui-1.0.2-36.0.1.el6.centos.x86_64.rpmrpm -ihv http://dev.centos.org/centos/6/upg/x86_64/Packages /redhat-upgrade-tool-0.7.22-3.el6.centos.noarch.rpm

Start the upgrade.

redhat-upgrade-tool –network 7.0 –instrepo http://mirrors.sohu.com/centos/7.2.1511/os/x86_64/ –force

If we can see \\"Finished. Reboot to start upgrade.\\" it should be completed. We check the current version and finally we need to re-upgrade the package.

yum clean all && yum makecache && yum update -y

If something goes wrong during this period, we will check the problem again. However, the best way is to install it directly. There may be problems during the process. It is better to directly back up and re-import the data.

Reference article: https://www.dwhd.org/20160622_213932.html

Recommended site searches: US host purchase, VIP domain name, registered domain name, Singapore server, host server rental, permanent free space, website registration information query, IP proxy, US host network, how much does general server hosting cost,

Record the process of upgrading CentOS6.8 to CentOS�Ʒ��������˵�7 image (upgrade with caution)

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码