ERROR – file: shared_func.c, line: 1364, call setrlimit fail, resource=7 (max open files), value=102400, errno: 22, error info: Invalid argument

Linux不支持设置那么大的max_connections
1.查看最大连接数
[root@node1 ~]# ulimit -n
100000
2、修改最大连接数
[root@node1 ~]# vim /etc/security/limits.conf
# End of file
* soft nproc 1000000
* hard nproc 1000000
* soft nofile 1000000
* hard nofile 1000000

您可以选择一种方式赞助本站

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: