In fact, I have learned how to deploy web services in linux_centOS over the past few days. but I have not installed a virtual machine and deployed a Java web project ~ Www.2cto.com function introduction: install the linux virtual machine on win7 and deploy the project virtual machine software: VMwar...
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 ~
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.