1. Installation environment:
linux-redhat7
2. Download the redis installation file http://download.redis.io/releases/redis-4.0.9.tar.gz
3. To install redis, you need the gcc compilation environment, so you need to install the gcc environment first
yum install gcc
4. Unzip the redis compressed file
5. Go to redis-4.0.6/src,
Execute make to compile redis
make install PREFIX /usr/local/bin Specify the installation directory to install redis
6. Modify redis.conf
daemonize yes , start in the background
7. Start redis
redis-server [redis.conf path]
8. Redis client connection
redis-cli -h [IP] -p [port]
You can specify the IP address and start the port, or you can not specify it, the default is 6379.