1, download Redis
wget http://download.redis.io/releases/redis-3.0.2.tar.gz
2, installing Redis
Add compression
Tar zxvf redis-3.0.2.tar.gz
Go to unzip directory, compile:
CD redis-3.0.2
Make
To copy a Redis configuration file:
CP redis.conf/etc/
Modify the corresponding redis.conf file to change the database file storage location.
Cd/etc #进入etc目录
VI redis.conf #打开配置文件
Change the corresponding database save location: dir./
To modify a firewall configuration file:
Vi/etc/sysconfig/iptables
To join the port configuration:
-A input-m state–state new-m tcp-p tcp–dport 6379-j ACCEPT
Reload the firewall configuration.
Service Iptables Restart
Go to redis src directory and start Redis:
Redis-server/etc/redis.conf
To view the Redis process:
Ps-ef | grep Redis
3. Copy the Redis link.
CP Redis-benchmark REDIS-CLI redis-server/usr/bin/
Linux Virtual Machine Redis installation