Tcmalloc 优化 Nginx Mysql

    技术2022-06-28  64

    下载google-perftools-1.6.tar.gzwget http://google-perftools.googlecode.com/files/google-perftools-1.6.tar.gztar zxvf google-perftools-1.6.tar.gz执行./configuremake && make installecho "/usr/local/lib" > /etc/ld.so.conf.d/usr_local_lib.confldconfigNginx 优化编译nginx时 增加  --with-google_perftools_module--prefix=/usr/local/nginx --user=www --group=www --with-google_perftools_module修改 nginx.conf 增加以下参数mkdir /tmp/tcmalloc/google_perftools_profiles /tmp/tcmalloc/;Mysql 优化编译nginx时 增加  --with-google_perftools_module--prefix=/usr/local/mysql --with-pthread --with-big-tables --with-charset=utf8 --with-extra-charsets=all --enable-static --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --with-mysqld-ldflags=-ltcmalloc --enable-thread-safe-client --enable-assembler --

     

    zz:http://selboo.com.cn/post/889/


    最新回复(0)