Amazon ec2 从EC2公开nexus服务
我按照中的说明在EC2上安装nexus repo OSS,并验证它是否正在运行Amazon ec2 从EC2公开nexus服务,amazon-ec2,nexus,nexus3,Amazon Ec2,Nexus,Nexus3,我按照中的说明在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=
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"/>
.........
是否可以修改nexus.properties来更改主机绑定,以便我可以从EC2公共IP或DNS访问nexus repo
我已经在EC2的安全组中打开了端口8081
$ 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=/