In fact, I have not done PHP, mainly to make java,tomcat and Java is essential
First install the JDK, note that Linux and Winodws jdk is completely different, do not download the wrong.
First Yum update updates the software
Java-version, the new machine must appear command not found
Java's JDK to the Oracle website to download, seemingly unable to get down through wget directly, you have to download to Windows, and then to the Linux server.
wget http://download. Oracle. com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64. Tar. gz
Of course, you can also install the RPM package, command: RPM -ivh jdk-8u91-linux-x64. RPM
Extract
TAR-ZXVF jdk-8u91-linux-x64. Tar. gz-c/usr/local
Configure environment variables to be added under Export PATH USER LOGNAME MAIL HOSTNAME histsize Histcontrol
Vi/etc/profile
Export JAVA_HOME=/OPT/SOFT/JDK1. 8.0_91
< Span class= "Hljs-attribute" > < Span class= "Hljs-keyword" >export path= $JAVA _home/bin:$ PATH
< Span class= "Hljs-attribute" > < Span class= "Hljs-keyword" > Export Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib /tools.jar
< Span class= "Hljs-attribute" > < Span class= "Hljs-keyword" >< Span class= "hljs-variable" > refresh configuration file
Source/etc/profile
Java-version
Installing TOMCAT8
wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-8/v8.5.24/bin/apache-tomcat-8.5.24.tar.gz
Tar -zxvf apache-tomcat-8.5.24. Tar. GZ -c/usr/local
MV apache-tomcat-8.5.24//tomcat/
cd/tomcat/bin/
./startup.sh
Firewall-cmd --zone=public --Add-port=8080/tcp -- Permanent
Firewall-cmd --reload
Visit ip:8080
Linux various Software Installation-TOMCAT8+JDK Chapter