Install NewRelic in Docker
Install NewRelic in Docker, Ubuntu
Install gnupg2 in Dockerfile
RUN apt-get update && apt-get install -y gnupg2
Install gnupg2 in ubuntu
sudo apt-get update && sudo apt-get install -y gnupg2
Install NewRelic by command line:
wget -O - https://download.newrelic.com/548C16BF.gpg | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.newrelic.com/debian/ newrelic non-free" > /etc/apt/sources.list.d/newrelic.list'
sudo apt-get update
sudo apt-get install newrelic-php5
Add line in php.ini
newrelic.license="<your-key-goes-here>"
Restart server, nginx, php-fpm
Remove NewRelic in ubuntu
newrelic-install purge
OR
apt-get remove --purge newrelic
Stop NewRelic
/etc/init.d/newrelic-daemon stop
Start NewRelic with Php
cp /etc/newrelic/newrelic.cfg.template /etc/newrelic/newrelic.cfg
/etc/init.d/newrelic-daemon restart
Post a Comment