CENTOS7 Deploying the Java Environment

Source: Internet
Author: User

Linux Server Java Environment deployment

Official website: http://tomcat.apache.org/

1. Installation of Java environment

Yum Install Java Java-1.8.0-openjdk-devel

2. View version Java-version

3. Deploy tomcat-9.0.7

(1) Download the latest version of Tomcat compression pack
Wget–c http://mirrors.hust.edu.cn/apache/tomcat/tomcat-9/v9.0.7/bin/apache-tomcat-9.0.7.tar.gz

(2) Direct output SHA512 Hash (if the Environment test server is not available for verification)
Sha512sum Your-downloaded-file-name (full name of download file)

(3) Save SHA512 hash value to file (this file is best and download file same path)

(4) View save validation file cat Sha512-hash.txt

(5) Verifying the integrity of Tomcat

Note: This SHA1 and SHA512 and MD5 basically consistent, need to add the following is, in the use of md5sum or Sha1sum or sha512sum, check the file, be sure to let the system according to the path provided in the file to find the file, if the file is not found, There is no way to calibrate.
If you are doing multiple file hash check, you can save the hash value of multiple files by one file.

4. Configuring Tomcat

(1) Unzip Tomcat to the current path tar zxf apache-tomcat-9.0.7.tar.gz

(2) Move the Tomcat decompression package to the specified location
MV Apache-tomcat-9.0.7/usr/local/tomcat

5. Configure Environment variables

(1) Edit environment variable Vi/etc/profile

(2) View the configured environment variables Tail-n2/etc/profile

(3) Implementation of the effective Source/etc/profile

6. Start Tomcat

(1) Start tomcat/usr/local/tomcat/bin/startup.sh

(2) Close tomcat/usr/local/tomcat/bin/shutdown.sh

(3) View 8080 Port Netstat-anutpl | grep 8080

7. Mobile War Package

(1) Download the war package and move to/usr/local/tomcat/webapps/(according to the project download the corresponding war package)

8. Access Tomcat (browser open authentication)

(1) Verifying Tomcat http://192.168.1.10:8080/

(2) Verify the new features of the war file http://192.168.1.10:8080/tech-sdkwrapper/

Note: The above proves to build tomcat success!

CENTOS7 Deploying the Java Environment

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.