刚刚朋友推荐了一个网站(www.111cn.net/),测试安装一下:
过程:
[byrd@hz ~]$ sudo bash
[root@hz tmp]# rpm -Uvh http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm #64位 centos系统
#sudo rpm -Uvh http://yum.newrelic.com/pub/newrelic/el5/i386/newrelic-repo-5-3.noarch.rpm# 32位 centos系统
Retrieving http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm
warning: /var/tmp/rpm-tmp.JwccLL: Header V3 DSA/SHA1 Signature, key ID 548c16bf: NOKEY
Preparing... ########################################### [100%]
1:newrelic-repo ########################################### [100%]
[root@hz tmp]# yum install newrelic-php5 -y
[root@hz tmp]# newrelic-install install
在php.ini修改key #ewrelic.license="82dddb0063ded8bc"
重新启动php、nginx!
如果info.php中有以下内容,恭喜你,it works!
New Relic Version 4.18.0.89 ("corvid") ("cf5560777e849f")