如何自定义 Sonatype Nexus 运行 端口?

How to customize Sonatype Nexus running port?

我正在使用 Sonatype Nexus OSS 3.2 版。谁能指导我如何自定义 Nexus 运行 的端口?

我找不到任何配置文件来自定义端口和自定义上下文路径?

目前 Nexus 在 http://<ServerName>:8081/ 运行 上运行,我希望它更改为 http://<ServerName>:9001/nexus

您需要在 sonatype-work/nexus3/etc/ 中编辑 nexus.properties,特别是应用程序端口。将其设置为 9001,重新启动 Nexus Repository 并享受旅程:)