EC2

sudo yum remove java-1.7.0-openjdk
cd /opt
wget http://download.jboss.org/wildfly/10.1.0.Final/wildfly-10.1.0.Final.tar.gz
tar xvf
mv wildfly-10.1.0.Final wildfly
adduser -r -U wildfly
password wildfly
sudo chown wildfly:wildfly -R /opt/wildfly

sudo cp wildfly/docs/contrib/scripts/init.d/wildfly-init-redhat.sh /etc/init.d/wildfly
sudo cp wildfly-10.1.0.Final/docs/contrib/scripts/init.d/wildfly.conf /etc/default/
chkconfig --add wildfly
vim /opt/wildfly/standalone/configuration/standalone.xml 
vim /etc/default/wildfly.conf
cd configuration
keytool -genkey -alias ryoji -keyalg RSA -keystore ryoji.keystore -validity 10950
vim /opt/wildfly/domain/configuration/domain.xml 

Jenkins

[root@ip-172-31-23-192 bin]# netstat -tlnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      2476/sshd           
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      2506/sendmail       
tcp        0      0 0.0.0.0:8443                0.0.0.0:*                   LISTEN      21277/java          
tcp        0      0 127.0.0.1:9990              0.0.0.0:*                   LISTEN      21277/java          
tcp        0      0 127.0.0.1:9993              0.0.0.0:*                   LISTEN      21277/java          
tcp        0      0 0.0.0.0:52335               0.0.0.0:*                   LISTEN      2310/rpc.statd      
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      2289/rpcbind        
tcp        0      0 0.0.0.0:8080                0.0.0.0:*                   LISTEN      21277/java          
tcp        0      0 ::ffff:127.0.0.1:9300       :::*                        LISTEN      21554/java          
tcp        0      0 :::22                       :::*                        LISTEN      2476/sshd           
tcp        0      0 :::39695                    :::*                        LISTEN      2310/rpc.statd      
tcp        0      0 :::111                      :::*                        LISTEN      2289/rpcbind        
tcp        0      0 ::ffff:127.0.0.1:9200       :::*                        LISTEN      21554/java            

/file/EC2/wildfly_admin.png

Added user 'ryoji' to file '/opt/wildfly/standalone/configuration/mgmt-users.properties'
Added user 'ryoji' to file '/opt/wildfly/domain/configuration/mgmt-users.properties'
Added user 'ryoji' with groups admin to file '/opt/wildfly/standalone/configuration/mgmt-groups.properties'
Added user 'ryoji' with groups admin to file '/opt/wildfly/domain/configuration/mgmt-groups.properties'

web.xml

    <login-config>
        <auth-method>BASIC</auth-method>
        <realm-name>ApplicationRealm</realm-name>
    </login-config>

    <security-role>
        <role-name>admin</role-name>
    </security-role>
    
    <security-constraint>
        <auth-constraint>
            <role-name>admin</role-name>
        </auth-constraint>
        <web-resource-collection>
            <web-resource-name>Secure URLs</web-resource-name>
            <url-pattern>/*</url-pattern>
        </web-resource-collection>
        <user-data-constraint>
            <transport-guarantee>CONFIDENTIAL</transport-guarantee>
        </user-data-constraint>
    </security-constraint>
mvn compile war:war -DskipTests
    last modified: 29 April 2017 [ View wiki source Close ]
     
SEARCH DIFFERENCE ATTACHMENT RECENT POST