文章目录
Redis
截止目前版本:6.2.6
yum install -y http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum --enablerepo=remi install redis
开机自启
systemctl enable redis.service
配置文件路径
/etc/redis/redis.conf
Mysql
截止目前版本:8.0.27
curl https://repo.mysql.com//mysql80-community-release-el7-3.noarch.rpm > centos7.mysql.rpm
yum install centos7.mysql.rpm -y
yum install mysql-community-server
开机自启
systemctl enable mysqld
启动
systemctl start mysqld
查看密码(需要先启动)
cat /var/log/mysqld.log | grep "password"
安全初始化(摘自:https://www.cnblogs.com/dotnetcrazy/p/10871352.html)
mysql_secure_installation