linux下的tomcat和mysql重起shell
linux下的tomcat和mysql重起
/usr/local/tomcat4.1.31/bin/shutdown.sh
/usr/local/mysql/bin/mysqladmin shutdown -u mysql用户名 -pmysql口令
i=`ps -ef|grep -E "java"|grep -v grep|awk '{print$2}'`
kill -9 $i
i1=`ps -ef|grep -E "mysqld_safe"|grep -v grep|awk '{print $2}'`
kill -9 $i1
/usr/local/mysql/bin/mysqld_safe -u mysql &
/usr/local/tomcat4.1.31/bin/startup.sh
?
?