安裝centos6.9,CentOS 6 安裝最新的 Redis 2.8 ,安裝 TCMalloc

 2023-12-06 阅读 23 评论 0

摘要:1,遇到的問題就是 redis 2.8 版本號依賴 Google 的?TCMalloc TCMalloc(Thread-Caching Malloc)是google開發的開源工具──“google-perftools”中的成員。安裝centos6.9、與標準的glibc庫的malloc相比, TCMalloc在內存的分配上效率和速度要高得


1,遇到的問題就是 redis 2.8 版本號依賴 Google 的?TCMalloc


TCMalloc(Thread-Caching Malloc)是google開發的開源工具──“google-perftools”中的成員。

安裝centos6.9、與標準的glibc庫的malloc相比,

TCMalloc在內存的分配上效率和速度要高得多,能夠在非常大程度上提高MySQLserver在高并發情況下的性能,減少系統負載。



2。安裝?TCMalloc?

系統安裝?使用rpm 安裝。下載?gperftools-libs 進行安裝。這個lib包含了TCMalloc 這個lib庫。

http://pkgs.org/centos-6/atomic-x86_64/gperftools-libs-2.0-11.el6.1.art.x86_64.rpm.html

rpm -ivh?gperftools-libs-2.0-11.el6.1.art.x86_64.rpm

CentOS7.6、查看是否成功安裝:

ls /usr/lib64/libtcmalloc.so.4.1.0


3。下載redis安裝

http://pkgs.org/download/redis

redis-cli、http://pkgs.org/centos-6/remi-x86_64/redis-2.8.8-1.el6.remi.x86_64.rpm.html


rpm安裝?redis-2.8.9-1.el6.remi.x86_64.rpm

rpm -ivh?redis-2.8.9-1.el6.remi.x86_64.rpm

安裝程序。啟動reids:

service redis start

設置開機啟動:

chkconnfig redis on

版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。

原文链接:https://hbdhgg.com/3/189813.html

发表评论:

本站为非赢利网站,部分文章来源或改编自互联网及其他公众平台,主要目的在于分享信息,版权归原作者所有,内容仅供读者参考,如有侵权请联系我们删除!

Copyright © 2022 匯編語言學習筆記 Inc. 保留所有权利。

底部版权信息