I have learned how to deploy web Services in linux_centOS over the past few days, but I have never installed a virtual machine and deployed a java web project ~ Www.2cto.com function Introduction: install linux Virtual Machine on win7 system and deploy project Virtual Machine Software: VMware-workstation-full-7.1.4-385536.exe virtual linux system: CentOS-6.2-x86_64-bin-DVD1.iso host environment: win7 operation steps: 1, install Virtual Machine software, for more information about linux centOS6, see previous network configuration 2. java environment Configuration: # locate the configuration location cd/etcvi profile # Add the following configuration to export JAVA_HOME =/mySoftware/jdk1.7.0export PATH = $ JAVA_HOME/bin: $ PATHexport CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar: Enter the java javac command. Success ~ 3. Now you can log on to the virtual machine through SecureCRT and upload the apacheTomcat web server to a specific directory (I did it through the FTP associated with the CRT). 4. Start the service. /startup. sh check catalina under logs. output logs ~ However, accessing the website through the host fails at this time by finding the respective ip addresses by using the ifconfig command on the host machine: ipconfig virtual machine, and then successfully pinging the ip addresses of the other host ~ What's the problem? Www.2cto.com at this time, you need to make an open command for the port of the end firewall, such as: iptables-I INPUT-p tcp -- dport 8080-j ACCEPT re-access, Success ~ The effect is as follows: 1. web Services on the host can be accessed in the browser of the Virtual Machine. 2. web Services on the virtual machine, you can access the host through a browser. 3. The host and virtual machine can use CRT and FTP to implement the file transfer function. In fact, this is my first configuration. I have shared it with my previous experiences ~