A few days ago played the next memcache, found very useful. Know that Redis is Memcache's sister. I am the spirit of selfless and broad-minded, looking at the Redis alone lying in the corner, really feel poor. There is always a voice in the heart said, since you have fallen in love with Memcache, then why can not also give love to Redis it? I think very reasonable, the man has a three-wife four concubine also does not matter, so Redis formally become my goal, to pass a little means, win Redis. Let's see how I've conquered Redis in a step!
Install Redis.
The installation package will be sent to my Baidu Web link after this article, you can also go to the official website to download. I'm using a version of 3.0.0.0. It is sufficient to use it as a research principle.
The general package is installed under/usr/local.
We copy the package through the WINSCP tool to/usr/local. Then unzip. Remove the zipped package and change the unpacked folder to Redis.
Create a new folder inside. mkdir etc One will do configuration with.
You will see a makefile file inside. We'll just make it right. When make is completed, the SRC directory will be generated in the Redis directory, which can be switched in to look under, all commands executed by grams.
Then execute make prefix=/usr/local/redis install this command means that the custom configuration is installed in the established directory.
Then you will see a directory in the Redis directory that will generate a bin, CD in, execute the./redis-server command, you will see a big sandwich coming up. and the port number of Redis 6379.
End the process. CTRL + C.
Because our service does not open daemon service. The redis.conf file is then edited into the Redis directory.
Create a new etc directory under the Redis directory before editing.
CP./redis.conf. etc
Then CD into the ETC directory to edit the redis.conf file. It's about 37 lines. Speak daemonize = no change to Yes.
What this daemoniz means is whether to turn on the daemon. If turned on, Redis will run in the background.
Then CD into the bin directory inside the Redis, execute./redis-server. /etc/redis.conf
The meaning of this order. Executes the Redis-server service, specifying: /etc/redis.conf the configuration file that is executed as a service. Run in the background in a daemon way.
Redis Zip Package Address: Link: http://pan.baidu.com/s/1kTgXNp1 Password: DYGW
Talk to Redis about a relationship (first day encounter)