how to install new relic on RedHat Linux
steps to install New Relic on RedHat Linux:
First, make sure your RedHat Linux system meets the system requirements for New Relic. You can check the requirements on the New Relic website.
Log in to your RedHat Linux server as the root user.
Create a new Relic YUM repository configuration file in the /etc/yum.repos.d/ directory. You can use your favorite text editor to create a new file named newrelic-infra. repo and add the following content to the file:
[newrelic-infra]
name=New Relic Infrastructure
baseurl=https://download.newrelic.com/infrastructure_agent/linux/yum/el/7/$basearch
enabled=1
gpgcheck=1
gpgkey=https://download.newrelic.com/infrastructure_agent/gpg/newrelic-infra.gpg
This will create a new YUM repository configuration file that points to the New Relic Infrastructure agent.
- Install the New Relic Infrastructure agent by running the following command:
sudo yum install newrelic-infra -y
This command will install the New Relic Infrastructure agent on your RedHat Linux system.
- Once the installation is complete, you can start the New Relic Infrastructure agent by running the following command:
sudo systemctl start newrelic-infra
- Finally, enable the New Relic Infrastructure agent to start automatically at boot time by running the following command:
sudo systemctl enable newrelic-infra
And that's it! You have now successfully installed the New Relic Infrastructure agent on your RedHat Linux system. You can configure the agent and view your infrastructure data in the New Relic UI.