Linux Configuration Global JDK
1. Ensure that the Apache-tomcat and JDK files are compressed in the appropriate folder
Note: JDK files must be files adapted to the Linux version
(If you already have the file, you can skip the following 第2-3个 steps)
2. If not, you can create a folder and put it in
makdir+ folder name
3. Extracting files
TAR-XZVF Jdk-7u80-linux-x64.tar.ga
TAR-XZVF apache-tomcat-7.0.79.tar.gz
Extract Results
4. Locate the JDK file path
CD jdk1.7.0_80/
Pwd
Path is:/usr/local/software/jdk1.7.0_80
5. Configuring Profile files
Vi/etc/profile Configuring the global JDK
Follow the
And now the JDK is ready to build.
6. Run tests on the Tomcat server
Next you'll see
It means that your tomcat can run.
But if this happens,
Indicates that your port number is already in use, so the next thing you do is change your port number.
7. Run the Tomcat Test Web project
Test TOMCA can t run up after
Put a test Web project on a Linux server
Remember not to put project source files
Ok
Next, test the Web project on the client through the IP remote access server
Shut down the server when the test is successful and does not need to be re-operated
How to turn off the Tomcat server by typing Ctrl + C for the keyboard
The background of this paper is to build and test the environment when the client connects to the server remotely.
Just a brief introduction
Available for reference
2017-08-12 13:36:55
Linux configuration Global JDK and Tomcat server simple test