关注小众语言,记录、分享技术点滴!

0%

Centos6.8下mysql启动时出现mysqld_safe line 707 ulimit open files cannot modify limit Operation not permitted错误

mysql启动时出现mysqld_safe: line 707: ulimit: open files: cannot modify limit: Operation not permitted错误
解决方法:

1
ulimit -n 65535

普通用户ssh连接linux服务器是总是提示:

1
ulimit: open files: cannot modify limit: Operation not permitted

解决方法:

1
2
3
4
5
6
7
8
9
10
11
$ vi /etc/security/limits.conf
# End of file
#添加以下内容:
root soft nofile 65535
root hard nofile 65535
* soft nofile 65535
* hard nofile 65535

#优化内核时:
* soft nproc 65535
* hard nproc 65535

重启系统