微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

从 EC2 公开关系服务

如何解决从 EC2 公开关系服务

我按照 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 举报,一经查实,本站将立刻删除。