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