一、检查系统版本cat /etc/redhat-release
CentOS Linux release 7.0.1406 (Core)
![](http://www.171host.com/wp-content/uploads/2023/02/QQ截图20230203131451.jpg)
二、备份重要数据
(例如/etc, /var,/opt)。针对重要程序数据进行备份,例如MySQL, Appache, Nginx, DNS等等。
三、运行yum命令升级yum clean all
yum update
四、重启系统reboot
五、查看现在系统版本cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)