前言:apache虽然能运行,但是看见error.log中有httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168. x

前言:apache虽然能运行,但是看见error.log中有httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168. x. x for ServerName这个错误,想看看是否有其他占用了80端口

开始--运行--cmd 进入命令提示符 输入netstat -ano 即可看到所有连接的PID 之后在任务管理器中找到这个PID所对应的程序如果任务管理器中没有PID这一项,可以在任务管理器中选"查看"-"选择列"

经常,我们在启动应用的时候发现系统需要的端口被别的程序占用,如何知道谁占有了我们需要的端口,很多人都比较头疼,下面就介绍一种非常简单的方法,希望对大家有用

假如我们需要确定谁占用了我们的80端口

1、Windows平台
在windows命令行窗口下执行:
C:/>netstat -aon|findstr "80"
TCP     127.0.0.1:80         0.0.0.0:0               LISTENING       2448
看到了吗,端口被进程号为2448的进程占用,继续执行下面命令:
C:/>tasklist|findstr "2448"
thread.exe                     2016 Console                 0     16,064 K
很清楚吧,thread占用了你的端口,Kill it
如果第二步查不到,那就开任务管理器,看哪个进程是2448,然后杀之即可。

如果需要查看其他端口。把 80 改掉即可

补充:原来出现这个错误原因(httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.111 for ServerName)是因为DNS没配置好. 如果不想配置DNS, 就在httpd.conf , 在最前加入 ServerName localhost:80 即可

