Berikut adalah file dan detail conf, tidak peduli apa yang saya lakukan, soft openfiles tidak akan membahas 1024.
CENTOS 6.7 x86_64
cat /etc/security/limits.conf
* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535
cat /etc/security/limits.d/90-nproc.conf
* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* soft nofile 65535 * hard nofile 65535
root @ server [~] # ulimit -n
65535
cat /etc/sysctl.conf
fs.file-max = 65535
cat / proc / 1 / limit
Maks membuka file 1024 4096
itu menunjukkan batas yang benar ketika Anda menjalankan ulimit -n tetapi ketika Anda memeriksa cat / proc / 1 / Limit itu menunjukkan 1024, semua program di server terhenti dengan batas 1024 openfiles, mereka semua berjalan di bawah pengguna root.