huangfen2002 发表于 2018-12-3 06:42:31

How to setup tomcat in linux?

After downloading the Tomcat, you will set up something to make it work.

1. Set the JAVA_HOME to start the Tomcat.

Add the follong lines into the /bin/catalina.sh

#------------------------------------------------------------------------------#Add by Robert Lee - Only the JAVA_HOME is mandatory.
JAVA_HOME="../../jdk1.5.0_15"export JAVA_HOME
#------------------------------------------------------------------------------

2. Make sure there is no space in the java path or tomcat path.

3. Add the role for manager and administrator.   

Add the following lines in /conf/tomcat-users.xml

         

Then you can log in the manager and administration interface by webconsole.




页: [1]
查看完整版本: How to setup tomcat in linux?