问题描述
我按照 https://epma.medium.com/install-sonatype-nexus-3-on-ubuntu-20-04-lts-562f8ba20b98 中的说明在 EC2 上设置了 nexus repo OSS,并验证它正在运行。
curl localhost:8081
<head>
--: <title>Nexus Repository Manager</title>
--:- <Meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <Meta name="description" content="Nexus Repository Manager"/>
<Meta http-equiv="X-UA-Compatible" content="IE=edge"/>
.........
$ netstat -tunlp |grep 8081
(No info Could be read for "-p": geteuid()=1000 but you should be root.)
tcp 0 0 127.0.0.1:8081 0.0.0.0:* LISTEN -
$ cat /opt/sonatype-work/nexus3/etc/nexus.properties
# Jetty section
application-port=8081
application-host=127.0.0.1
nexus-args=${jetty.etc}/jetty.xml,${jetty.etc}/jetty-http.xml,${jetty.etc}/jetty-requestlog.xml
nexus-context-path=/
是否可以修改 nexus.properties 以更改主机绑定,以便我可以从 EC2 公共 IP 或 DNS 访问 nexus 存储库?
我已经在 EC2 的安全组中打开了 8081 端口。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)