The simplest way to install online:
#安装Redis服务器端~ sudo apt-get install redis-server
After the installation is complete, the Redis server starts automatically and we check the Redis server program
# 检查Redis服务器系统进程~ ps -aux|grep redisredis 4162 0.1 0.0 10676 1420 ? Ss 23:24 0:00 /usr/bin/redis-server /etc/redis/redis.confconan 4172 0.0 0.0 11064 924 pts/0 S+ 23:26 0:00 grep --color=auto redis# 通过启动命令检查Redis服务器状态~ netstat -nlt|grep 6379tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN# 通过启动命令检查Redis服务器状态~ sudo /etc/init.d/redis-server statusredis-server is running
Download the installation package to install the method:
下载安装包:
wget http://download.redis.io/releases/redis-2.8.9.tar.gz
解压缩:
tar xvfz redis-2.8.9.tar.gz
Go to the directory after decompression, compile
CD redis-2.8.9
Compile:
sudo make
Installation:
sudo make install
Run tests to verify that Redis is functioning properly:
sudo make test
To start the Redis service:
/usr/local/bin/redis-server
Installing Redis under Ubuntu