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

Install JDK_Tomcat

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

# JDK installation #

The version selected here is jdk-6u33-linux-x64.bin.

1. Upload installation files to the default path

two。 Grant execute permission to the installation file

Chmod + x jdk-6u33-linux-x64.bin

3. Perform installation

. / jdk-6u33-linux-x64.bin

Mv jdk1.6.0_33 / usr/local

Ln-s jdk1.6.0_33 java

4. Configure the environment variable and append it after / etc/profile.

JAVA_HOME=/usr/local/java

JRE_HOME=/usr/local/java/jre

CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib

PATH=$JAVA_HOME/bin:$PATH

Export PATH CLASSPATH JAVA_HOME

Source / etc/profile # gives effect to the modified configuration file

5. Check whether java is installed successfully

[root@p2ptest ~] # java-version

Java version "1.6.033"

Java (TM) SE Runtime Environment (build 1.6.0_33-b04)

Java HotSpot (TM) 64-Bit Server VM (build 20.8-b03, mixed mode)

# install Tomcat####

1. Extract the file

Tar zxf apache-tomcat-7.0.2.tar.gz-C / usr/local

Mv apache-tomcat-7.0.2 tomcat

2.vi / usr/local/tomcat/bin/catalina.sh add

JAVA_OPTS= "- Xms1024m-Xmx1024m-Xss1024K-XX:PermSize=128m-XX:MaxPermSize=256m"

Configuration file: / usr/local/tomcat/conf/server.xml

Log output: / usr/local/tomcat/logs/catalina.out

Connection string: / usr/local/tomcat/conf/context.xml

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

Database

Wechat

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

12
Report