It seems you are installing the infrastructure agent on a Amazon Linux 2 host by following the manual or assisted tarball installation flow. Note that not all features and integrations are available with that setup.
New Relic provides linux packages and a step by step installation in the web interface (see "Add more data" in the New Relic One web).
The standard installation steps for Amazon Linux 2 would be:
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
Here's the documentation explaining the different install scenarios.
You can get additional support from the community on the Explorers Hub.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…