赞
踩
https://www.cnblogs.com/herry52/p/5997041.html
https://blog.csdn.net/crazy__qu/article/details/78738264
https://www.cnblogs.com/herry52/p/5997041.html
redis不区分操作系统
/usr/local/redis/redis-cli shutdown //关闭redis
/usr/local/redis/redis-cli -h 127.0.0.1 -p 6379 shutdown //关闭远程redis
/usr/local/redis/redis-server /usr/local/redis/redis.conf //重启redis
netstat -tunple | grep 6379 //查看redis是否启动 或者直接 redis-cli
ps -ef|grep redis //查看redis是否启动
redis-cli -h 127.0.0.1 -p 6379 -a "mypass" //链接redis
redis-server --version //查看redis版本号
redis-cli --version //查看redis版本号
requirepass 密码 //设置密码
ps -ef | grep redis //查看redis端口
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。