安装JBoss As 7分为下面几个步骤:
1. 下载JBoss
下载地址:
<span style="font-size:18px;">http://www.jboss.org/jbossas/downloads</span>选择JBoss As 7 的7.1.1的社区版。
2. 解压:
<span style="font-size:18px;">#mkdir –p /usr/local/jboss # unzip jboss-***.zip # mv jboss-*** /usr/local/jboss # chmod +x /usr/local/jboss/bin/*.sh</span>
3. 启动与停止
停止的时候可直接在前台按CTRL+C结束当前程序,启动命令:
# sh /usr/local/jboss/bin/standalone.sh
# sh /usr/local/jboss/bin/jboss-cli.sh --connect command=:shutdown
4. 访问JBoss :
jboss默认Web服务端口为8080,且默认情况下只能通过127.0.0.1 或者localhsot来访问,不能通过本机所配的IP来访问
访问地址为:http://127.0.0.1:8080/
5. 添加JBoss Web管理用户
JBoss支持通过web方式来管理及部署项目,前提需要添加一个管理员用户
# sh /usr/local/jboss/bin/add-user.sh
What type of user do you wish to add? a) Management User (mgmt-users.properties) b) Application User (application-users.properties) (a): Enter the details of the new user to add. Realm (ManagementRealm) : Username : john Password : \\ 密码需要保持一定的复杂性 Re-enter Password : About to add user 'minunix' for realm 'ManagementRealm'
登陆界面:
管理页主界面:
JBoss AS 7之简单安装(The Return Of The King),布布扣,bubuko.com
JBoss AS 7之简单安装(The Return Of The King)
原文:http://blog.csdn.net/john_f_lau/article/details/32938771