查看java进程获取pid号 ps -ef|grep java|grep -v grep 根据pid号结束java进程 kill xxx 启动服务 nohup java -jar xxx.jar > webdemo.log