本文介绍了Windows 10中的jfrog-artifactory-oss-7.3.2中的默认端口(8081)更改为其他端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在Windows 10中安装了jfrog-artifactory-oss-7.3.2.在以下文件中,默认端口已更改为8285. (可用8285端口)

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)

  1. C:\ jfrog-artifactory-oss-7.3.2-windows \ artifactory-oss-7.3.2 \ app \ artifactory \ tomcat \ conf/server.xml
  2. C:\ jfrog-artifactory-oss-7.3.2-windows \ artifactory-oss-7.3.2 \ app \ misc \ tomcat/server.xml.template
  3. C:\ jfrog-artifactory-oss-7.3.2-windows \ artifactory-oss-7.3.2 \ app \ misc \ tomcat/server.xml

一旦执行artifactory.bat,服务器就会正常启动.我在catalina日志中看不到任何访问日志,access_service等日志文件中的日志错误.

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状态404 –找不到类型状态报告讯息/ui/描述原始服务器找不到目标资源的当前表示,或者不愿意透露该资源的存在.Apache Tomcat/8.5.51 *****

***** HTTP Status 404 – Not FoundType Status ReportMessage /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 *****

如果我改回默认端口(8081),则可以正常工作.

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.

推荐答案

要更改工件的服务器端口,您需要在 system.yaml .请查看system.yaml.template.

To change server port of artifactory, you need change in system.yaml. Please review system.yaml.template.

system.yaml中的路径为

The path in system.yaml is

artifactory:
  port: 8081

此更改还将在server.xml中进行所需的更改.

This change will make changes needed in server.xml as well.

此外,如果您想更改用于UI的路由器端口.请如下更改system.yaml

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.

这篇关于Windows 10中的jfrog-artifactory-oss-7.3.2中的默认端口(8081)更改为其他端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 20:56