---
title: "apache Apache不能启动： Unable to open logs"
author: "guowee"
date: "2010-07-08T14:59:33Z"
tags: []
categories: ["编程语言"]
slug: "apache-apache-unable-to-open-logs"
draft: false
lastmod: "2010-07-08T14:59:33Z"
id: 708302
url: "https://guowee.iteye.com/blog/708302"
---

[关闭占有某端口的进程](http://www.cnblogs.com/nicholas_f/archive/2009/05/22/1486858.html)

Problem:

我们都知道tomcat、JBoss等web容器默认端口为8080，之前在做java web项目的时候运行Jboss时发现8080端口被占用了，于是就去找究竟那个进程占用了该端口。

Solution:

首先：找出占用8080端口的进程ID（PID），运行cmd--&gt;输入:netstat -ano|findstr 8080 --&gt;"Enter"。

接着：输入:tasklist /fi "PID eq 440" --&gt;"Enter",这里/fi 为筛选，"PID eq 440"为筛选条件，440为该进程的PID，马上就会显示该PID对应的进程名，原来是QQMusic.exe。

最后：当然是强制关闭该进程啦，输入:taskkill /fi "PID eq 440" /f --&gt;"Enter",也可以输入 :taskkill /fi "imagename QQMusic.exe" /f 来强制关闭它。

转载：[http://www.cnblogs.com/nicholas\_f/archive/2009/05/22/1486858.html](http://www.cnblogs.com/nicholas_f/archive/2009/05/22/1486858.html)