newrelic 安装使用 new relic

www.newrelic.com  

newrelic 是一家上市公司,监控做的很猛,免费版本就很强

注册完账户,

1.

安装 APM

32-bit:

[html]  view plain  copy
 print ?
  1. sudo rpm -Uvh http://yum.newrelic.com/pub/newrelic/el5/i386/newrelic-repo-5-3.noarch.rpm  


64-bit:

[html]  view plain  copy
 print ?
  1. sudo rpm -Uvh http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm  


Install the agent:

[html]  view plain  copy
 print ?
  1. sudo yum install newrelic-php5  
  2. sudo newrelic-install install  

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"

卸载:

[html]  view plain  copy
 print ?
  1. /usr/bin/newrelic-install  

会有选择提示框,好像是选择2 然后就可以卸载了


2.

关闭浏览器监控脚本:(不关闭,会对ajax造成影响。)






设置完成后需要重启     restart newrelic daemon

[html]  view plain  copy
 print ?
  1. /etc/init.d/newrelic-daemon restart  

重启完成后,头部的js就没有了

3.安装SERVERS部分

[html]  view plain  copy
 print ?
  1. rpm -Uvh https://download.newrelic.com/pub/newrelic/el5/i386/newrelic-repo-5-3.noarch.rpm  

[html]  view plain  copy
 print ?
  1. yum install newrelic-sysmond  

[html]  view plain  copy
 print ?
  1. nrsysmond-config --set license_key=20xxxxxxxxxxxxxxa6  
  2. /etc/init.d/newrelic-sysmond start  

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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值