When we installed the Tomcat, we found that each boot required to manually type sudo/var/tomcat/bin/startup.sh in the terminal, so how do we solve the problem?
The following are my solutions:
1. First open the terminal, input su, and then enter the root password to obtain root permissions. Enter the/etc folder (using the CD/ETC command)
2. Open rc.local file (use VI rc.local command in/etc directory)
The 3.rc.local file content defaults to the following
# This script are executed at the end of each multiuser runlevel.
# Make sure that script would ' exit 0 ' on success or any other
# Value On error.
# in order to-enable or disable this script just change the execution
# By default this script does nothing.
4. Red content for our manually added content, here refers to the Tomcat startup item, then how to change it, first type A into insert mode, move the cursor to the red position to enter the exact path, press ESC to exit Insert mode, the cursor moved to the end of the line, type: Wq Save the file
Now that we've solved this problem, we've restarted Ubuntu and we've found that we can automatically access the content under Tomcat.