一、问题描述
如图,启动服务失败,失败原因是8080端口被占用

二、解决方案
1.更换端口为其它,例如8002 9001等
2.关闭占用端口的进程,推荐这种解决方案
步骤一:在win命令行查询占用该端口号的进程
命令如下
netstat -nao|findstr xxx

步骤二:关闭/杀死进程
taskkill /pid xxxx -f

再重新启动服务

即服务重新启动成功,解决了端口被占用的问题
如图,启动服务失败,失败原因是8080端口被占用
1.更换端口为其它,例如8002 9001等
2.关闭占用端口的进程,推荐这种解决方案
步骤一:在win命令行查询占用该端口号的进程
命令如下
netstat -nao|findstr xxx
步骤二:关闭/杀死进程
taskkill /pid xxxx -f
再重新启动服务
即服务重新启动成功,解决了端口被占用的问题