Install 1.atat download apache-tomcat-5.5.27.tar.gz 2. Go to/var/ftp/pubto run the command tar-xzvfapache-tomcat-5.27.tar.gz 3. Move the extracted directory to the root directory and rename it. Mvapache-tomcat-5.5.27/tomcat54. enter the tomcat/bin directory and enter./startup.
Install
1. Download apache-tomcat-5.5.27.tar.gz from the official website of Tomcat.
2. Run the command tar-xzvf apache-tomcat-5.5.27.tar.gz in/var/ftp/pub.
3. Move the extracted directory to the root directory and rename it. Mv apache-tomcat-5.5.27/tomcat5
4. Go to the tomcat/bin directory and enter./startup. sh to start tomcat.
5. Enter http: // ip: 8080/to display the welcome page.
Set to auto start upon startup
1. vi etc/rc. d/rc. local add export JAVA_HOME =/var/ftp/pub/jdk1.6.0 _ 15 to the file
/Tomcat5/bin/startup. sh
2. Restart the reboot command
Notes:
1. For details about tar commands, refer to man tar or google.
2. After starting tomcat, you can use ps-aux | grep tomcat to view its process. kill-9 pid to kill the process.
3. if you enter http: // ip: 8080/, you cannot see the welcome page. The first is to check whether tomcat is enabled, and the other reason is to go to tomcat5/logs/to view catalina. out to view tomcat startup logs. You can also view
4. In % tomact % conf/tomact_user.xml, you can view and set tomcat user names, passwords, and role permissions.
If you want to add an administrator user (because tomcat does not set a user at the beginning, an error occurs when you enter the management page), you can add one: