Set JDK and TOMCAT in linux

Source: Internet
Author: User
Article Title: Set JDK and TOMCAT in linux. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic categories. Download the JDK liunx version in linux, preferably the bin version. In general, we put the downloaded file under/usr/local/src, ChmodA + x jdk .... /Jdk ............

Enter yes, and wait for a while before the installation is complete.

Installing a kitten is simpler.Tar. Put the version of gz under/usr/local/src, decompress it, but set it.Environment Variable.

We need to set environment variables.

Export JAVA_HOME =/usr/local/src/jdk1. 6. 0_10

ExportPATH= $ JAVA_HOME/bin: $ PATH

Export CLASSPATH =. : $ JAVA_HOME/lib/dt. Jar: $ JAVA_HOME/lib/tools. Jar

Export CATALINA_HOME =/usr/local/src/apachE-Tomcat

Export CATALINA_BASE =/usr/local/src/apache-tomcat

In/etc/ProfileAt last, write the above content at the end. In particular, we need to note that in win, we use semicolons for isolation. in linux, we use colons for isolation. During my first time, I am suffering from this loss. I hope you will pay attention to it.

When we enter java-version and check whether the latest JDK version is installed, the installation and configuration are successful.

When we enter/usr/local/src/apacht-tomcat/bin/startup. Sh

Then you can see the following:

Using CATALINA_BASE:/usr/local/src/apache-tomcat-6. 0. 18

Using CATALINA_HOME:/usr/local/src/apache-tomcat-6. 0. 18

Using CATALINA_TMPDIR:/usr/local/src/apache-tomcat-6. 0. 18/temp

Using JRE_HOME:/usr/local/src/jdk1. 6. 0_10

It indicates that the installation is successful. You can enter http: // localhost: 8080/in the browser to view the welcome page of the kitten. At this point, the installation is complete.

This installation of JDK and TOMCAT was particularly smooth. It was previously configured several times. They all ended in failure and were very depressed. This was a success, so remember to prepare for the future and hope to make progress together with everyone.

It should be tomcat6. Version 0 has no management module, and it has not been found on the internet for a long time. Finally, I saw an article on the Internet and changed something in a file, tomcat-users in the conf subdirectory of tomcat 6 installation directory. Xml file with the following content:

In Between

The first sentence indicates adding a role named manager (Administrator); the second sentence indicates adding a user. The role (roles) of this user is manager, the username is tomcat, And the password (Password) Is tomcat.

Then we need to restart the kitten. Then we can enter the user name and password and click "OK" to go to Web management.

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.