升级win10 ,apache 80端口被占用

来源:互联网 发布:网络舆情监测专业介绍 编辑:程序博客网 时间:2024/05/24 03:26

ntoskrnl.exe占用80端口

80端口被NT kernel & System 占用pid 4  

系统和压缩内存 NT Kernel  占用80


1、找到cmd.exe 右击菜单,超级管理员 打开
2、运行net stop http
3、Y
4、Sc config http start= disabled
5、netstat -ano
参考:http://www.2cto.com/os/201111/111269.html




配置:
1、httpd.conf 
(1)监听端口 Listen 80,注意是否设置为80
(2)DocumentRoot  "E:\www"
(3)Include conf/extra/httpd-vhosts.conf //去掉注释,为开启

2、httpd-vhost.conf
NameVirtualHost *:80


<VirtualHost *:80>
ServerAdmin 243646899@qq.com
DocumentRoot "E:\www\xxxxx\Code\web\php"
ServerName www.xxxxx.com
ErrorLog "logs/www.xxxxx.com-error.log"
CustomLog "logs/www.xxxxx.com-access.log" common

</VirtualHost>


0 0
原创粉丝点击