前言: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 即可
相关推荐
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
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
注意,在启动Apache时,如果出现“Could not reliably determine the server's fully qualified domain name”警告,可以在Apache配置文件(如 `/usr/local/apache/conf/httpd.conf`)中添加或修改ServerName配置,...
若启动时遇到“Could not reliably determine the server's fully qualified domain name”错误,需编辑`/etc/httpd/conf/httpd.conf`,将`ServerName www.example.com:80`改为`ServerName localhost:80`或你的实际...
重启 Apache 后,可能会弹出警告:AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.0.64. Set the 'ServerName' directive globally to suppress this ...
如果出现“Could not reliably determine the server's fully qualified domain name”错误,需要编辑`/etc/httpd/conf/httpd.conf`文件,将`ServerName`行修改为实际的域名或IP地址,并设为开机启动。 然后,我们...
如果在重启Apache时遇到“Could not reliably determine the server's fully qualified domain name”的警告,可以在`/etc/apache2/apache2.conf`文件末尾添加: ``` ServerName 127.0.0.1 ``` 6. 重启Apache服务:...
当执行重启操作时可能会遇到 “Could not reliably determine the server’s fully qualified domain name” 错误提示。这通常是因为 ServerName 未正确配置导致。解决方法是在 `/etc/apache2/apache2.conf` 文件中...
解决启动时可能出现的`Could not reliably determine the server's fully qualified domain name`错误,编辑httpd.conf配置文件: ```bash vi /etc/httpd/conf/httpd.conf ``` 将`#ServerName www.example.com:80`改...
httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName ``` 可以通过修改`httpd.conf`文件来解决该问题: ```bash vi /etc/httpd/conf/httpd.conf ``` 找到如下...
如果遇到启动时提示“apr_sockaddr_info_get() failed”和“Could not reliably determine the server's fully qualified domain name”的错误,可以通过编辑 /etc/hosts、/etc/sysconfig/network 和 /usr/local/...
当遇到类似“Could not reliably determine the server's fully qualified domain name”这样的错误时,通常是因为Apache服务器在启动时无法确定其完全限定域名(FQDN),这可能会影响到HTTPS证书的绑定或其他基于域名...
如果遇到"Could not reliably determine the server's fully qualified domain name, using 192.168.1.111 for ServerName"的错误,这表示Apache需要服务器的FQDN(完全限定域名)。你可以通过以下方式解决: 1. 在...
若出现“Could not reliably determine the server's fully qualified domain name”错误,需要修改`/etc/httpd/conf/httpd.conf`文件中的`ServerName`配置: ```bash # 找到 ServerName 行 ServerName localhost #...
在启动或重启过程中,你可能会遇到"Could not reliably determine the server's fully qualified domainname"的错误。这个问题可以通过在配置文件中设置`ServerName`来解决。打开`httpd.conf`文件(位于`/etc/apache...
如果出现"Could not reliably determine the server's fully qualified domain name"错误,编辑`/usr/local/apache/conf/httpd.conf`,将ServerName设置为127.0.0.1:80,并重启Apache。 接下来是MySQL的安装。MySQL...