前言
老服务器到期,新入手了腾讯云轻量服务器,将Halo迁移过程做个记录。
正文
JDK安装
yum -y install java-11-openjdk-devel
MySQL安装与迁移
wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
rpm -ivh mysql57-community-release-el7-9.noarch.rpm
cd /etc/yum.repos.d/
yum install mysql-server
systemctl start mysqld
grep 'temporary password' /var/log/mysqld.log
Nginx安装
yum install nginx -y
新建用户
groupadd 用户组
useradd -m -g 用户组 -d /home/用户名 用户名
passwd 用户名
Tomcat安装
解压版
wget https://mirrors.bfsu.edu.cn/apache/tomcat/tomcat-9/v9.0.45/bin/apache-tomcat-9.0.45.tar.gz
tar -zxvf apache-tomcat-9.0.45.tar.gz
helo迁移
参考 https://bbs.halo.run/d/394/3