问题
I have installed the jfrog-artifactory-oss-7.3.2 in windows 10. Default port has been changed to the 8285 in below files. (8285 port is available)
- C:\jfrog-artifactory-oss-7.3.2-windows\artifactory-oss-7.3.2\app\artifactory\tomcat\conf/server.xml
- C:\jfrog-artifactory-oss-7.3.2-windows\artifactory-oss-7.3.2\app\misc\tomcat/server.xml.template
- C:\jfrog-artifactory-oss-7.3.2-windows\artifactory-oss-7.3.2\app\misc\tomcat/server.xml
once execute artifactory.bat server is getting up without any issue. I don't see any log errors in catalina log either access, access_service etc log files.
but browser gives below error.
***** HTTP Status 404 – Not Found Type Status Report Message /ui/ Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. Apache Tomcat/8.5.51 *****
If i change back to the default port(8081) it works perfectly.
If someone came across issue like this please share your thoughts and solutions.
回答1:
To change server port of artifactory, you need change in system.yaml. Please review system.yaml.template.
The path in system.yaml is
artifactory:
port: 8081
This change will make changes needed in server.xml as well.
Also if you want to change the router port which serves the UI. Please change system.yaml
as below
router:
entrypoints:
externalPort: <new port>
Let me know if this does not work for you.
来源:https://stackoverflow.com/questions/61300397/default-port-8081-changing-to-different-port-in-jfrog-artifactory-oss-7-3-2-in