centos 7.9 迁移到 openEuler22.03-LTS-SP3

openEuler移植案例 | 移植操作指南 | openEuler社区官网

  cat /etc/redhat-release 
CentOS Linux release 7.9.2009 (Core)

需要两台机器,

不通过原因 在待升级节点检查是否有安装x2openEuler-core时, 发现已经安装了,不能作为升级节点。该节点为:

解决方案 请到待升级节点使用‘rpm -qa | grep x2openEuler-core’命令检查是否有安装包, 请换一台机器

下载x2openEuler-core-3.0.0-20240125.x86_64.rpm

wget https://repo.oepkgs.net/openEuler/rpm/openEuler-20.03-LTS-SP1/contrib/x2openEuler/x86_64/Packages/x2openEuler-core-3.0.0-20240125.x86_64.rpm


 yum install -y x2openEuler-core-3.0.0-20240125.x86_64.rpm 

 更换阿里yum源

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
curl -s -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
curl -s -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
 
sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo

 使用mariadb,需要先设置密码

[root@localhost ~]# cd /usr/local/x2openEuler/portal/service/

[root@localhost service]# ll
total 84
-rwxr-x---. 1 root root 14616 Jan 25  2024 change_ip_x2openEuler.sh
-rwxr-x---. 1 root root    57 Jan 25  2024 const.conf
-rwxr-x---. 1 root root  1897 Jan 25  2024 delete_file.sh
-rwxr-x---. 1 root root   579 Jan 25  2024 gunicorn_x2openEuler.service
-rwxr-x---. 1 root root  6143 Jan 25  2024 mariadb.sh
-rwxr-x---. 1 root root   591 Jan 25  2024 nginx_x2openEuler.service
-rwxr-x---. 1 root root   784 Jan 25  2024 service_daemon.sh
-rwxr-x---. 1 root root   237 Jan 25  2024 service_gunicorn.sh
-rwxr-x---. 1 root root 16497 Jan 25  2024 service_init.sh
-rwxr-x---. 1 root root  3237 Ja
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值