In this KB article we will demonstrate how you can change Artifactory’s service port in both versions 6.x and 7.x
Artifactory uses port 8081 by default. In version 6.x this port is also used to access the web UI.
In version 7.x the web UI is accessible via port 8082 and Artifactory’s service is still using port 8081.
In this example, we will change the port from 8081 to 8080.
Instructions for version 7.x:
Navigate to $JFROG_HOME/artifactory/etc/
Edit the “system.yaml” file and add the following values:
Make sure that
artifactory is not indented and that the
port value is indented with 4 spaces.
Restart Artifactory for the change to take effect.
More information can be found here.
Instructions for version 6.x:
Navigate to $ARTIFACTORY_HOME/tomcat/conf/ directory
Edit the “server.xml” file to modify the port number from 8081 to 8080
In order to change Artifactory’s port number to 8080 it would be required to change the line:
<Connector port="8081" sendReasonPhrase="true" relaxedPathChars='' relaxedQueryChars='' maxThreads="200"/>
<Connector port="8080" sendReasonPhrase="true" relaxedPathChars='' relaxedQueryChars='' maxThreads="200"/>
Restart Artifactory to apply the changes.