mysql reids: cache servers

1. Install reids
online installation reids
1, because redis c language development, so it is necessary to install gcc (executed in the root directory):
yum install gcc-c ++
2, as is the online installation, use wget command, if linux is not on the installation with the following command (executed in the root directory):
yum -y install wget
3, redis download the latest stable version, you can download other versions archive:
wget http://download.redis.io/redis-stable .tar.gz
. 4, extract the compressed redis:
the tar -xvf redis-stable.tar.gz -C / usr / local / Soft
. 5, into the redis extracting file, compile redis:
the make
. 6, mounted redis:
the make the install = the PREFIX / usr / local / redis
. 7, starting redis, redis enter the installation directory, i.e., / usr / local / redis / bin:
./redis-server
default port 6379 is redis can also be modified.
2, backgrounding:
1, copy files redis.conf extracting file redis redis to the installation directory, i.e., / usr / local / redis / bin .

Redis into the unpacked files, execute the command:

cp redis.conf / usr / local / redis / bin /
after a successful copy, redis installation directory will be more of a redis.conf file.

2, modify the contents of this configuration file: daemonize the value of the original no modification to yes, save and exit.

3, enter the command in the bin directory of the installation files redis, the background will start redis:

redis.conf ./redis-server
4, to see through the process of command, there is no start redis View:
PS -ef | grep redis
5, stop redis:
./redis-cli the shutdown
6 closed redis process
kill -9 process ID

Guess you like

Origin www.cnblogs.com/wangmeng960111/p/10990110.html