nginx: [emerg] host not found in upstream "11.lum" in /usr/local/nginx/conf/vhost.conf:116
Nginx 启动乐成! Nginx was started successfully.
上面错误为nginx未启动,点启动时提示上面语句。
雷同这汇报的错误,办理方案
点左侧 网站(虚拟主机) => 编辑 任何一个网站 => 不消改什么 直接生存 => 在去启动nginx 启动乐成后 在去编辑任何一个网站,不消改什么直接生存 => ok
问题二:假如重启处事器后,Nginx为启动,在靠山手动启动Nginx报下面的错误
Shutting down php_fpm Starting php_fpm done nginx: [emerg] could not build the server_names_hash, you should increase either server_names_hash_max_size: 512 or server_names_hash_bucket_size: 128 nginx: [emerg] could not build the server_names_hash, you should increase either server_names_hash_max_size: 512 or server_names_hash_bucket_size: 128
Nginx重启失败! Nginx was restarted failed.
办理要领,登录ssh,把/usr/local/nginx/conf/nginx.conf 文件里这一行的数值修改下
本来的是:
server_names_hash_bucket_size 128;
改成:
server_names_hash_bucket_size 512;
假如本身手工修悔改网站伪静态的,这块也查抄下,有的时候也大概是网站伪静态的问题,删除之前的伪静态在启动,也可以办理问题。