nginx--错误合集

2021-06-18  本文已影响0人  李哈哈_2c85

1、unknown log format "main"
nginx.conf中,取消注释log_format选项!日志格式问题!

2、nginx: [warn] could not build optimal types_hash, you should increase either types_hash_max_size: 2048 or types_hash_bucket_size: 64; ignoring types_hash_bucket_size
这两个参数的值设置大一些

3、15:11:47 [crit] 1111#0: accept4() failed (24: Too many open files)
文件描述符放开,写在rc.local中,防止某些服务启动前采用系统默认大小,读取rc.local比ulimit要早,所以默认还是还是按照按1024来走的
ulimit -Hn 65535
ulimit -Sn 65535

上一篇 下一篇

猜你喜欢

热点阅读