首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

设置resin在linux上的默认启动

2012-09-07 
设置resin在linux下的默认启动第一种方式:在/etc/init.d/下添加一个启动脚本#vi resin.sh ??保存退出#chmo

设置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

热点排行