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
网友评论