使用EC2在AWS上设置SonarQube [英] Setting up SonarQube on AWS using EC2

查看:143
本文介绍了使用EC2在AWS上设置SonarQube的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用应该是基本的安装设置在EC2上设置SonarQube.

Trying to setup SonarQube on EC2 using what should be basic install settings.

  1. 列表项
  2. 设置连接到M4 large的标准EC2 AWS LINUX Ami
  3. SSH进入EC2实例
  4. 安装JAVA
  5. 设置为使用JAVA8
  6. wget https://sonarsource.bintray.com/Distribution/sonarqube/sonarqube -6.4.zip
  7. 解压缩到/etc目录中
  8. 运行sudo ./sonar.sh start
  9. 实例启动
  1. List item
  2. Setup a standard EC2 AWS LINUX Ami attached to M4 large
  3. SSH into EC2 instance
  4. Install JAVA
  5. Set to use JAVA8
  6. wget https://sonarsource.bintray.com/Distribution/sonarqube/sonarqube-6.4.zip
  7. unzip into the /etc dir
  8. run sudo ./sonar.sh start
  9. Instance starts

但是当我尝试进入该应用程序时,当我尝试使用IPv4公用IP 187.187.87.87:9000(不是真实IP)或尝试ec2-134-73-134-114.compute-1时,它永远不会出现.amazonaws.com:9000(例如,也不是真正的IP)

But when I try to go to the app it never comes up when I try either the IPv4 Public IP 187.187.87.87:9000 (ex not real IP) or try ec2-134-73-134-114.compute-1.amazonaws.com:9000 (not real IP either just for example)

也许是我的无知或我没有正确配置某些东西,因为这与初始EC2设置有关.

Perhaps it is my ignorance or me not configuring something correctly as it pertains to the initial EC2 setup.

如果有人有任何想法,请告诉我.

If anyone has any ideas, please let me know.

推荐答案

问题是SonarQube的默认端口为9000.默认情况下,如果您不应用所有端口都处于打开状态的默认安全组,则默认情况下该端口不会在安全组中打开(,不推荐).

Issue was that SonarQube default port is 9000. and by default this port is not open in the security group if you dont apply the default security group in which all the ports are open(which is Not recommended).

在@Issac注释中建议,在实例的AWS安全组设置中打开 9000 端口以允许传入请求到SonarQube.解决了问题.

As suggested in comment @Issac, opened the 9000 port to allow incoming request to SonarQube, in AWS security group setting of instance. Which solved the issue.

这篇关于使用EC2在AWS上设置SonarQube的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