centos如何升级到最新版本

一、检查系统版本
$ cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)
二、备份重要数据(例如/etc, /var,/opt)。如果centos是安装在虚拟机上,那么可以使用快照进行备份。像VMware虚拟机可以快照备份,当然更奢侈一点是备份整个虚拟机。也可以针对重要程序数据进行备份,例如MySQL, Appache, Nginx, DNS等等。

三、运行yum命令升级
$ sudo yum clean all
$ sudo yum update
四、重启系统
$ sudo reboot
五、查看现在系统版本
$ cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
希望本文能够协助你顺利升级centos 7到最新版本。

猜你喜欢

转载自www.cnblogs.com/siyunianhua/p/12217071.html