在用mysqlslap对mysql进行压力测试遇到mysqlslap: Error when connecting to server: 2001 Can't create UNIX socket (24),现象如下图:

mysqlslap: Error when connecting to server: 2001 Can't create UNIX socket (24) 解决方法

解决方法一:

由于linux上连接过多,所以增加linux上打开文件数,,前提不能超过系统的最大限制cat /proc/sys/fs/file-max

[root@dbtest ~]# vim /etc/security/limits.conf  添加

root  hard  nofile  20000
root  soft   nofile  20000

 

目前用这个方法还是没有用,正在继续查找原因

 。。。。。。

----待补充 ------

 

相关文章:

  • 2022-12-23
  • 2021-10-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
猜你喜欢
  • 2021-07-01
  • 2021-12-01
  • 2022-12-23
  • 2021-03-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案