您的位置:首页 > 其它

安装JBoss的自动启动脚本

2009-06-07 23:08 435 查看

安装JBoss的自动启动脚本

echo Move the jboss-init.sh file to /etc/init.d/ and rename it to jboss

sudo mv jboss-init.sh /etc/init.d/jboss

echo Change the owner of the /etc/init.d/jboss file to root

sudo chown root:root /etc/init.d/jboss

echo Make the /etc/init.d/jboss file executable

sudo chmod ug+x /etc/init.d/jboss

echo Activate the /etc/init.d/jboss file in the rc.d lifecycle process.

sudo update-rc.d jboss defaults


[/code]

现在您可以使用下面的命令启动JBoss服务器来作为后台进程(当您注销它也不会终止):

sudo /etc/init.d/jboss start


[/code]

要检验您的JBoss正在运行(最多可能需要几分钟的准备时间),请打开您的浏览器输入 http://localhost:8080/jmx-console 。如果成功,应该就会出现如图9显示的JBoss JMX控制台界面。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: