Nginx安装google_perftools模块的方法

来源:互联网 发布:骑马与砍杀设置优化 编辑:程序博客网 时间:2024/05/19 09:09

/********************************************************************* * Author  : Samson * Date    : 06/01/2015 * Test platform: *              gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2 *              GNU bash, 4.3.11(1)-release (x86_64-pc-linux-gnu)  * *******************************************************************/

准备工作1(google perftools依赖包的安装):

下载libunwind库源码包:

http://download.savannah.gnu.org/releases/libunwind/libunwind-0.99-beta.tar.gz


解压:

tar zxvf libunwind-0.99-beta.tar.gz


cd libunwind-0.99-beta/

./configure

make

sudo make install


准备工作1:

下载google perftools:

https://code.google.com/p/gperftools/?redir=1

cd gperftools-2.1

//当使用的系统是64时,编译的时候需要加上--enable-frame-pointers选项。

./configure --enable-frame-pointers

make

sudo make install


编译nginx:

./configure --with-debug --with-http_ssl_module --with-google_perftools_module

make

sudo make install






0 0
原创粉丝点击