遇到的坑
mysqld: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory
解决方案:
如果已经安装了libnuma.so.1,先yum remove libnuma.so.1
然后 yum -y install numactl.x86_64
重新启动 mysqld --initialize --user=mysql
docker 创建centos 时使用
docker run -d -name centos7 --privileged=true centos:7 /usr/sbin/init
否则 在使用 systemctl 报错
博客主要讲述了在Docker使用CentOS时遇到的问题及解决方案。遇到的坑是mysqld加载共享库报错,解决方案是先移除已安装的libnuma.so.1,再安装numactl.x86_64并重新初始化。还给出了创建CentOS时的正确命令,避免systemctl报错。
5088

被折叠的 条评论
为什么被折叠?



