升级win10 ,apache 80端口被占用

2016-05-08 Stevengaw

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:wwwxxxxxCodewebphp"
ServerName www.xxxxx.com
ErrorLog "logs/www.xxxxx.com-error.log"
CustomLog "logs/www.xxxxx.com-access.log" common

</VirtualHost>