tomcat安裝腳本

#!/bin/bash
cd /root
tar -xzvf tomcat-new.tar.gz
mv tomcat/ /usr/local/tomcattomcat

echo "CATALINA_HOME=/usr/local/tomcat" >> /etc/profile
echo "CATALINA_PID=\$CATALINA_HOME/catalina.pid" >> /etc/profile
echo "export CATALINA_HOME CATALINA_PID" >> /etc/profilebash

source /etc/profileide

echo -e "\033[32m tomcat安裝完畢!!! \033[0m"it

相關文章
相關標籤/搜索