www.newrelic.com
newrelic 是一家上市公司,监控做的很猛,免费版本就很强
注册完账户,
1.
安装 APM
32-bit:
64-bit:
Install the agent:
Add your PHP license key
Add your license key to the file you've set up with your New Relic properties:newrelic.ini or PHP.ini.
Your license setting:
newrelic.license="20xxxxxxxxxxxxxxxxa6"
卸载:
会有选择提示框,好像是选择2 然后就可以卸载了
2.
关闭浏览器监控脚本:(不关闭,会对ajax造成影响。)
设置完成后需要重启 restart newrelic daemon
重启完成后,头部的js就没有了
3.安装SERVERS部分
Note: The configuration file is located at /etc/newrelic/nrsysmond.cfg and contains the license key and location for the log file: /var/log/newrelic/nrsysmond.log
参考:
https://docs.newrelic.com/docs/browser/new-relic-browser/installation-configuration/browser-settings-ui-options-browser-monitoring
https://docs.newrelic.com/docs/agents/php-agent/advanced-installation/starting-php-daemon-advanced