环境准备
Windows10虚拟机安装centos7:Linux视频-最新Linux视频教程-攻城狮暗器Linux Redis在centos7的安装配置:https://www.bilibili.com/video/BV1Rv41177Af?p=4
启动到退出流程
[root@localhost bin]
[root@localhost bin]
[root@localhost bin]
root 16521 1 0 16:07 ? 00:00:00 redis-server 127.0.0.1:6379
root 16527 11557 0 16:07 pts/2 00:00:00 grep --color=auto redis
[root@localhost bin]
127.0.0.1:6379> ping
PONG
127.0.0.1:6379> exit
[root@localhost bin]
[root@localhost bin]
后台启动
cd /urs/local/bin/
redis-server /etc/redis.conf
查看redis进程是否存在:
ps -ef | grep redis
连接Redis
redis-cli
退出
exit
然后
方式1:
shutdown
方式2: 查看Redis进程号:
ps -ef | grep redis
kill -9 16521
|