我只知道linux下手动查找webserver进程的命令是ps -ef | grep webserver,但是我不知道为什么用脚本来kill用的是这条命令呢?
http://man.linuxde.net/pgrep
pgrep 直接取到pid值
..........写错了你是Tomcat启动失败了还是MyEclipse?