Since the server is brand new when the deployment goes online, many environments and tools are not installed. Encountered many problems that have not been encountered before :
1. After installing the environment: After jdk and tomcat are deployed and online, the following exception occurs when starting tomcat:
java.net.UnknownHostException: pay03.migutest: pay03.alipaytest at java.net.InetAddress.getLocalHost(InetAddress.java:1461) at com.mchange.v2.uid.UidUtils.generateVmId (UidUtils.java:70) at com.mchange.v2.uid.UidUtils.<clinit>(UidUtils.java:54) at com.mchange.v2.c3p0.impl.C3P0ImplUtils.<clinit>(C3P0ImplUtils.java:126) at com.mchange.v2.c3p0.impl.PoolBackedDataSourceBase.<init>(PoolBackedDataSourceBase.java:288) at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.<init>(AbstractPoolBackedDataSource.java:74) at com.mchange.v2.c3p0.AbstractComboPooledDataSource.<init>(AbstractComboPooledDataSource.java:142) at com.mchange.v2.c3p0.AbstractComboPooledDataSource.<init>(AbstractComboPooledDataSource.java:138)
After inquiring a lot of answers, the final solution is to add the mapping between the corresponding host and the intranet ip in the hosts file in the /etc directory.
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.12.187 pay03.alipaytest ##Added lines
After restarting tomat, the problem was solved.
2. An error is reported when accessing the login verification code, and it always responds with a 500 error. After the debug log is enabled in the background, the following problems occur:
java.lang.Error: Probable fatal error:No fonts found. . . .
Find the following solutions on foreign websites:
under Ubuntu you can install fonts by sudo apt-get install ttf-dejavu or if you use CentOS, you can install fonts by yum install dejavu*
Since it is a CenterOS system, execute
# yum install dejavu*
After installing the font, visit the verification code link and it will display normally.