Deno Uncaught AddrInUse:通常只允许使用每个套接字地址 (protocol/network address/port) 一次。 (os 错误 10048)

Deno Uncaught AddrInUse: Only one usage of each socket address (protocol/network address/port) is normally permitted. (os error 10048)

当我尝试 运行 我的 deno 文件时,我得到了 os error 10048,我该如何解决这个错误?谢谢

 import { Application } from 'https://deno.land/x/oak/mod.ts'

const app = new Application();
const port = 3000;

app.use((ctx) => {
    ctx.response.body = "Hello World"
})

app.listen({ port })
console.log(`localhost:${port}`)

我尝试 运行 我的 Deno 文件,但出现此错误

D:\Deno Documentation\deno3>deno run --allow-net ./server.js
localhost:3000
error: Uncaught AddrInUse: Only one usage of each socket address (protocol/network address/port) is normally permitted. (os error 10048)
    at unwrapResponse ($deno$/ops/dispatch_json.ts:43:11)
    at Object.sendSync ($deno$/ops/dispatch_json.ts:72:10)
    at Object.listen ($deno$/ops/net.ts:51:10)
    at listen ($deno$/net.ts:152:22)
    at Application.serve (https://deno.land/std@0.56.0/http/server.ts:252:20)
    at Application.listen (https://deno.land/x/oak/application.ts:295:20)
    at file:///D:/Deno%20Documentation/deno3/server.js:10:5

您有另一个程序正在侦听端口 3000,请将端口更改为未使用的端口,或者终止 3000 上的程序 运行。

如何终止特定端口上的进程 运行: