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