Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1639169
  • 博文数量: 409
  • 博客积分: 6240
  • 博客等级: 准将
  • 技术积分: 4908
  • 用 户 组: 普通用户
  • 注册时间: 2011-06-01 00:04
文章分类

全部博文(409)

文章存档

2021年(1)

2019年(1)

2017年(1)

2016年(13)

2015年(22)

2013年(4)

2012年(240)

2011年(127)

分类: LINUX

2012-02-24 11:29:52


  1. [root@CMS1 resin]# ./bin/httpd.sh start
  2. Resin/3.1.10 can't start -server '' for watchdog at 127.0.0.1:6600.
  3. java.lang.IllegalStateException: Can't start new task because of old task 'WatchdogTask[Watchdog[]]'
  4. [root@CMS1 resin]# cd -
  5. /opt/resin/conf
  6. [root@CMS1 conf]# view resin.conf
  7. [root@CMS1 conf]# cd -
  8. /opt/resin
  9. [root@CMS1 resin]# ./bin/httpd.sh restart
  10. Resin/3.1.10 stopped -server '' for watchdog at 127.0.0.1:6600
  11. [root@CMS1 resin]#
resin启动脚本:http.sh

点击(此处)折叠或打开

  1. [root@admin ~]# cat /opt/resin/bin/httpd.sh
  2. #! /bin/sh
  3. #
  4. # See contrib/init.resin for /etc/rc.d/init.d startup script
  5. #
  6. # resin.sh can be called like apachectl
  7. #
  8. # resin.sh -- execs resin in the foreground
  9. # resin.sh start -- starts resin in the background
  10. # resin.sh stop -- stops resin
  11. # resin.sh restart -- restarts resin
  12. #
  13. # resin.sh will return a status code if the wrapper detects an error, but
  14. # some errors, like bind exceptions or Java errors, are not detected.
  15. #
  16. # To install, you'll need to configure JAVA_HOME and RESIN_HOME and
  17. # copy contrib/init.resin to /etc/rc.d/init.d/resin. Then
  18. # use "unix# /sbin/chkconfig resin on"
  19. if test -n "${JAVA_HOME}"; then
  20. if test -z "${JAVA_EXE}"; then
  21. JAVA_EXE=$JAVA_HOME/bin/java
  22. fi
  23. fi
  24. #
  25. # trace script and simlinks to find the wrapper
  26. #
  27. if test -z "${RESIN_HOME}"; then
  28. script=`/bin/ls -l $0 | awk '{ print $NF; }'`
  29. while test -h "$script"
  30. do
  31. script=`/bin/ls -l $script | awk '{ print $NF; }'`
  32. done
  33. bin=`dirname $script`
  34. RESIN_HOME="$bin/.."
  35. fi
  36. exec $JAVA_EXE -jar ${RESIN_HOME}/lib/resin.jar $*
  37. [root@admin ~]#








阅读(15791) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~