普华永道 经理级工资:启动httpd时提示Could not reliably determine the server's fully qualified domain name

来源:百度文库 编辑:中财网 时间:2024/04/27 15:58:00

初次接触PHP环境,自己手动配置apache与php,遇到httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.xx for ServerName这个问题,百度和谷歌后发现基本上都是同样内容的答案,如下内容是在网上找到的

---------------------------------------以下内容是在网上找到的--------------------------------------------

前言:apache虽然能运行,但是看见error.log中有httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.xx 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.xx for ServerName)是因为DNS没配置好. 如果不想配置DNS, 就在httpd.conf , 在最前加入 ServerName localhost:80 即可

-----------------------------------------以上内容是在网上找到的-----------------------------------------

我就不明白了,上面出的error,为什么大篇幅的介绍查找谁占用端口?并且就这内容,还在网上成了“模板”,不知被多少人转到了自己的博客中去,是不是现在都流行恶趣味?

其实这个问题,解决的方法就是补充中的一句话,修改httpd.conf中的ServerName IP:port与Listen IP:端口一致就OK了。


启动时提示"Could not open device"! 启动winamp提示Could not creatd DirectSound object.是什么意思? 电脑开机时提示错误could not open device bios刷新失败后,恢复时提示could not enable the prom pins 我用GOOGLE EARTH时为何总是提示could not load image ghost 时 提示a destination volume could not bu locked是什么原因???? 装程序时遇到提示”language could not be determined”不能装,怎么办 启动F1游戏时,弹出COULD NOT LOAD addsrvr0000.bmp 怎么解决阿,谢谢 XP玩二战狙击手提示:could not initalize the renderer Google Eart打开后提示:could not load image ??? 玩CS提示Could not connet to servie怎么办 开机提示错误 could not open device 是什么意思?怎么解决? 开机提示错误 could not open device 是什么意思?怎么解决? 开机后系统提示"could not open device" 下载了for windos的lumaqq,运行lumaqq.bat时提示could not find the main class coooledit的音轨保存时提示\"could not find file filter\"是为什么 Could not copy 为什么装软件时出现could not initialize installation...... 开机时出现 Could not open device 是什么问题啊 开机时弹出一个窗口显示“could not open driver” 开机时出现could not open device.如何解决 装系统XP时,提示:File ntkrnlmp.exe could not be loaded.The error code is 7!谁能帮帮我,怎样解决?? could not initialize the renderer 我第一次玩游戏就出现这个提示 我玩游戏提示"could not create Dirvct3D device"该怎么办?