redis 启动

2022/4/22 19:13:43

本文主要是介绍redis 启动,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

vim /root/shells/redis.sh

case $1 in
"server"){
/opt/module/redis/src/redis-server /opt/module/redis/myredis/redis.conf
};;

"start"){
/opt/module/redis/src/redis-cli -h localhost
};;
esac

[root@hadoop106 shells]# ./redis.sh start

localhost:6379> key *
(error) ERR unknown command 'key'
localhost:6379> key
(error) ERR unknown command 'key'
localhost:6379> set name zzs
OK
localhost:6379> keys *
1) "name"
localhost:6379>quit



这篇关于redis 启动的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程