First, go ahead and run EasyApache and select the option to install Tomcat. This will indeed install Tomcat 5.5, but that’s OK. Let EasyApache do the grunt work for you.
After it’s installed, you’ll need to put the Tomcat 7 files in place:
cd /usr/local/jakartaNote: The above example is based off of the latest version of Tomcat available at this time. You can get the latest version at http://tomcat.apache.org/download-70.cgi .
wget http://apache.claz.org/tomcat/tomcat-7/v7.0.41/bin/apache-tomcat-7.0.41.tar.gz
tar -xvzf apache-tomcat-7.0.41.tar.gz
ln -sf ln -sf /usr/local/jakarta/apache-tomcat-7.0.41 /usr/local/jakarta/tomcat
While still in the jakarta folder, compile the daemon:
cd ./tomcat/binNow kill off tomcat and restart it:
tar -xvzf tomcat-native.tar.gz
cd commons-daemon-*
cd unix
./configure
make
cp jsvc ../../
killall javaAnd add the latter command to /etc/rc.local:
/scripts/restartsrv_tomcat
sed ‘/starttomcat/d’ -i /etc/rc.local
echo ‘/scripts/restartsrv_tomcat’ >> /etc/rc.local
No comments:
Post a Comment