Ubuntu 安装redis
1. 安装redis服务端:
sudo apt-get install redis-server
2. 检查redis 服务状态
ubuntu@ip-10-100-101-204:/lib$ ps -aux|grep redis redis 29690 0.0 0.0 42688 11356 ? Ssl 05:41 0:00 /usr/bin/redis-server 0.0.0.0:6379 ubuntu 29703 0.0 0.0 10448 688 pts/7 S+ 05:41 0:00 grep --color=auto redis ubuntu@ip-10-100-101-204:/lib$ netstat -nlt|grep 6379 tcp 0 0 0.0.0.0:6379 0.0.0.0:* LISTEN ubuntu@ip-10-100-101-204:/lib$ sudo /etc/init.d/redis-server status redis-server is running
3. 启动redis 客户端
redis-cli