export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
export JRE_HOME=/usr/lib/jvm/java-6-openjdk/jre
export CATALINA_HOME=/home/ard/installedMODULES/apache-tomcat-6.0.35
Take note that these will all be different on your system. Java will likely be in close to the same place, but Catalina Home will wherever the Tomcat folder is located on your disk. You can also add something like this:
alias testing='ls -la'
And if you can run that alias in a new bash shell, then you know bash is importing your settings from .bashrc...
Now all you have to do is go to CATALINA_HOME/conf/tomcat_users.xml which currently should be empty, and add a manager:
<tomcat-users>
<role rolename="manager"/>
<user username="root" password="test" roles="manager"/>
</tomcat-users>
Finally, you can start up Tomcat by executing CATALINA_HOME/bin/startup.sh
No comments:
Post a Comment