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