前言: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 即可
分享到:
相关推荐
Apache 的 httpd.conf 详解 Apache 的 httpd.conf 详解Apache 的 httpd.conf 详解Apache 的 httpd.conf 详解Apache 的 httpd.conf 详解Apache 的 httpd.conf 详解Apache 的 httpd.conf 详解
Apache的httpd.conf文件常用指令解释Apache的httpd.conf文件常用指令解释Apache的httpd.conf文件常用指令解释
Apache2 httpd.conf 中文版 Apache2 httpd.conf 中文版
The Apache HTTP Server ("httpd") was launched in 1995 and it has been the most popular web server on the Internet since April 1996. It has celebrated its 25th birthday as a project in February 2020
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 10.0.0.109 for ServerName的处理办法 AppServ2.6.0是由Apache、PHP、mhsql、phpMyAdmin组成的安装包适合初学者使用。...
Apache2 httpd.conf 配置文件中文版 详细说明了apache2的配置文件的各项参数的配置方法,
apache的HTTPD.conf文件配置详解及基本配置和示例说明
Apache服务器的本地配置是一件令人头疼的事,无法访问一般是由于配置文件的不正确导致的,这是一份可以在Mac系统中正常运行的配置文件。
apache httpd.conf中文 apache优化
Apache2 httpd.conf配置文件中文版详解 # 基于 NCSA 服务的配置文件。
这个是用来解决APACHE 滚动日志的,原文地址在这里。http://hi.baidu.com/7xwang/modify/blog/3c3543ac1ff649d17cd92a34
apache和C++实现fastcgi时Apache中httpd.conf的配置
Apache2httpd.conf配置文件中文版详解宣贯.pdf
可以解决在2003服务器上用apache和iis公用,解析域名均不用带端口,非常好用,网管必会
技术分享:Apache中Httpd.conf详解
httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.2.116 for ServerName错误 在#ServerName www.example.com:80 添加 ServerName www.example.com:80
service will be called Apache2.2 and the configuration will be assumed to be conf\httpd.conf. httpd.exe -k uninstall ------移除Apache service You can control an Apache service by its command line ...
Apache2httpd.conf中文版.pdf