Linux various Software Installation-TOMCAT8+JDK Chapter

Source: Internet
Author: User

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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.