IIS进程无法访问正在使用的文件 [英] IIS process cannot access file in use
问题描述
我们为服务器创建了SSL证书,当我们想要启动IIS时,我们收到此错误:
We created an SSL certificate for our server and when we want to start IIS we get this error:
该进程无法访问文件,因为它正由另一个进程使用。
The process cannot access the file because it is being used by another process.
端口443似乎正在使用中。我怎么解决这个问题?或者我怎样才能了解为什么使用443端口?
Port 443 seems to be in use. How can I solve this? Or How can I learn why port 443 in being used?
推荐答案
Marc B 的评论值得一个实际答案,所以我将它贴在这里:
Marc B's comment is deserving of an actual answer, so I will paste it here:
使用 netstat -b -a
在提升的权限shell中。它将显示所有活动端口以及附加到它们的进程。如果持有您的端口的进程是svc.exe或其他多实例可执行文件,则可以添加 -o
(感谢 Mike K 评论)。
Use netstat -b -a
in an elevated privilege shell. It'll show all active ports and the processes attached to them. You can add -o
if the process holding on to your port is svc.exe or another multi-instance executable (thanks to Mike K for the comment).
我看到这种情况发生在我的开发盒上,Skype实际上接管了端口80和/或443.关闭并禁用Skype使用和监听端口80和端口443,
I've seen this happen on my development box where Skype actually takes over port 80 and/or 443. To turn off and disable Skype usage of and listening on port 80 and port 443,
- 打开Skype窗口
- 点击工具
- 点击选项
- 点击高级
- 点击连接
- 取消选中使用端口80和443作为传入连接的替代方法选项的复选框。
- 点击保存按钮
- 重启Skype
- Open the Skype window
- Click "Tools"
- Click "Options"
- Click "Advanced"
- Click "Connection"
- Uncheck the checkbox for "Use port 80 and 443 as an alternatives for incoming connections" option.
- Click the save button
- Restart Skype
这篇关于IIS进程无法访问正在使用的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!