安装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
现在您可以使用下面的命令启动JBoss服务器来作为后台进程(当您注销它也不会终止):
sudo /etc/init.d/jboss start
要检验您的JBoss正在运行(最多可能需要几分钟的准备时间),请打开您的浏览器输入 http://localhost:8080/jmx-console 。如果成功,应该就会出现如图9显示的JBoss JMX控制台界面。