Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Configure the java base environment-install jdk and tomcat

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

How to configure the java basic environment? How do I install jdk and tomcat? This problem may be often seen in our daily work. Through this question, I hope you can gain more. If you don't look at the answer, I don't know if you are sure to answer this question. Let's try it.

Install JDK and Tomcat

1. Install JDK in rpm package on orecal official website.

1. Find download entry in orecal's official website, and then look for java. When you click to download java, you will jump to the back-end interface, where you can download the corresponding jdk.

two。 Install it using yum or rpm in a directory with jdk.rpm.

3. Jdk downloaded in this way will be installed in the / usr/java directory.

[root@tang java] # ll

Total 4

Lrwxrwxrwx 1 root root 16 Nov 18 20:01 default-> / usr/java/latest

Drwxr-xr-x 10 root root 4096 Nov 18 20:01 jdk-13.0.1

Lrwxrwxrwx 1 root root 20 Nov 18 20:01 latest-> / usr/java/jdk-13.0.1

Global configuration of 4.java.

[root@tang java] # vim / etc/profile.d/jdk.sh

JAVA_HOME=usr/java/default

PATH=$JAVA_HOME/bin:$PATH

2. Installation of binary package of Tomcat

1. Download the tomcat binary package on the Tomcat official website.

two。 Extract and create a directory soft connection.

3. Create a system user who starts tomcat.

Useradd-r tomcat

4. Start tomcat

Root@tang bin] # ll

Total 860

-rw-r- 1 root root 35109 Oct 7 21:31 bootstrap.jar

-rw-r- 1 root root 15953 Oct 7 21:31 catalina.bat

-rwxr-x--- 1 root root 23567 Oct 7 21:31 catalina.sh

-rw-r- 1 root root 1664 Oct 7 21:33 catalina-tasks.xml

-rw-r- 1 root root 2123 Oct 7 21:31 ciphers.bat

-rwxr-x--- 1 root root 1997 Oct 7 21:31 ciphers.sh

-rw-r- 1 root root 25197 Oct 7 21:31 commons-daemon.jar

-rw-r- 1 root root 206895 Oct 7 21:31 commons-daemon-native.tar.gz

-rw-r- 1 root root 2040 Oct 7 21:31 configtest.bat

-rwxr-x--- 1 root root 1922 Oct 7 21:31 configtest.sh

-rwxr-x--- 1 root root 8513 Oct 7 21:31 daemon.sh

-rw-r- 1 root root 2091 Oct 7 21:31 digest.bat

-rwxr-x--- 1 root root 1965 Oct 7 21:31 digest.sh

-rw-r- 1 root root 3460 Oct 7 21:31 setclasspath.bat

-rwxr-x--- 1 root root 3708 Oct 7 21:31 setclasspath.sh

-rw-r- 1 root root 2020 Oct 7 21:31 shutdown.bat

-rwxr-x--- 1 root root 1902 Oct 7 21:31 shutdown.sh shutdown script

-rw-r- 1 root root 2022 Oct 7 21:31 startup.bat

-rwxr-x--- 1 root root 1904 Oct 7 21:31 startup.sh startup script

-rw-r- 1 root root 49937 Oct 7 21:31 tomcat-juli.jar

-rw-r- 1 root root 419428 Oct 7 21:31 tomcat-native.tar.gz

-rw-r- 1 root root 4574 Oct 7 21:31 tool-wrapper.bat

-rwxr-x--- 1 root root 5515 Oct 7 21:31 tool-wrapper.sh

-rw-r- 1 root root 2026 Oct 7 21:31 version.bat

-rwxr-x--- 1 root root 1908 Oct 7 21:31 version.sh

This article gives you a detailed introduction to configuring the installation of jdk and tomcat in the java base environment. Most of the knowledge is often used by everyone, so I will share it for you as a reference. Let's follow the editor and have a look.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report