Minecraft-Java-Edition
我無法在 Minecraft 1.16.5 Fabric 上啟動伺服器
我正在嘗試在 Fabric 1.16.5 上啟動我的新伺服器,但它只是崩潰了……有人可以告訴我如何修復它嗎?
[12:01:50] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [12:01:50] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0] [12:01:50] [main/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498] [12:01:50] [main/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [12:01:50] [main/INFO]: Reloading ResourceManager: Default [12:01:50] [Worker-Main-11/INFO]: Loaded 7 recipes [12:01:51] [Worker-Main-11/INFO]: Loaded 927 advancements [12:01:54] [Server thread/INFO]: Starting minecraft server version 1.16.5 [12:01:54] [Server thread/INFO]: Loading properties [12:01:54] [Server thread/INFO]: Default game type: SURVIVAL [12:01:54] [Server thread/INFO]: Generating keypair [12:01:54] [Server console handler/ERROR]: Exception handling console input java.io.IOException: The handle is invalid at java.io.FileInputStream.readBytes(Native Method) ~[?:1.8.0_281] at java.io.FileInputStream.read(Unknown Source) ~[?:1.8.0_281] at java.io.BufferedInputStream.read1(Unknown Source) ~[?:1.8.0_281] at java.io.BufferedInputStream.read(Unknown Source) ~[?:1.8.0_281] at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) ~[?:1.8.0_281] at sun.nio.cs.StreamDecoder.implRead(Unknown Source) ~[?:1.8.0_281] at sun.nio.cs.StreamDecoder.read(Unknown Source) ~[?:1.8.0_281] at java.io.InputStreamReader.read(Unknown Source) ~[?:1.8.0_281] at java.io.BufferedReader.fill(Unknown Source) ~[?:1.8.0_281] at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_281] at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_281] at net.minecraft.class_3176$1.run(class_3176.java:95) [intermediary-server.jar:?] [12:01:54] [Server thread/INFO]: Starting Minecraft server on *:25565 [12:01:54] [Server thread/INFO]: Using default channel type [12:02:11] [Server thread/WARN]: **** FAILED TO BIND TO PORT! [12:02:11] [Server thread/WARN]: The exception was: java.net.BindException: Address already in use: bind [12:02:11] [Server thread/WARN]: Perhaps a server is already running on that port? [12:02:11] [Server thread/INFO]: Stopping server [12:02:11] [Server thread/INFO]: Saving worlds [12:02:11] [Server thread/ERROR]: Exception stopping the server java.lang.NullPointerException: null at net.minecraft.server.MinecraftServer.method_3723(MinecraftServer.java:572) ~[intermediary-server.jar:?] at net.minecraft.server.MinecraftServer.method_3782(MinecraftServer.java:599) ~[intermediary-server.jar:?] at net.minecraft.class_3176.method_3782(class_3176.java:567) ~[intermediary-server.jar:?] at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:707) ~[intermediary-server.jar:?] at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:257) ~[intermediary-server.jar:?] at java.lang.Thread.run(Unknown Source) [?:1.8.0_281]```
[12:02:11] [Server thread/WARN]: **** FAILED TO BIND TO PORT!
這幾乎總是因為另一個伺服器正在此埠上執行。如果您從 linux 機器託管,您可以檢查正在執行的程序 using
top
,並 usingpkill java
殺死任何 java 程序如果您在 Windows 上,您可以嘗試從任務管理器關閉任何應用程序,或者如 aytimothy 指出的那樣,
taskkill /f /im java.exe
或者taskkill /f /im javaw.exe
如果這些都不起作用,請嘗試將埠更改為 25565 以外的其他內容
server.properties
。你可以試試 25566