In the process of cloning a server into a test environment during a production, it is found that the relevant network configuration after cloning has been modified to the test environment, but it is reported that the following error occurred after Tomcat startup:
Severity: standardserver.await:create[localhost:8021]:
By troubleshooting Discovery/etc/hosts, the original IP address is bound, and the test address is modified to start normally.
When Tomcat starts, it gets all the IP addresses according to the configuration and binds them one by one, triggering the above exception when it finds that the IP address that needs to be bound does not exist, causing the failure to start normally.
In addition, MySQL appeared on the native password on the wrong, very strange, must be configured in the/ETC/MY.CNF "mysqld" configuration skip-grant-tables, and then change the password to normal, modify the password statement reference as follows: update user set password=password (' newpassword ') where user= ' root '; flush privileges;
Different versions have errors.
This article from "It Technology" blog, declined reprint!
Troubleshooting tomcat not booting and MySQL unreachable for cloning machines