PHP_启动服务端口报错

WBOY
Release: 2016-06-20 12:45:08
Original
1419 people have browsed it

could not bind to address 0.0.0.0:443
no listening sockets available, shutting down

在Apache安装完成后,启动时会出现如下情况:

(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。

: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

解决办法是:


      通过 netstat -a -o 查看端口占用情况,关闭调用相关端口的进程。
c:\>netstat -a -o
Active Connections
Proto Local Address          Foreign Address        State           PID
TCP    zhengrf:1728           localhost:30000        ESTABLISHED     5384
TCP    zhengrf:1755           localhost:ftp          ESTABLISHED     1848
TCP    zhengrf:2464           125.39.102.136:http    TIME_WAIT       0
TCP    zhengrf:2465           60.190.203.150:http    ESTABLISHED     4676
TCP    zhengrf:2466           60.190.203.150:http    ESTABLISHED     4676
TCP    zhengrf:2467           60.190.203.150:http    ESTABLISHED     4676
TCP    zhengrf:2468           60.190.203.150:http    ESTABLISHED     4676

      http默认用的是80端口,通过该http协议去查看对应的PID。
      通过打开“进程管理器”,发现PID=4676的进程号所对应的是迅雷的一个端口号。
      查看迅雷的端口设置,“配置”→“BT/端口设置”,可以看到TCP端口使用的是 80号端口。点击一下“随机生成”,或者 关闭迅雷。再启动 Apache,一切就OK了。


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template