redis启动步骤
重载系统服务:
systemctl daemon-reload
现在,我们可以用下面这组命令来操作redis了:
启动
systemctl start redis
停止
systemctl stop redis
重启
systemctl restart redis
查看状态
systemctl status redis
启动后步骤
1、进入vmware Workstation Pro 启动hp102
2、进入xshell 连接 hp102
3、xshell连接成功进入 cd /usr/local/bin
连接方式
- redis-cli -h 192.168.10.102 -p 6379 -a hu123456
- redis-cli -h 192.168.10.102 -p 6379
- auth hu123456