已标记关键词 清除标记
错误日志: Starting the Apache2.4 service The Apache2.4 service is running. ably determine the server's fully qualified domain name, using 192.168.0.101. Set the 'ServerName' directive globally to suppress this message [Mon Jul 13 23:19:02.859375 2015] [mpm_winnt:notice] [pid 1676:tid 464] AH00455: Apache/2.4.4 (Win32) configured -- resuming normal operations [Mon Jul 13 23:19:02.859375 2015] [mpm_winnt:notice] [pid 1676:tid 464] AH00456: Server built: Mar 1 2013 20:59:19 [Mon Jul 13 23:19:02.859375 2015] [core:notice] [pid 1676:tid 464] AH00094: Command line: 'D:\\wamp\\apache\\bin\\httpd.exe -d D:/wamp/apache -f D:\\wamp\\apache\\conf\\httpd.conf -d D:\\wamp\\apache\\.' [Mon Jul 13 23:19:02.937500 2015] [mpm_winnt:notice] [pid 1676:tid 464] AH00418: Parent: Created child process 1840 AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.101. Set the 'ServerName' directive globally to suppress this message AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.101. Set the 'ServerName' directive globally to suppress this message [Mon Jul 13 23:19:06.109375 2015] [mpm_winnt:notice] [pid 1840:tid 1676] AH00354: Child: Starting 64 worker threads. [Mon Jul 13 23:23:00.515625 2015] [mpm_winnt:notice] [pid 1676:tid 464] AH00422: Parent: Received shutdown signal -- Shutting down the server. [Mon Jul 13 23:23:02.515625 2015] [mpm_winnt:notice] [pid 1840:tid 1676] AH00364: Child: All worker threads have exited. [Mon Jul 13 23:23:02.734375 2015] [mpm_winnt:notice] [pid 1676:tid 464] AH00430: Parent: Child process 1840 exited successfully. AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.101. Set the 'ServerName' directive globally to suppress this message [Mon Jul 13 23:26:04.234375 2015] [mpm_winnt:notice] [pid 2204:tid 464] AH00455: Apache/2.4.4 (Win32) configured -- resuming normal operations [Mon Jul 13 23:26:04.234375 2015] [mpm_winnt:notice] [pid 2204:tid 464] AH00456: Server built: Mar 1 2013 20:59:19 [Mon Jul 13 23:26:04.234375 2015] [core:notice] [pid 2204:tid 464] AH00094: Command line: 'D:\\wamp\\apache\\bin\\httpd.exe -d D:/wamp/apache -f D:\\wamp\\apache\\conf\\httpd.conf -d D:\\wamp\\apache\\.' [Mon Jul 13 23:26:04.250000 2015] [mpm_winnt:notice] [pid 2204:tid 464] AH00418: Parent: Created child process 2292 AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.101. Set the 'ServerName' directive globally to suppress this message AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.101. Set the 'ServerName' directive globally to suppress this message [Mon Jul 13 23:26:07.328125 2015] [mpm_winnt:notice] [pid 2292:tid 1676] AH00354: Child: Starting 64 worker threads. [Mon Jul 13 23:29:51.812500 2015] [mpm_winnt:notice] [pid 2204:tid 464] AH00422: Parent: Received shutdown signal -- Shutting down the server. [Mon Jul 13 23:29:53.875000 2015] [mpm_winnt:notice] [pid 2292:tid 1676] AH00364: Child: All worker threads have exited. [Mon Jul 13 23:29:54.593750 2015] [mpm_winnt:notice] [pid 2204:tid 464] AH00430: Parent: Child process 2292 exited successfully. AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.101. Set the 'ServerName' directive globally to suppress this message [Tue Jul 14 19:15:27.015625 2015] [mpm_winnt:notice] [pid 1968:tid 476] AH00455: Apache/2.4.4 (Win32) configured -- resuming normal operations [Tue Jul 14 19:15:27.031250 2015] [mpm_winnt:notice] [pid 1968:tid 476] AH00456: Server built: Mar 1 2013 20:59:19 [Tue Jul 14 19:15:27.031250 2015] [core:notice] [pid 1968:tid 476] AH00094: Command line: 'D:\\wamp\\apache\\bin\\httpd.exe -d D:/wamp/apache -f D:\\wamp\\apache\\conf\\httpd.conf -d D:\\wamp\\apache\\.' [Tue Jul 14 19:15:27.078125 2015] [mpm_winnt:notice] [pid 1968:tid 476] AH00418: Parent: Created child process 1196 AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.101. Set the 'ServerName' directive globally to suppress this message AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.101. Set the 'ServerName' directive globally to suppress this message [Tue Jul 14 19:15:31.625000 2015] [mpm_winnt:notice] [pid 1196:tid 1672] AH00354: Child: Starting 64 worker threads. [Tue Jul 14 19:17:49.562500 2015] [mpm_winnt:notice] [pid 1968:tid 476] AH00422: Parent: Received shutdown signal -- Shutting down the server. [Tue Jul 14 19:17:51.656250 2015] [mpm_winnt:notice] [pid 1196:tid 1672] AH00364: Child: All worker threads have exited. [Tue Jul 14 19:17:52.046875 2015] [mpm_winnt:notice] [pid 1968:tid 476] AH00430: Parent: Child process 1196 exited successfully. AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.101. Set the 'ServerName' directive globally to suppress this message [Tue Jul 14 19:19:28.484375 2015] [mpm_winnt:notice] [pid 1932:tid 464] AH00455: Apache/2.4.4 (Win32) configured -- resuming normal operations [Tue Jul 14 19:19:28.484375 2015] [mpm_winnt:notice] [pid 1932:tid 464] AH00456: Server built: Mar 1 2013 20:59:19 [Tue Jul 14 19:19:28.484375 2015] [core:notice] [pid 1932:tid 464] AH00094: Command line: 'D:\\wamp\\apache\\bin\\httpd.exe -d D:/wamp/apache -f D:\\wamp\\apache\\conf\\httpd.conf -d D:\\wamp\\apache\\.' [Tue Jul 14 19:19:28.531250 2015] [mpm_winnt:notice] [pid 1932:tid 464] AH00418: Parent: Created child process 2028 AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.101. Set the 'ServerName' directive globally to suppress this message AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.101. Set the 'ServerName' directive globally to suppress this message [Tue Jul 14 19:19:31.625000 2015] [mpm_winnt:notice] [pid 2028:tid 1676] AH00354: Child: Starting 64 worker threads. [Tue Jul 14 19:19:46.671875 2015] [mpm_winnt:notice] [pid 1932:tid 464] AH00422: Parent: Received shutdown signal -- Shutting down the server. [Tue Jul 14 19:19:48.687500 2015] [mpm_winnt:notice] [pid 2028:tid 1676] AH00364: Child: All worker threads have exited. [Tue Jul 14 19:19:48.953125 2015] [mpm_winnt:notice] [pid 1932:tid 464] AH00430: Parent: Child process 2028 exited successfully. AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.101. Set the 'ServerName' directive globally to suppress this message [Tue Jul 14 19:46:07.093750 2015] [mpm_winnt:notice] [pid 3572:tid 464] AH00455: Apache/2.4.4 (Win32) configured -- resuming normal operations [Tue Jul 14 19:46:07.406250 2015] [mpm_winnt:notice] [pid 3572:tid 464] AH00456: Server built: Mar 1 2013 20:59:19 [Tue Jul 14 19:46:07.406250 2015] [core:notice] [pid 3572:tid 464] AH00094: Command line: 'D:\\wamp\\apache\\bin\\httpd.exe -d D:/wamp/apache -f D:\\wamp\\apache\\conf\\httpd.conf -d D:\\wamp\\apache\\.' [Tue Jul 14 19:46:07.437500 2015] [mpm_winnt:notice] [pid 3572:tid 464] AH00418: Parent: Created child process 3724 AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.101. Set the 'ServerName' directive globally to suppress this message AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.101. Set the 'ServerName' directive globally to suppress this message [Tue Jul 14 19:46:11.078125 2015] [mpm_winnt:notice] [pid 3724:tid 1672] AH00354: Child: Starting 64 worker threads. [Tue Jul 14 21:38:42.812500 2015] [mpm_winnt:notice] [pid 3572:tid 464] AH00424: Parent: Received restart signal -- Restarting the server. [Tue Jul 14 21:38:46.937500 2015] [mpm_winnt:notice] [pid 3724:tid 1672] AH00364: Child: All worker threads have exited. AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.101. Set the 'ServerName' directive globally to suppress this message [Tue Jul 14 21:38:54.015625 2015] [mpm_winnt:notice] [pid 3572:tid 464] AH00455: Apache/2.4.4 (Win32) configured -- resuming normal operations [Tue Jul 14 21:38:54.015625 2015] [mpm_winnt:notice] [pid 3572:tid 464] AH00456: Server built: Mar 1 2013 20:59:19 [Tue Jul 14 21:38:54.015625 2015] [core:notice] [pid 3572:tid 464] AH00094: Command line: 'D:\\wamp\\apache\\bin\\httpd.exe -d D:/wamp/apache -f D:\\wamp\\apache\\conf\\httpd.conf -d D:\\wamp\\apache\\.' [Tue Jul 14 21:38:54.312500 2015] [mpm_winnt:notice] [pid 3572:tid 464] AH00418: Parent: Created child process 2508 AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.101. Set the 'ServerName' directive globally to suppress this message AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.101. Set the 'ServerName' directive globally to suppress this message [Tue Jul 14 21:39:06.468750 2015] [mpm_winnt:notice] [pid 2508:tid 1672] AH00354: Child: Starting 64 worker threads. [Tue Jul 14 21:57:42.515625 2015] [mpm_winnt:notice] [pid 3572:tid 464] AH00424: Parent: Received restart signal -- Restarting the server. [Tue Jul 14 21:57:48.515625 2015] [mpm_winnt:notice] [pid 2508:tid 1672] AH00364: Child: All worker threads have exited. httpd.exe: Syntax error on line 173 of D:/wamp/apache/conf/httpd.conf: Cannot load D:/wamp/php/php5apache2_4.dll into server: \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xb3\xcc\xd0\xf2\xa1\xa3
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页