mysql
修改密码:
(1)打开配置文件
vim /etc/my.cnf
设置为无需密码登录:
[mysqld]
skip-grant-tables
(2)执行修改密码语句,并立即生效
update mysql.user set authentication_string=password(‘med20200601@oak-buer‘) where user=‘root‘; flush privileges;
redis https://redis.io/
(1)下载redis安装包
wget http://download.redis.io/releases/redis-4.0.1.tar.gz
(2)解压
tar -zxvf redis-4.0.1.tar.gz
(3)cd 切换到redis-4.0.1目录下进行编译 make
make
(4)编译安装
make install
(5)默认安装安装/usr/local/bin
(6)./redis-server & 启动redis服务