This article mainly introduces how to install redis in linux environment.
The main reference of this article:
http://www.runoob.com/redis/redis-install.html
OK, let's load it up below.
1、yum install redis
After the installation is complete, the location of the configuration file is /etc/redis.conf
2. Start redis
systemctl start redis.service
3. Stop redis
systemctl stop redis.service
4. Check the port operation
netstat -apn | grep 6379
ps -ef | grep redis
5. Use console commands to connect to redis
redis-cli
redis-cli -h 127.0.0.1 -p 6379