解决sql server2008数据库安装之后,web程序80端口被占用问题(终极方案)
前言: 原来电脑上的Apache一直使用正常,在安装sql server2008后,突然发现Apache无法启动,检查了一下是因为80端口被强制占用了。
解决方案: 1、先用cmd命令 netstat -ano 看一下各个端口占用和进程PID(80端口是被3296占用) 。
2、然后在任务管理器里,查看进程。(注意:默认情况下,进程的PID是不显示的,你在菜单的查看 → 选择列里可以选上PID来显示) 最后排查到是一个名叫“sql server reporting services”的原因,SQL Server的这个功能基本用不到,因此可以按我下面的提供的方法停掉或者把 ” Web 服务 URL“的TCP端口修改成其他的。
3、开始菜单 →打开Reporting Services 配置管理器,如下:

4、点击【连接】按钮,登录Reporting Services 配置管理器

5、最简单的方法:直接停止掉服务(缺点:每次重启电脑,就需要重新停止服务)

6、最稳妥的方法:修改端口
(1)、左侧栏切换到【Web 服务 URL】选项卡 ,把TCP端口改成其他的(例如88)

(2)、左侧栏切换到【报表管理器URL】选项卡 ,发现这里的URL使用了80端口

(3)、 点击高级按钮,打开“高级多网站设置”,按下面的步骤修改端口号即可。

完美解决 |