1. Download the Redis

  • Open the Redis download page and find the latest stable version, Redis-6.2.4.tar.gz. Click the link to start the download

2. Install Redis

  • Upload and download the compressed package to/TMP on the server and decompress the package
CD/TMP tar -zxvf redis-6.2.4.tar.gz CD redis-6.2.4 make make install PREFIX=/usr/local/redis cp / TMP/redis - 6.2.4 / redis. Conf/usr/local/redis/bin /Copy the code
  • Conf file to daemonize no to daemonize yes

  • Configure Redis to allow remote access

Comment out the bind attribute in the redis.conf file and set the protected-mode attribute to no

  • Set the redis access password

  • Start the redis
cd /usr/local/redis/bin
./redis-server redis.conf
Copy the code
  • Login redis
cd /usr/local/redis/bin
./redis-cli -p 6379 -a 123456
Copy the code

  • Client tool Redis Desktop Manager Connects to Redis