Prerequisite :Linux must remain networked

1. Change the redis configuration file redis.conf in Linux in three ways

Comment out the bind

Around line 70 (command mode type 70G to jump)

Change protected-mode to no on line 88

2. Add the login password

After the three changes are complete, Esc and :wq will save and exit (the password is not set).

Login redis normal login only need to enter the password auth password

3. To disable the firewall, enter: ‘on a new terminal

# disable firewall; systemctl stop firewalld.service

# disable firewall startup; systemctl disable firewalld.service

# disable firewall; systemctl stop firewalld.service

# disable firewall startup; systemctl disable firewalld.service`

  1. Idea to create a Springboot project (I won’t say this)
  2. Add the IP address, port number, and password for configuring Linux in the configuration file application.properties

Then test it in the test class