nginx: [warn] conflicting server name "localhost" on 0.0.0.0:80, ignored

修改nginx配置参数后,使用nginx -t检查配置.

提示successfull后就可以使用 nginx -s reload来重新加载配置

我配置的过程中遇到这样的问题,就是绑定了主机名后,重新加载配置时会出现警告

nginx: [warn] conflicting server name "localhost" on 0.0.0.0:80, ignored

意思是重复绑定了server name,但这个警告不会影响到服务器运行。而且,这个重复绑定的意思是现在运行的nginx服务和将要加载的新配置中的重复,所以,这个警告其实是不必的。

时间: 2024-10-02 04:08:51

nginx: [warn] conflicting server name "localhost" on 0.0.0.0:80, ignored的相关文章

Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds

用SSM搭建的项目,部署时出现了以下错误 Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor. 启动时间设置得太短,导致无法正常启动. 我使用的是MyEclipse2015,直接通过页面进行修改 也可以通过修改配置文件的方式解决:

Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.

在部署的时候出现Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.也就是我们限定了部署的时间导致的错误,经过在网上的查找,找到了以下的解决方案: 我们找到当前工程的workplace目录,然后按下面的操作:找到workspace\

解决Can't connect to MySQL server on 'localhost' (10048)

解决Can't connect to MySQL server on 'localhost' (10048) 您使用的是Windows操作系统,此错误与一个注册表键值TcpTimedWaitDelay有关.减小Windows中TcpTimedWaitDelay时间可解决此类问题,默认情况下为240(未设置的情况下也是这个数值) 此项设置需要到注册表如下位置进行设置HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Tcpip/Paramete

Server Tomcat v7.0 Server at localhost was unable

错误:Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds 错误提示就是我们限定了部署的时间导致的错误. 修改 workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml文件. 把其中的start-timeout="45" 改为  start-timeout="100" 或者更长,根据不同同

Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds. If the server requires

Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor. 问题描述: OS:Windows 7 x64 Eclipse: Eclipse Java EE IDE for Web Developers.Version: Luna Serv

Could not publish server configuration for Tomcat v6.0 Server at localhost.

经常在使用tomcat服务器的时候 总会发生一些莫名其妙的错误. 就像下面这个错误: 在配置文件中存在多个/MyWeb的配置,导致不能发布服务. 错误信息: Could not publish server configuration for Tomcat v6.0 Server at localhost.Multiple Contexts have a path of "/MyWeb". 解决方案: 如果是使用的eclipse tomcat 插件,需要在你的工作空间 找到如下文件:

Android-67-Tomcat启动出错:Server Tomcat v7.0 Server at localhost failed to start.

 错误:Server Tomcat v7.0 Server at localhost failed to start.如图: 唉!!!!图片上传不上去,悲哀啊!!!只能先写着错误提示语吧~~- 解决办法: 1.In Eclipse, Open the"Server" tab. 2.Double click on the "Tomcat6" entry to see the configuration. 3.Then click on the "Open

用eclipse启动tomcat时报Could not publish server configuration for Tomcat v8.0 Server at localhost..错误

Could not publish server configuration for Tomcat v8.0 Server at localhost. Context with path "/mnDemo" conflicts with another Context with path "/mnDemo". 网上的解决方法是: 1.如果是使用的eclipse tomcat 插件,需要在你的工作空间 找到如下文件:.metadata.plugins\org.ecli

关于MySQL错误 2005 - Unknown MySQL server host 'localhost' (0) 原因及解决方法

今天在外面开navicat for mysql的时候,怎么也连不上自己本机上的数据库,一直显示2005 - Unknown MySQL server host 'localhost' (0): 错误代码的意思即无法连接上主机localhost.可能是由于没有联网造成的:于是将连接属性里的 '主机名或IP地址' 改成127.0.0.1即回送地址后,就可以连接上了.上百度搜了下,navicat里的一些功能应该是要联网的,而localhost是需要DNS解析后才会是127.0.0.1的,所以才会导致这