First step: Install the virtual machine ... ;
Step Two: Install Linux (Centos) after the virtual machine installation is successful
Command: $ wget http://download.redis.io/releases/redis-3.2.5.tar.gz
$ tar xzf redis-3.2.5.tar.gz
$ CD redis-3.2.5
$ src/redis-server (background startup process:./redis-server.. /redis.conf)
The Redis service has been started.
$ src/redis-cli
$ set TT ' ABC '
It's already connected to Redis.
Note: You can set the redis.conf file, Ps-ef | grep Redis: Check process
Step three: Remote link Linux may need to turn off the firewall,
1) After restart: Chkconfig iptables on off: chkconfig iptables off 2) immediate effect, restart after failure to open: service Iptables s Tart off: Service iptables stop
This article is from the "flyfish" blog, make sure to keep this source http://9381188.blog.51cto.com/9371188/1877936
Operating Redis in a Linux environment