UbuntuServer11.10 install Tomcat6

Source: Internet
Author: User
1. Install devadm @ devserver :~ $ Sudotasksel select [*] atatjavaserver.2. after installation, devadm @ devserver :~ $ Sudoservicetomcat6status * Tomcatservletengineisrunningwithpid2619devad

1. installation:

Devadm @ devserver :~ $ Sudo tasksel

Select [*] Tomcat Java server.

2. After installation:

Devadm @ devserver :~ $ Sudo service tomcat6 status
* Tomcat servlet engine is running with pid 2619
Devadm @ devserver :~ $

3. Refer to the http://wiki.Ubuntu.org.cn/Tomcat6, run startup. sh, first find where:

Devadm @ devserver :~ $ Sudo find/usr | grep startup. sh
/Usr/share/tomcat6/bin/startup. sh
Devadm @ devserver :~ $


Run startup. sh

Devadm @ devserver :~ $ Sudo/usr/share/tomcat6/bin/startup. sh
Using CATALINA_BASE:/usr/share/tomcat6
Using CATALINA_HOME:/usr/share/tomcat6
Using CATALINA_TMPDIR:/usr/share/tomcat6/temp
Using JRE_HOME:/usr
Using CLASSPATH:/usr/share/tomcat6/bin/bootstrap. jar
Touch: cannot touch '/usr/share/tomcat6/logs/catalina. out': No such file or directory
/Usr/share/tomcat6/bin/catalina. sh: 503: cannot create/usr/share/tomcat6/logs/catalina. out: Directory nonexistent
Devadm @ devserver :~ $


An error occurred. solve it!

Devadm @ devserver :~ $ Sudo ls-l/usr/share/tomcat6
Total 16
Drwxr-xr-x 2 root 4096 bin
-Rw-r -- 1 root 39 ults. md5sum
-Rw-r -- 1 root 1960 ults. template
Drwxr-xr-x 2 root 4096 lib
Devadm @ devserver :~ $ Sudo mkdir/usr/share/tomcat6/logs
Devadm @ devserver :~ $


Run startup. sh again.

Devadm @ devserver :~ $ Sudo/usr/share/tomcat6/bin/startup. sh
Using CATALINA_BASE:/usr/share/tomcat6
Using CATALINA_HOME:/usr/share/tomcat6
Using CATALINA_TMPDIR:/usr/share/tomcat6/temp
Using JRE_HOME:/usr
Using CLASSPATH:/usr/share/tomcat6/bin/bootstrap. jar
Devadm @ devserver :~ $

 

OK!

4. Do not forget the Firewall:

Devadm @ devserver :~ $ Sudo ufw allow8080/tcp

5. Enter the address in the browser: http: // devserver: 8080

It works! Easy to use!

The tomcat6-docs link is easy to use.

Tomcat6-examples links are mostly easy to use.

The two links to the tomcat6-admin need to enter the user name/password and try again later.

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.