How does a VM access Tomcat?
First, you need to integrate tomcat and jdk into the virtual machine, and then install tomcat and jdk in the virtual machine.
1. How to Integrate tomcat and jdk into a virtual machine?
1, need "ha_Serv-U6406 ftp server" help, so first download an ftp server (under windows), open, find the location of tomcat and jdk in the main directory of the ftp server (put the two folders in advance)
2. In "Directory Access", click Edit, find the folder with tomcat and jdk, and click "application ".
3. Access our Windows Host in Linux. First, set the Linux IP address to the same LAN as your computer (ifconfig eth * 192.168.2.222 ).
Open the Linux Browser and enter ftp: // 192.1168.1.134: 2121 (IP address of the windows Host + ftp port number). Then, right-click and download the two files to the desktop.
2. 1. decompress the jdk file to the/usr/local/development/jdk1.7.0 directory.
2. Decompress tomcat
Configure the tomcat environment (to ensure jdk installation)
Find/etc/profile
Then manually enter the following two lines:
Export JAVA_HOME =/usr/local/jdk1.7.0
Export maid =/usr/local/apache-tomcat-7.0.33
Save and exit
Enter source/etc/profile // on the terminal to make the current configuration take effect immediately.
4. Start the tomcat server
Terminal input:/usr/local/apache-tomcat-7.0.33/bin/startup. sh
The following content appears on my computer:
Using CATALINA_BASE:/usr/local/apache-tomcat-7.0.33
Using CATALINA_HOME:/usr/local/apache-tomcat-7.0.33
Using CATALINA_TMPDIR:/usr/local/apache-tomcat-7.0.33/temp
Using JRE_HOME:/usr/local/jdk1.7.0
5. Enter http: // localhost: 8080/in the browser to view the tomcat log.
Tomcat installation ends here.
For more Tomcat tutorials, see the following:
Install and configure the Tomcat environment in CentOS 6.6
Install JDK + Tomcat in RedHat Linux 5.5 and deploy Java Projects
Tomcat authoritative guide (second edition) (Chinese/English hd pdf + bookmarks)
Tomcat Security Configuration and Performance Optimization
How to Use Xshell to view Tomcat real-time logs with Chinese garbled characters in Linux
Install JDK and Tomcat in CentOS 64-bit and set the Tomcat Startup Procedure
Install Tomcat in CentOS 6.5
Tomcat details: click here
Tomcat: click here
This article permanently updates the link address: