centos6でworker_connectionsの限界値の設定
nginx: [warn] 65536 worker_connections exceed open file resource limit: 1024
などと出る場合、
ulimit -n 65536
(65536が最大値)
で、worker_connectionsの限界値を設定できる。
再起動すると元に戻るので、下記を一番下に追記する。
/etc/sysconfig/init
ulimit -n 65536
nginx: [warn] 65536 worker_connections exceed open file resource limit: 1024
などと出る場合、
ulimit -n 65536
(65536が最大値)
で、worker_connectionsの限界値を設定できる。
再起動すると元に戻るので、下記を一番下に追記する。
/etc/sysconfig/init
ulimit -n 65536