connectionTimeout="20000" redirectPort="8443" />
将8080端口修改为80或其它需要的端口,将address后的jboss.bind.address改为本机的ip地址或者0.0.0.0,注意如果ip地址不修改且启动时没有绑定ip地址jboss启动后会无法访问。
2)
修改默认启动首页顺序
Cd /usr/local/jboss5.1.0/server/default/deployers/jbossweb.deployer
Vi
web.xml
login modules used to authentication
users.-->
java:/jaas/jmx-console
b)
找到/server/default/deploy/jmx-console.war/WEB-INF/web.xml文件查找到节点,去掉它的注释,修
b)改后该部分内容为:
to users with the role JBossAdmin. Edit the
roles to what you want and
uncomment the
WEB-INF/jboss-web.xml/security-domain element to enable
secured access to the HTML JMX console.
-->
HtmlAdaptor
An example security
config that only allows users with the
role JBossAdmin to access the HTML JMX
console web application
/*
GET
POST
JBossAdmin
c)
在第一步中的jmx-console安全域和第二步中的运行角色JBossAdmin都是在login-config.xml中配置,我们在JBoss安装目录/server/default/config下找到它。查找名字为:jmx-console的application-policy:
其中jmx-console-users.properties文件的内容如下:
# A sample
users.properties file for use with the UsersRolesLoginModule
admin=admin
该文件定义的格式为:用户名=密码,在该文件中,默认定义了一个用户名为admin,密码也为admin的用户,可将其改成所需的
用户名和密码。
jmx-console-roles.properties的内容如下:
# A sample
roles.properties file for use with the UsersRolesLoginModule
admin=JBossAdmin,
HttpInvoker