1. In CentOS, ifconfig determines redis.host
2. In CentOS, change the path to the installation directory of redis, and change the content of redis.conf file
Modify bind
change bind 127.0.0.1 to – & gt; Change bind 0.0.0.0 protected mode yes to — & gt; Protected mode no close firewall
systemctl stop firewalld.service # stop firewall
systemctl disable firewalld.service # disable firewall startup
firewall CMD — state # view default firewall status, firewall status display not running
3. Restart CentOS
4. Enable redis to start as specified configuration file
Switch to the SRC directory under the redis directory./redis server…/redis.conf to start redis
5. Test the connection between idea and redis
Read More:
- The solution of centos7 in VMware virtual machine unable to access after installing nginx
- A solution to the default invalid host only mode of CentOS virtual machine in VirtualBox
- A new virtual machine cannot be connected to the network (error fetching interface information device not found),
- Solve the problem that the virtual machine can’t be opened? Tips on VMware Workstation cannot connect to the virtual machine
- VirtualBox + CentOS 7 virtual machine setting static IP address of host only NIC
- Centos7 offline installation of redis and PHP extension redis
- Solution to restart without showing eth0 connection after installing virtual machine
- The solution to the problem that the virtual machine and the host SSH can’t connect on vmvare
- Problem solving: this application cannot run under a virtual machine arcmapr, but you are not using a virtual machine
- Solution of Prophet error reporting when installing R package in Kubuntu virtual machine environment
- Ubuntu xshell cannot connect to VMware virtual machine solution
- Solutions to errors in virtual machine running in Android studio
- VMware virtual machine prompt: locking file failed, unable to open the disk solution
- An error was reported when springboot connected to redis Servlet.service () for servlet [dispatcherServlet] in context with path [] threw e
- After the eclipse Android virtual machine starts, an error will be reported: similar to SDK manager devices.xml Solution
- Solution to ebios read error: error 0x31 when installing snow leopard on virtual machine
- How to open Ctrl + Alt + delete in MAC virtual machine
- VMware imports an external virtual machine and displays system error: (unknown exception). Wrong solution
- Putty encountered an error when logging into alicloud CentOS: dis connected:No supported authentication methods available
- Record of solutions to internal error when VMware starts virtual machine