一、安装jemalloc,参考链接
jemalloc编译安装_m0_61237221的博客-CSDN博客https://blog.csdn.net/m0_61237221/article/details/122023459二、配置软链接
ln -s /usr/local/lib/libjemalloc.so.2 /usr/lib64/libjemalloc.so.1
如果不配置会报错,无法正常启动mysql
Starting MySQL. mysqld_safe --malloc-lib must be located in one of the directories: /usr/lib /usr/lib64 /usr/lib/i386-linux-gnu /usr/lib/x86_64-linux-gnu ERROR! The server quit without |