标签:状态 string net -- lis 关闭 keyword release 打开
wget http://download.redis.io/releases/redis-4.0.9.tar.gz tar xzf redis-4.0.9.tar.gz cd redis-4.0.9 make
进入redis-4.0.6 src目录下:
启动服务器:./redis-server
关闭服务器:./redis-cli shutdown
打开redis终端
./redis-cli
测试一下小demo
redis> set foo bar
OK
redis> get foo
redis>
"bar"
~ ps -aux|grep redis redis 4162 0.1 0.0 10676 1420 ? Ss 23:24 0:00 /usr/bin/redis-server /etc/redis/redis.conf conan 4172 0.0 0.0 11064 924 pts/0 S+ 23:26 0:00 grep --color=auto redis
~ netstat -nlt|grep 6379 tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN
标签:状态 string net -- lis 关闭 keyword release 打开
原文地址:https://www.cnblogs.com/znsongshu/p/10349720.html