如何使用命令行界面更改 Nexus 存储库 url?

How to change the nexus repository url using command line interface?

我已经使用命令行安装了 Nexus Repository OSS,我想将存储库 url 从 localhost 更改为我的公司名称。我怎样才能做到这一点?而且我必须在远程机器上执行此操作,所以我只能使用命令行来执行此操作。

对于 Nexus Repository 3.x 你可以使用与此类似的方法,假设你可以 运行 sed 或类似的东西(毕竟你可以用文本编辑器改变它)

https://github.com/sonatype/docker-nexus3/blob/master/Dockerfile#L61

您需要重新启动 Nexus Repository 以使更改生效。

对于 Nexus 存储库 2.x 请参考此 question/answers:Nexus webapp, how to use / instead of /nexus for base URI