Install Tomcat 6 on CentOS or RHEL --转载
Once you have added the above to ~/.bash_profile or ~/.bashrc,you <div class="dp-highlighter"> <div class="bar"> <div class="tools"> <a href="http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centos">view plain<a href="http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centos">copy to clipboard<a href="http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centos">print<a href="http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centos">?
Step 2: Download and Install Tomcat 6.0.32:
Download apache-tomcat-6.0.32.tar.gz <a href="http://tomcat.apache.org/download-60.cgi" target="_blank">here Save the file to a directory. I'm saving it to /root/apache-tomcat-6.0.32.tar.gz Before proceeding,you should verify the MD5 Checksum for your Tomcat download (or any other download). Since we saved the Tomcat download to /root/apache-tomcat-6.0.32.tar.gz,we'll go to the /root directory and use the md5sum command. <div class="dp-highlighter"> <div class="bar"> <div class="tools"> <a href="http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centos">view plain<a href="http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centos">copy to clipboard<a href="http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centos">print<a href="http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centos">?
Compare the output above to the MD5 Checksum provided by <a href="http://www.apache.org/dist/tomcat/tomcat-6/v6.0.32/bin/apache-tomcat-6.0.32.zip.md5" target="_blank">the Apache Tomcat MD5 page Now,move (mv) or copy (cp) the file to the /usr/share directory: <div class="dp-highlighter"> <div class="bar"> <div class="tools"> <a href="http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centos">view plain<a href="http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centos">copy to clipboard<a href="http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centos">print<a href="http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centos">?
Change to the /usr/share directory and unpack the file using tar -xzf: <div class="dp-highlighter"> <div class="bar"> <div class="tools"> <a href="http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centos">view plain<a href="http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centos">copy to clipboard<a href="http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centos">print<a href="http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centos">?
This will create the directory /usr/share/apache-tomcat-6.0.32 At this point,you could start Tomcat via the Tomcat bin directory using <div class="dp-highlighter"> <div class="bar"> <div class="tools"> <a href="http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centos">view plain<a href="http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centos">copy to clipboard<a href="http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centos">print<a href="http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centos">?
Step 3: How to Run Tomcat as a Service.
We will now see how to run Tomcat as a service and create a simple (编辑:威海站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |