The number of packages discovered by "yum search tomcat" is large.
So, you can just execute following commands
yum install tomcat6
yum install tomcat6-webapps
yum install tomcat6-admin-webapps
and ... don't forget to install java if you have not done yet.
yum install java
After all installations are done, we just need few settings to start up tomcat.
Tomcat folders in Linux are not collected together,
but major parts are able to be found in /usr/share/tomcat6/
For JAVA_HOME setting, you must
vim /usr/share/tomcat6/conf/tomcat6.conf
and add the following line in .conf file.
JAVA_HOME="[jre_path(the path with 'jre' folder)]"
for my case, it's "/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0"
Additionally, you can add the following setting in "tomcat-users.xml" to create a admin account.
Finally, just start your "tomcat6" with service command.
service tomcat6 start
Enjoy it!
=============BTW=================
If you try to build a linux environment in Oracle virtualbox,
you can edit port mapping in "advanced setting" of network of your virtual machine.
And to change your firewall setting in Linux to make your host OS can access Linux services.
沒有留言:
張貼留言