您的位置:首页 > 运维架构 > Nginx

Nginx安装google_perftools模块的方法

2015-06-01 14:45 645 查看
/*********************************************************************
 * 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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: