close




當你關tomcat後,
找出tomcat的 process id

以下指令查看process:

ps -ef|grep java

強制關掉 process id
以下指令:

kill -9 (在輸入process id)

進階語法,關tomcat後下以下的指令,
直接查看後關掉的一次指令:
以下指令:

ps -ef | grep "apache-tomcat" | grep -v grep | sed 's/ [ ]*/:/g'|cut -d: -f2| kill -9 `cat`


參考網站










arrow
arrow

    PG Levin Li 發表在 痞客邦 留言(0) 人氣()