Environment: linux/windows (here linux )
Vmware centerOS
Download address: http://redis.io/download , download the latest document version.
1. Root user login
2. Redis is developed in C language. To install redis , you need to compile the source code downloaded from the official website first, and the compilation depends on the gcc environment. Install gcc environment: yum install gcc-c++ (prompt whether to download input Y )
3. Download redis
Execute the command: wget http://download.redis.io/releases/redis-4.0.2.tar.gz
$ tar xzf redis-4.0.2tar.gz
$ cd redis-4.0.2
$ make
Install redis to a specific directory
make PREFIX=/usr/local/redis install
Copy the redis.conf file from the original downloaded redis directory to the newly installed directory and modify it
For yes , it is convenient to start redis in the backend mode .
Startup method: front-end startup./redis-server back -end startup./redis-server redis.conf (commonly used)
./redis-server&
Download directory ( root/Desktop/redis-4.0.2 )
Installation directory ( /usr/local/redis/ )