设置resin在linux下的默认启动
第一种方式:
在/etc/init.d/下添加一个启动脚本
#vi resin.sh
?
?
保存退出
#chmod u+x resin.sh
#chkconfig --add resin.sh
?
#service resin.sh start 启动
#service resin.sh stop 关闭
?
第二种方法
# vi /usr/local/resin/bin/httpd.sh
把原来
if test -n "${JAVA_HOME}"; then if test -z "${JAVA_EXE}"; then JAVA_EXE=$JAVA_HOME/bin/java fielse JAVA_EXE=/usr/local/jrmc4/bin/java fi?
保存退出
#切换到
/etc/init.d 下面
#ln -s /usr/local/resin/bin/httpd.sh httpd
#chmod u+x httpd
#chkconfig --add httpd
#service httpd?start 启动
#service httpd?stop 关闭
?
删除默认启动用 chkconfig --del httpd