The local Java program operates the redis service in the virtual machine and reports an error.
Solution:
1. check whether Linux in the local and VMware virtual machines can ping each otherwhen the Ping fails, it is usually the problem of setting the network adapter of the virtual machine. Refer to the correct configuration: 1) right click virtual machine -> Settings -> network adapter -> bridge mode. 2) Set IP4 in VMnet1 in the local network connection to automatic acquisition. 3) Set the network card of the virtual machine to get automatically. 4) Turn off the firewall of the local and virtual machines,
2. check whether redis can start normally, if it does not start normally, check the cause of the error through the log,
3. check whether the Java program reads the redis related configuration correctly, when reading the configuration, the field spelling error may cause the connection to redis to fail.
For example, @Value ("${spring.redis.host}")
host
is written as port
Read More:
- [Solved] jedis Connect redis Error: connect timed out
- Error reported when springboot connects to redis nested exception is redis.clients.jedis . exceptions.JedisConnectionException
- Spring deployment error: Could not open ServletContext resource [/db.properties]
- [Solved] Error: Could not get apiVersions from Kubernetes
- JMeter JDBC Error: No pool found named: ‘test‘ [How to Solve]
- [Solved] com.alibaba.druid.pool.DruidDataSource – create connecti
- error: resource android:attr/lStar not found [How to Solve]
- error: resource android:attr/lStar not found [How to Solve]
- Docker Build Error: Failed to get D-Bus connection: Operation not permitted [Solved]
- How to Solve Error: java.io.IOException: Resource [classpath:shiro.ini] could not be found.
- AN ERROR MESSAGE APPEARS WHEN TOMCAT DEPLOYS A NEW PROJECT: INVALID BYTE TAG IN CONSTANT POOL: 15
- [Solved] Flutter – AAPT: error: resource android:attr/dialogCornerRadius not found.
- [Solved] AAPT: error: resource android:attr/lStar not found
- error: resource android:attr/lStar not found? [How to Solve]
- error: resource android:attr/lStar not found [Pefect Solution]
- How to Solve Error: Resource’/Servers’ does not exist
- Vue Browser Error: Failed to load resource: the server responded with a status of 404 (Not Found)
- Flutter Error: dump failed because resource AndroidManifest.xml not found [How to Solve]
- [Solved] Go Get Download Dependency Error: is not using a known version control system
- [Solved] kubectl error: sou-bash: _get_comp_words_by_ref: command not found