The JDK installation
A , installation instructions perform the following yum, wireless configure the environment variables.
1.yum -y update # update the look YUM first source
2.yum list Java * --------- # list all the JDK
3.yum list java-1.8 * -------- # listed JDK1.8
4.yum install java-1.8.0-openjdk* -y #安装JDK1.8
b, to verify whether the installation was successful jdk
Under the plans appear successful installation
------ Of course, you can also manually install the first server connection with xshell, download jdk archive, extract, configure jdk environment variable here I do not say. Next, install tomcat.
Tomcat installation
a. Download a tomcat, I use the version tomcat8 (apache-tomcat-8.5.38.tar.gz)
b. Use xftp uploaded to the directory you created on the server
c. 解压 tar -xvf apache-tomcat-8.5.38.tar.gz
You can also rename it mv apache-tomcat-8.5.38.tar.gz tomcat8
So that we completed the installation
Then start tomcat service test
Execute the following command to switch to the bin directory tomcat start
./startup.sh
Switch to the logs directory tomcat execution View Log
tailf catalina.out
If you start there is no error message, indicating a successful startup configuration.
Browser and enter http: // public network ip: 8080 can be visited
if the figure below as evidenced by the success of the visit.