linux更改系统ulimit
1、连接服务器,查看服务器的ulimit大小。#ulimit -n

3、临时设置,关闭窗口再次打开就有恢复到1024了。

5、保存退出。然后加载配置文件。#source /etc/profile再次查看ulimit#ulimit -n

7、加入两行* soft nofile 65536* hard nofile 65536保存。退出重新登录就可以了。

1、连接服务器,查看服务器的ulimit大小。#ulimit -n
3、临时设置,关闭窗口再次打开就有恢复到1024了。
5、保存退出。然后加载配置文件。#source /etc/profile再次查看ulimit#ulimit -n
7、加入两行* soft nofile 65536* hard nofile 65536保存。退出重新登录就可以了。