【问题标题】:How to install new relic on amazon linux如何在 amazon linux 上安装新的 relic
【发布时间】:2021-01-29 04:26:57
【问题描述】:

我已将 newrelic 文件解压缩到 amazon linux 上,并拥有 installer.sh 和 config_defaults.sh

我在参数存储中有可以调用的许可证密钥

我使用以下命令安装 newrelic

sudo ./installer.sh GENERATE_CONFIG=true LICENSE_KEY=$APIKEY
sudo systemctl start newrelic-infra # to start the service

APPIKEY 来自参数存储区。 但是,当我这样做时 sudo systemctl start newrelic-infra

我收到错误消息

level=error msg="can't load configuration file" component="New Relic Infrastructure Agent" error="no license key, please add it to agent's config file or NRIA_LICENSE_KEY environment variable"

如何让代理识别许可证密钥?

【问题讨论】:

    标签: linux bash amazon-web-services newrelic amazon-linux-2


    【解决方案1】:

    您似乎是按照手动或辅助 tarball 安装流程在 Amazon Linux 2 主机上安装基础设施代理。请注意,该设置并非所有功能和集成都可用。

    New Relic 提供 linux 包和在 web 界面中一步一步安装(参见 New Relic One web 中的“添加更多数据”)。

    Amazon Linux 2 的标准安装步骤是:

    echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /etc/newrelic-infra.yml && \
    
    sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/7/x86_64/newrelic-infra.repo && \
    
    sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra' && \
    
    sudo yum install newrelic-infra -y
    

    这里是 documentation 解释不同的安装方案。
    您可以通过Explorers Hub 获得社区的更多支持。

    【讨论】:

      猜你喜欢
      • 2017-09-04
      • 2017-05-14
      • 2016-03-18
      • 1970-01-01
      • 1970-01-01
      • 2015-02-05
      • 2020-04-12
      • 2017-04-02
      • 2014-09-19
      相关资源
      最近更新 更多