---
title: "Apache的443端口被占用解决方法"
author: "congjl2002"
date: "2012-04-25T11:43:05Z"
tags: []
categories: ["开源软件"]
slug: "apache-443"
draft: false
lastmod: "2012-09-25T23:50:38Z"
id: 1497640
url: "https://congjl2002.iteye.com/blog/1497640"
---

今天使用xampp，apache无法启动，由于使用xampp-control-3-beta.exe无法看到错误，就是无法启动。

 

windows用cmd，执行xampp/apache/bin中的httpd.exe，看到：

```
(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。  : make_sock: c
ould not bind to address [::]:443
```

 

查找端口占用

```
D:\server\xampp\apache\bin>netstat -ano|findstr "443"
  TCP    0.0.0.0:443            0.0.0.0:0              LISTENING       3120
  TCP    199.10.33.30:54312     202.173.27.250:443     TIME_WAIT       0
  TCP    199.10.33.30:54313     216.219.120.244:443    TIME_WAIT       0
```

 

 

查看进程占用程序

```
D:\server\xampp\apache\bin>tasklist|findstr "3120"
vmware-hostd.exe              3120 Services                   0     55,356 K
```

 

可见433由vmare占用，根据“先来后到”的原则，那么只有更改apache的这个端口了。

解决方法

进入Apache的安装目录，搜索httpd-ssl.conf，右击文本打开。寻找443替换成其他不常用的端口号，比如442。接下来就可以正常启动Apache了。