root@d924608c6b73:/home/VodSvr/bin# ./bin/hlssvr -p /home/VodSvr/bin/www/
nginx: [warn] 4000 worker_connections exceed open file resource limit: 1024
root@d924608c6b73:/home/VodSvr/bin#
#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
* - nofile 65535
* - noproc 65535
* soft nofile 65536
* hard nofile 65536
# End of file
"/etc/security/limits.conf" 64L, 2495C written
[root@localhost home]# ulimit -n 65536
[root@localhost home]# docker start d924608c6b73
d924608c6b73
[root@localhost home]# docker attach d924608c6b73
root@d924608c6b73:/#
root@d924608c6b73:/# cd /home/
root@d924608c6b73:/home# ./run.sh
nginx: [warn] 4000 worker_connections exceed open file resource limit: 1024
[2016-05-25 10:28:30.405][trace][20][0] config parse complete
root@d924608c6b73:/home#
无法解决!但是,我看在另外一台VPS上面,就没有这个问题。
解决办法:在nginx.conf中增加一行:
worker_rlimit_nofile 51200;
nginx: [warn] 4000 worker_connections exceed open file resource limit: 1024
root@d924608c6b73:/home/VodSvr/bin#
#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
* - nofile 65535
* - noproc 65535
* soft nofile 65536
* hard nofile 65536
# End of file
"/etc/security/limits.conf" 64L, 2495C written
[root@localhost home]# ulimit -n 65536
[root@localhost home]# docker start d924608c6b73
d924608c6b73
[root@localhost home]# docker attach d924608c6b73
root@d924608c6b73:/#
root@d924608c6b73:/# cd /home/
root@d924608c6b73:/home# ./run.sh
nginx: [warn] 4000 worker_connections exceed open file resource limit: 1024
[2016-05-25 10:28:30.405][trace][20][0] config parse complete
root@d924608c6b73:/home#
无法解决!但是,我看在另外一台VPS上面,就没有这个问题。
解决办法:在nginx.conf中增加一行:
worker_rlimit_nofile 51200;