Execute the following command to verify the port changed after restarting the artifactory service:
You may also check the connector is changed in the $JFROG_HOME/artifactory/app/artifactory/tomcat/conf/server.xml file as the following:
curl http://<ARTIFACTORY_VM_IP>:8080/artifactory/api/system/ping -v * Trying <ARTIFACTORY_VM_IP>:8080... * Connected to <ARTIFACTORY_VM_IP> (<ARTIFACTORY_VM_IP>) port 8080 (#0) * Server auth using Basic with user 'admin' > GET /artifactory/api/system/ping HTTP/1.1 > Host: <ARTIFACTORY_VM_IP>:8080 > Authorization: Basic YWRtaW46UGFzc3dvcmQxIQ== > User-Agent: curl/7.84.0 > Accept: */* > * Mark bundle as not supporting multiuse < HTTP/1.1 200 < X-JFrog-Version: Artifactory/7.49.3 74903900 < X-Artifactory-Id: 8e6a0ae7cc192050:2207475a:18606ea432a:-8000 < X-Artifactory-Node-Id: nirsh-windows-upgrade < Content-Type: text/plain < Transfer-Encoding: chunked < Date: Tue, 31 Jan 2023 08:49:08 GMT < * Connection #0 to host <ARTIFACTORY_VM_IP> left intact OK%The above output from the command using port 8080 instead of port 8081 and verified the port has been changed.
You may also check the connector is changed in the $JFROG_HOME/artifactory/app/artifactory/tomcat/conf/server.xml file as the following:
<?xml version="1.0"?> <!-- ~ Artifactory is a binaries repository manager. ~ Copyright (C) 2019 JFrog Ltd. ~ ~ Artifactory is free software: you can redistribute it and/or modify ~ it under the terms of the GNU Affero General Public License as published by ~ the Free Software Foundation, either version 3 of the License, or ~ (at your option) any later version. ~ ~ Artifactory is distributed in the hope that it will be useful, ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ~ GNU Affero General Public License for more details. ~ ~ You should have received a copy of the GNU Affero General Public License ~ along with Artifactory. If not, see <http://www.gnu.org/licenses/>. → <Server shutdown="SHUTDOWN" port="8015"><Service name="Catalina"> <Connector port="8080" maxThreads="200" relaxedQueryChars="[]" relaxedPathChars="[]" sendReasonPhrase="false"/> <Connector port="8091" maxThreads="5" acceptCount="5" address="localhost"/> <!-- Must be at least the value of artifactory.access.client.max.connections → <Connector port="8040" maxThreads="50" sendReasonPhrase="false" address="localhost"/> <Engine name="Catalina" defaultHost="localhost"><Host name="localhost" startStopThreads="3" appBase="webapps" workDir="C:/jfrog/artifactory/var/work/artifactory/tomcat"> <Valve showServerInfo="false" showReport="false" className="org.apache.catalina.valves.ErrorReportValve"/> </Host> </Engine> </Service> </Server>