Troubleshoot Tomcat self-boot issues under Ubuntu 12.04

Source: Internet
Author: User

When we installed Tomcat to use, we found that each boot need to manually type sudo/var/tomcat/bin/startup.sh in the terminal, then how do we solve this problem?

http://hovertree.com/menu/ubuntu/

Here's my solution:

1. First open the terminal, enter Su, and then enter the root password to get root privileges. Enter/etc folder (using CD/ETC command)

2. Open the Rc.local file (use the VI rc.local command in the/etc directory)

3.rc.local file content defaults to the following

#!/bin/sh-e

#

# rc.local

#

# This script was executed at the end of each multiuser runlevel.

# Make sure the script would "exit 0" on success or any other

# Value On error.

#

# in order to enable or disable this script just change the execution

# bits.

#

# By default this script does nothing.

/var/tomcat/bin/startup.sh

Exit 0

4. Red content for our manually added content, this refers to the Tomcat boot item, then how to change it, first type A into the insert mode, move the cursor to the red position to enter the exact path, press ESC to exit Insert mode, the cursor moves to the end of the line, type: Wq Save the file

At this point, we have solved this problem and restarted Ubuntu we found that we can already automatically access the contents of Tomcat

Recommendation: http://www.cnblogs.com/roucheng/p/ubuntu.html

Troubleshoot tomcat self-boot issues under Ubuntu 12.04

Related Article

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.