This is a description of the installation under the virtual machine CentOSredis-3.2.3
First enter the official website http://redis.io/download
We can download it and upload it to CentOS via the file. You can also download the installation package directly in the Centis
Because my CentOS is just newly installed so in the run
wget http://download.redis.io/releases/redis-3.2.3.tar.gz
An error occurred wget:command not found
This is because we didn't have the wget package installed.
Workaround yum-y Install wget
When the Redis download is successful
Start the Decompression tar xzf redis-3.2.3.tar.gz
Access to the directory cd redis-3.2.3
进行编译 make
system does not install the GCC environment, need to install GCC, for convenience, here I choose to install with Yum.
Solution: Yum install gccStart
src/redis-server
This is the general process .the following results of my executionThis is my CentOS network IP I use a tool Xshell to connect to the CentOS environmentUnzip the compilationOpen Server we can see that this server has been opened and a window has been opened behind it into the SRCtest Result OKThis command can see if the port is occupiedNETSTAT-TUNPL |grep 6379
查看redis的进程
ps -ef|gref redis
关闭服务器
./redis-cli shutdown pkill redis-server
CentOS Installation redis-3.2.3