1. Install Java (jdk-6u25-linux-x64.bin)
Mkdir/usr/java
cd/usr/java/
chmod +x Jdk-6u25-linux-x64.bin
./jdk-6u25-linux-x64.bin
2, install MySQL, and configure remote access
Reference URL: http://blog.csdn.net/lchengcome/article/details/6974347
3. Install Apache
Here's my version for apache-tomcat-6.0.29
Then copy the Mysql-connector-java-5.1.13-bin.jar to the Lib file in the Apache directory
MV Mysql-connector-java-5.1.13-bin.jar apache-tomcat-6.0.29/lib/
4, modify the configuration file/etc/profile
At the end of the file/etc/profile, add
Export java_home=/usr/java/jdk1.6.0_25
Export catalina_home=/usr/apache-tomcat-6.0.29
Export path= $JAVA _home/bin: $CATALINA _home/bin: $PATH
Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar: $JAVA _home/lib/log4j-1.2.16.jar: $CATALINA _ Home/lib/servlet-api.jar: $CATALINA _home/lib/mysql-connector-java-5.1.13-bin.jar: $CLASSPATH
5. Automatically generate database data using Tpc-w
Reference URL: http://blog.csdn.net/lchengcome/article/details/7000079
6. Test (IP address for this computer here)
Enter Http://192.168.149.208:8080/tpcw/servlet/TPCW_home_interaction in the browser
If the connection is normal, the test will be successful
Note: The firewall needs to be shut down before installation, remember. Otherwise, there may be a lot of unexpected problems.