Centos7升级到最新版本命令

技术问题

Centos7升级到最新版本命令

2024-07-30 09:20


Centos7升级到最新版本命令

                                            




一、检查系统版本
cat /etc/redhat-release
CentOS Linux release 7.0.1406 (Core)
二、备份重要数据(例如/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)


标签:
  • Centos7升级到最新版本命令