PHP Fuzzing
2011-02-13 23:11
27 查看
一:安装libunwind库
tar -zxvf libunwind-0.99-alpha.tar.gz -C /usr/src/
cd /usr/src/libunwind-0.99-alpha/
CFLAGS=-fPIC ./configure
make CFLAGS=-fPIC
make CFLAGS=-fPIC install
二:安装gprftools
tar -zxvf google-perftools-1.8.2.tar.gz -C /usr/src/
cd /usr/src/google-perftools-1.8.2
./configure
make && make install
echo "/usr/local/lib" >> /etc/ld.so.conf.d/usr_local_lib.conf
ldconfig
三:重新编译Nginx
cd /usr/src/nginx-0.7.65/
./configure
--with-http_gzip_static_module --with-google_perftools_module
--with-http_stub_status_module --prefix=/usr/local/nginx
make
make install
到此nginx安装完成
四:为google-perftools添加线程目录
mkdir /tmp/tcmalloc
chmod 0777 /tmp/tcmalloc
五:修改nginx主配置文件
#pid logs/nginx.pid;
google_perftools_profiles /tmp/tcmalloc
重启:nginx服务
验证:lsof -n | grep tcmalloc本文出自 “OuThink” 博客,请务必保留此出处http://outhink.blog.51cto.com/2305569/836670
tar -zxvf libunwind-0.99-alpha.tar.gz -C /usr/src/
cd /usr/src/libunwind-0.99-alpha/
CFLAGS=-fPIC ./configure
make CFLAGS=-fPIC
make CFLAGS=-fPIC install
二:安装gprftools
tar -zxvf google-perftools-1.8.2.tar.gz -C /usr/src/
cd /usr/src/google-perftools-1.8.2
./configure
make && make install
echo "/usr/local/lib" >> /etc/ld.so.conf.d/usr_local_lib.conf
ldconfig
三:重新编译Nginx
cd /usr/src/nginx-0.7.65/
./configure
--with-http_gzip_static_module --with-google_perftools_module
--with-http_stub_status_module --prefix=/usr/local/nginx
make
make install
到此nginx安装完成
四:为google-perftools添加线程目录
mkdir /tmp/tcmalloc
chmod 0777 /tmp/tcmalloc
五:修改nginx主配置文件
#pid logs/nginx.pid;
google_perftools_profiles /tmp/tcmalloc
重启:nginx服务
验证:lsof -n | grep tcmalloc本文出自 “OuThink” 博客,请务必保留此出处http://outhink.blog.51cto.com/2305569/836670
相关文章推荐
- PHP Fuzzing行动——源码审计 黑客注入防范
- PHP Fuzzing行动——源码审计
- PHP Fuzzing行动——源码审计
- PHP Fuzzing行动――源码审计
- PHP Fuzzing行动——源码审计 黑客注入防范
- PHP Fuzzing行动——源码审计
- Zend Framework中文化团队新站点开通--PHPEye.com
- php创建文件夹
- PHP中Date获取时间不正确怎么办
- php基础
- php入门测试题
- 网上收集的php的一些代码
- PHP学习笔记(七)PHP+MYSQL分页原理
- 世界顶尖PHP站Facebook后台技术探秘
- 理解PHP中的MVC编程之MVC框架简介
- 通过PHP的hash冲突漏洞进行DDoS攻击
- php
- PHP单例模式(转载)
- php循环结构--99乘法表例子
- php面向对象开发之——工厂模式