首页 » 运维 » 基本知识 » 正文

nginx常见报错及处理方式

1:
bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)

说明有程序在占用80端口,把占用端口的程序干掉,重启

2:
could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32

在配置文件的http{}段增加一行配置
server_names_hash_bucket_size 64;
如果64还不够,那么就按32的倍数往上加。

 

时间:2012-05-19 11:56:39

发表评论