Jbossダイエット

3804 ワード

1.不要なprofileをすべて削除します:all,standard,minimal,web.2.web-console.war,admin-console.war, ROOT.war,management削除.3.jmx-console.war安全補強.
 
具体的な操作は以下の通りである:1.jboss-5.1.1.0をGA-jdk6.zip解凍削除ディレクトリjboss-5.1.0.GA/server/all, standard,minimal,web unzip jboss-5.1.0.GA-jdk6.zip cd jboss-5.1.0.GA/server rm -rf all standard minimal web 2.defaultで不要なサービスcd default/deploy rm-rf admin-consoleを削除します.war/ROOT.war/management/3.jmx-console.war安全補強jboss-5.1.0.GA/server/default/deploy/jmx-console.war/WEB-INF/jboss-web.xml
<jboss-web>
<!-- Uncomment the security-domain to enable security. You will
need to edit the htmladaptor login configuration to setup the
login modules used to authentication users.
<security-domain>java:/jaas/jmx-console</security-domain>
-->
</jboss-web>
 
注記:
<jboss-web>
<!-- Uncomment the security-domain to enable security. You will
need to edit the htmladaptor login configuration to setup the
login modules used to authentication users.-->
<security-domain>java:/jaas/jmx-console</security-domain>
</jboss-web>
 
jboss-5.1.1.0をGA/server/default/deploy/jmx-console.war/WEB-INF/web.xml
<!-- A security constraint that restricts access to the HTML JMX console
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.
<security-constraint>
<web-resource-collection>
<web-resource-name>HtmlAdaptor</web-resource-name>
<description>An example security config that only allows users with the
role JBossAdmin to access the HTML JMX console web application
</description>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>JBossAdmin</role-name>
</auth-constraint>
</security-constraint>
-->
 
注記を開く
<!-- A security constraint that restricts access to the HTML JMX console
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. -->
<security-constraint>
<web-resource-collection>
<web-resource-name>HtmlAdaptor</web-resource-name>
<description>An example security config that only allows users with the
role JBossAdmin to access the HTML JMX console web application
</description>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>JBossAdmin</role-name>
</auth-constraint>
</security-constraint>
 
jboss-5.1.1.0をGA/server/default/conf/props/jmx-console-users.properties
# A sample users.properties file for use with the UsersRolesLoginModule
admin=admin
   
# A sample users.properties file for use with the UsersRolesLoginModule
#admin=admin
 
 
jmx-consoleにアクセスするには注釈を開く必要があります.adminのパスワードを複雑なパスワードに変更します.のように
# A sample users.properties file for use with the UsersRolesLoginModule
admin=jsidJSAOIA!@#$%