各类服务安装
felix9ia ... 2023-1-8 小于 1 分钟
# 各类服务安装
# JDK
yum install -y java-1.8.0-openjdk
java -version
1
2
2
# MySQL
参考自MySQL (opens new window) 以及 MySQL创建用户与授权 (opens new window)
--nogpgcheck
-- 下面这两步,不需要什么刷新之类的
CREATE USER 'medal_op'@'%' IDENTIFIED BY '*5Pg76p**3D4';
GRANT ALL ON *.* TO 'medal_op'@'%';
1
2
3
4
5
6
2
3
4
5
6
# Redis
sudo sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-*
sudo sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
sudo tail -f /var/log/redis/redis.log
1
2
3
4
5
2
3
4
5