- [root@CMS1 resin]# ./bin/httpd.sh start
- Resin/3.1.10 can't start -server '' for watchdog at 127.0.0.1:6600.
- java.lang.IllegalStateException: Can't start new task because of old task 'WatchdogTask[Watchdog[]]'
- [root@CMS1 resin]# cd -
- /opt/resin/conf
- [root@CMS1 conf]# view resin.conf
- [root@CMS1 conf]# cd -
- /opt/resin
- [root@CMS1 resin]# ./bin/httpd.sh restart
- Resin/3.1.10 stopped -server '' for watchdog at 127.0.0.1:6600
- [root@CMS1 resin]#
resin启动脚本:http.sh
点击(此处)折叠或打开
- [root@admin ~]# cat /opt/resin/bin/httpd.sh
- #! /bin/sh
- #
- # See contrib/init.resin for /etc/rc.d/init.d startup script
- #
- # resin.sh can be called like apachectl
- #
- # resin.sh -- execs resin in the foreground
- # resin.sh start -- starts resin in the background
- # resin.sh stop -- stops resin
- # resin.sh restart -- restarts resin
- #
- # resin.sh will return a status code if the wrapper detects an error, but
- # some errors, like bind exceptions or Java errors, are not detected.
- #
- # To install, you'll need to configure JAVA_HOME and RESIN_HOME and
- # copy contrib/init.resin to /etc/rc.d/init.d/resin. Then
- # use "unix# /sbin/chkconfig resin on"
- if test -n "${JAVA_HOME}"; then
- if test -z "${JAVA_EXE}"; then
- JAVA_EXE=$JAVA_HOME/bin/java
- fi
- fi
- #
- # trace script and simlinks to find the wrapper
- #
- if test -z "${RESIN_HOME}"; then
- script=`/bin/ls -l $0 | awk '{ print $NF; }'`
- while test -h "$script"
- do
- script=`/bin/ls -l $script | awk '{ print $NF; }'`
- done
- bin=`dirname $script`
- RESIN_HOME="$bin/.."
- fi
- exec $JAVA_EXE -jar ${RESIN_HOME}/lib/resin.jar $*
- [root@admin ~]#