Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Active MQ

1. sudo su
2. mkdir /usr/lib/jvm
3. mv /tmp/jdk1.8.0_51 /usr/lib/jvm/
4. update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0_51/bin/java 1065
5. update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.8.0_51/bin/javac 1065
6. update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.8.0_51/bin/jar 1065
7. update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.8.0_51/bin/javaws 1065
8. update-alternatives --config java
9. java -version
10. http://activemq.apache.org/download.html
11. mv apache-activemq-5.11.1-bin.tar.gz /opt/
12. tar zxvf apache-activemq-5.11.1-bin.tar.gz
13. mv apache-activemq-5.11.1 activemq
14. bin/activemq start
15. netstat -nl|grep 61616
16. bin/activemq status
17. http://127.0.0.1:8161/admin/

vim conf/jetty-realm.properties

username: password, rolename. The default values are: admin:admin,admin. Therefore, changing the second value will update the password. admin: newpassword, admin.

==================================
apache2/conf/extra/httpd-info.conf
port foward
<Location /admin>
        Require ip xxxxxxxx/32

    </Location>
==================================

<VirtualHost *:80>
-----------------
Alias /apps //jboss/jboss_1/apps.war
Alias /cont /data
    ProxyPreserveHost On

    <Proxy *>
        Order allow,deny
        Allow from all
    </Proxy>
    ProxyPass /admin http://localhost:8161/admin
    ProxyPassReverse /admin http://localhost:8161/admin

</VirtualHost>

***************************************
restric access to "user"--->/conf/jetty.xml


 <bean id="securityConstraint" class="org.eclipse.jetty.util.security.Constraint">
        <property name="name" value="BASIC" />
        <property name="roles" value="user,admin" />
        <!-- set authenticate=false to disable login -->
        <property name="authenticate" value="true" />
    </bean>
    <bean id="adminSecurityConstraint" class="org.eclipse.jetty.util.security.Constraint">
        <property name="name" value="BASIC" />
        <property name="roles" value="admin" />
         <!-- set authenticate=false to disable login -->
        <property name="authenticate" value="true" />
    </bean>
    <bean id="securityConstraintMapping" class="org.eclipse.jetty.security.ConstraintMapping">
        <property name="constraint" ref="securityConstraint" />
        <property name="pathSpec" value="/admin/queues.jsp,/admin/browse.jsp/*,/admin/message.jsp/*" />
    </bean>
    <bean id="adminSecurityConstraintMapping" class="org.eclipse.jetty.security.ConstraintMapping">
        <property name="constraint" ref="adminSecurityConstraint" />
        <property name="pathSpec" value="*.action,/api/*,/admin/*,*.jsp" />
    </bean>

No comments:

Post a Comment