o2geao 发表于 2018-12-3 06:55:07

freebsd 重启 Tomcat

  su 到root
  进到/usr/local/etc/rc.d

  ./tomcat55 stop

  ./tomcat55 start

  

  如果start失败:WARNING: failed to start tomcat55
  需要查看进程:
  
  在root下。
  ps -aux|grep java
  会这样显示:
  www 75482 0.0 4.6 686700 95304 ?? Ss 12:10PM 0:14.31
  root 76761 0.0 0.0 3496 1008 3 S+ 12:23PM 0:00.00 grep java
  root 74045 0.0 9.9 724960 205728 1- S 6May11 20:00.16 /usr/local/diablo-jdk1.5.0/jre/bin/java -classpath /usr/home/zhao/adito-0.9.1/lib/adito-boot
  

  起中后面一条记录是***服务器的。
  第一条是tomcat的。
  这时,你可以试试kill 75482 , 75482是第一条的进程号。
  

  再做一次:ps -aux|grep java
  如果发现那个进程还在。就说明不能正常退出了。
  那么执行:kill -9 75482,之后在ps -aux|grep java,就会发现进程不见了。
  

  这时就可以正常启动了tomcat了。
  


  




页: [1]
查看完整版本: freebsd 重启 Tomcat