我是redstone
(倒腾了一个下午,已经重启过服务器了,但是依旧无法打开,之前在相同配置情况下成功打开过,但是仍然无法远程访问)

系统配置为 Linux

2 回目(服务器根本开不开)

cmd 里面的

Fabric 1.20.1

  1. root@ser953171472151:~# java -Xmx1024M -Xms1024M -jar /www/Minecraft/fabric-server-mc.1.20.1-loader.0.14.24-launcher.0.11.2.jar
  2. Starting net.fabricmc.loader.impl.game.minecraft.BundlerClassPathCapture
  3. [09:16:34] [main/INFO]: Loading Minecraft 1.20.1 with Fabric Loader 0.14.24
  4. [09:16:34] [main/INFO]: Loading 9 mods:
  5.         - fabricloader 0.14.24
  6.         - java 17
  7.         - minecraft 1.20.1
  8.         - worldedit 7.2.15+6463-5ca4dff
  9.            |-- fabric-api-base 0.4.29+b04edc7a27
  10.            |-- fabric-command-api-v2 2.2.11+b3afc78b27
  11.            |-- fabric-events-interaction-v0 0.6.0+b3afc78b27
  12.            |-- fabric-lifecycle-events-v1 2.2.20+b3afc78b27
  13.            \-- fabric-networking-api-v1 1.3.8+b3afc78b27
  14. [09:16:35] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=file:/root/libraries/net/fabricmc/sponge-mixin/0.12.5+mixin.0.8.5/sponge-mixin-0.12.5+mixin.0.8.5.jar Service=Knot/Fabric Env=SERVER
  15. [09:16:35] [main/INFO]: Compatibility level set to JAVA_16
  16. [09:16:58] [main/INFO]: Got request to register class com.sk89q.worldedit.fabric.FabricPlatform with WorldEdit [com.sk89q.worldedit.extension.platform.PlatformManager@749ad467]
  17. [09:16:58] [main/INFO]: WorldEdit for Fabric (version 7.2.15+6463-5ca4dff) is loaded
  18. [09:16:58] [main/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
  19. [09:17:04] [main/INFO]: Registering commands with com.sk89q.worldedit.fabric.FabricPlatform
  20. [09:17:06] [main/INFO]: Loaded 7 recipes
  21. [09:17:06] [main/INFO]: Loaded 1271 advancements
  22. [09:17:08] [Server thread/INFO]: Starting minecraft server version 1.20.1
  23. [09:17:08] [Server thread/INFO]: Loading properties
  24. [09:17:08] [Server thread/INFO]: Default game type: CREATIVE
  25. [09:17:08] [Server thread/INFO]: Generating keypair
  26. [09:17:09] [Server thread/INFO]: Starting Minecraft server on pmine.org:23333
  27. [09:17:09] [Server thread/INFO]: Using epoll channel type
  28. [09:17:09] [Server thread/WARN]: **** FAILED TO BIND TO PORT!
  29. [09:17:09] [Server thread/WARN]: The exception was: io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: Cannot assign requested address
  30. [09:17:09] [Server thread/WARN]: Perhaps a server is already running on that port?
  31. [09:17:09] [Server thread/ERROR]: Encountered an unexpected exception
  32. java.lang.IllegalStateException: Failed to initialize server
  33.         at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:684) ~[server-intermediary.jar:?]
  34.         at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:265) ~[server-intermediary.jar:?]
  35.         at java.lang.Thread.run(Thread.java:833) ~[?:?]
  36. [09:17:09] [Server thread/ERROR]: This crash report has been saved to: /root/./crash-reports/crash-2023-12-17_09.17.09-server.txt
  37. [09:17:09] [Server thread/INFO]: Stopping server
  38. [09:17:09] [Server thread/INFO]: Saving worlds
  39. [09:17:09] [Server thread/ERROR]: Exception stopping the server
  40. java.lang.NullPointerException: Cannot invoke "net.minecraft.class_3218.method_8621()" because "$5" is null
  41.         at net.minecraft.server.MinecraftServer.method_3723(MinecraftServer.java:541) ~[server-intermediary.jar:?]
  42.         at net.minecraft.server.MinecraftServer.method_3782(MinecraftServer.java:602) ~[server-intermediary.jar:?]
  43.         at net.minecraft.class_3176.method_3782(class_3176.java:537) ~[server-intermediary.jar:?]
  44.         at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:703) ~[server-intermediary.jar:?]
  45.         at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:265) ~[server-intermediary.jar:?]
  46.         at java.lang.Thread.run(Thread.java:833) ~[?:?]
  47. root@ser953171472151:~#
复制代码


报错文件

  1. ---- Minecraft Crash Report ----
  2. // I bet Cylons wouldn't have this problem.

  3. Time: 2023-12-17 09:17:09
  4. Description: Exception in server tick loop

  5. java.lang.IllegalStateException: Failed to initialize server
  6.         at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:684)
  7.         at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:265)
  8.         at java.base/java.lang.Thread.run(Thread.java:833)


  9. A detailed walkthrough of the error, its code path and all known details is as follows:
  10. ---------------------------------------------------------------------------------------

  11. -- System Details --
  12. Details:
  13.         Minecraft Version: 1.20.1
  14.         Minecraft Version ID: 1.20.1
  15.         Operating System: Linux (amd64) version 4.19.0-20-cloud-amd64
  16.         Java Version: 17.0.8, Oracle Corporation
  17.         Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode, sharing), Oracle Corporation
  18.         Memory: 741176208 bytes (706 MiB) / 1073741824 bytes (1024 MiB) up to 1073741824 bytes (1024 MiB)
  19.         CPUs: 2
  20.         Processor Vendor: GenuineIntel
  21.         Processor Name: Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz
  22.         Identifier: Intel64 Family 6 Model 79 Stepping 1
  23.         Microarchitecture: Broadwell (Server)
  24.         Frequency (GHz): 2.40
  25.         Number of physical packages: 1
  26.         Number of physical CPUs: 2
  27.         Number of logical CPUs: 2
  28.         Graphics card #0 name: unknown
  29.         Graphics card #0 vendor: unknown
  30.         Graphics card #0 VRAM (MB): 0.00
  31.         Graphics card #0 deviceId: unknown
  32.         Graphics card #0 versionInfo: unknown
  33.         Memory slot #0 capacity (MB): 2048.00
  34.         Memory slot #0 clockSpeed (GHz): -0.00
  35.         Memory slot #0 type: RAM
  36.         Virtual memory max (MB): 2023.73
  37.         Virtual memory used (MB): 1418.75
  38.         Swap memory total (MB): 1025.00
  39.         Swap memory used (MB): 0.00
  40.         JVM Flags: 2 total; -Xmx1024M -Xms1024M
  41.         Server Running: true
  42.         Data Packs: vanilla
  43.         Enabled Feature Flags: minecraft:vanilla
  44.         World Generation: Stable
  45.         Is Modded: Definitely; Server brand changed to 'fabric'
  46.         Type: Dedicated Server (map_server.txt)
复制代码


我查过了,说是 MOD 冲突,但是我只安装了一个 World Editor 模组

  1. #Minecraft server properties
  2. #Sun Dec 17 09:16:58 UTC 2023
  3. enable-jmx-monitoring=false
  4. rcon.port=25575
  5. level-seed=
  6. gamemode=creative
  7. enable-command-block=false
  8. enable-query=false
  9. generator-settings={}
  10. enforce-secure-profile=true
  11. level-name=world
  12. motd=A Minecraft Server
  13. query.port=23333
  14. pvp=true
  15. generate-structures=true
  16. max-chained-neighbor-updates=1000000
  17. difficulty=peaceful
  18. network-compression-threshold=256
  19. max-tick-time=60000
  20. require-resource-pack=false
  21. use-native-transport=true
  22. max-players=20
  23. online-mode=true
  24. enable-status=true
  25. allow-flight=false
  26. initial-disabled-packs=
  27. broadcast-rcon-to-ops=true
  28. view-distance=10
  29. server-ip=(自己买的域名,已经绑定了服务器的 IP )
  30. resource-pack-prompt=
  31. allow-nether=true
  32. server-port=23333
  33. enable-rcon=false
  34. sync-chunk-writes=true
  35. op-permission-level=4
  36. prevent-proxy-connections=false
  37. hide-online-players=false
  38. resource-pack=
  39. entity-broadcast-range-percentage=100
  40. simulation-distance=10
  41. rcon.password=
  42. player-idle-timeout=0
  43. force-gamemode=false
  44. rate-limit=0
  45. hardcore=false
  46. white-list=false
  47. broadcast-console-to-ops=true
  48. spawn-npcs=true
  49. spawn-animals=true
  50. function-permission-level=2
  51. initial-enabled-packs=vanilla
  52. level-type=minecraft\:normal
  53. text-filtering-config=
  54. spawn-monsters=true
  55. enforce-whitelist=false
  56. spawn-protection=16
  57. resource-pack-sha1=
  58. max-world-size=29999984
复制代码



雪颜の顾
[09:17:09] [Server thread/WARN]: Perhaps a server is already running on that port?

端口被占用,请查看当前端口是否被其他程序占用

我是redstone
雪颜の顾 发表于 2023-12-17 18:07
[09:17:09] [Server thread/WARN]: Perhaps a server is already running on that port?

端口被占用,请查 ...
  1. COMMAND    PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
  2. ntpd       554      ntp   16u  IPv6  13947      0t0  UDP *:ntp
  3. ntpd       554      ntp   17u  IPv4  13950      0t0  UDP *:ntp
  4. ntpd       554      ntp   18u  IPv4  13954      0t0  UDP localhost:ntp
  5. ntpd       554      ntp   19u  IPv4  13956      0t0  UDP 10.0.14.36:ntp
  6. ntpd       554      ntp   20u  IPv6  13958      0t0  UDP ip6-localhost:ntp
  7. ntpd       554      ntp   24u  IPv6  16436      0t0  UDP [fe80::62a0:49ff:fe00:5]:ntp
  8. pure-ftpd  575     root    4u  IPv4  14013      0t0  TCP *:ftp (LISTEN)
  9. pure-ftpd  575     root    5u  IPv6  14014      0t0  TCP *:ftp (LISTEN)
  10. sshd       604     root    3u  IPv4  15015      0t0  TCP *:ssh (LISTEN)
  11. sshd       604     root    4u  IPv6  15017      0t0  TCP *:ssh (LISTEN)
  12. nginx      635     root   19u  IPv4  15056      0t0  TCP *:888 (LISTEN)
  13. nginx      635     root   20u  IPv4  15058      0t0  TCP *:http (LISTEN)
  14. nginx      635     root   21u  IPv4  15059      0t0  TCP *:https (LISTEN)
  15. nginx      638      www   19u  IPv4  15056      0t0  TCP *:888 (LISTEN)
  16. nginx      638      www   20u  IPv4  15058      0t0  TCP *:http (LISTEN)
  17. nginx      638      www   21u  IPv4  15059      0t0  TCP *:https (LISTEN)
  18. nginx      639      www   19u  IPv4  15056      0t0  TCP *:888 (LISTEN)
  19. nginx      639      www   20u  IPv4  15058      0t0  TCP *:http (LISTEN)
  20. nginx      639      www   21u  IPv4  15059      0t0  TCP *:https (LISTEN)
  21. postgres   696 postgres    3u  IPv4  15155      0t0  TCP localhost:postgresql (LISTEN)
  22. postgres   696 postgres    8u  IPv4  14225      0t0  UDP localhost:44734->localhost:44734
  23. postgres   761 postgres    8u  IPv4  14225      0t0  UDP localhost:44734->localhost:44734
  24. postgres   762 postgres    8u  IPv4  14225      0t0  UDP localhost:44734->localhost:44734
  25. postgres   763 postgres    8u  IPv4  14225      0t0  UDP localhost:44734->localhost:44734
  26. postgres   764 postgres    8u  IPv4  14225      0t0  UDP localhost:44734->localhost:44734
  27. postgres   765 postgres    8u  IPv4  14225      0t0  UDP localhost:44734->localhost:44734
  28. postgres   766 postgres    8u  IPv4  14225      0t0  UDP localhost:44734->localhost:44734
  29. sendmail-  874     root    3u  IPv4  16459      0t0  TCP localhost:smtp (LISTEN)
  30. sendmail-  874     root    5u  IPv4  16460      0t0  TCP localhost:submission (LISTEN)
  31. mysqld    1335    mysql   31u  IPv6  16997      0t0  TCP *:mysql (LISTEN)
  32. BT-Panel  1416     root    5u  IPv4  18295      0t0  TCP *:35671 (LISTEN)
  33. BT-Panel  1416     root    6u  IPv4  63237      0t0  TCP 10.0.14.36:35671->114.86.39.4:39243 (ESTABLISHED)
  34. BT-Panel  1416     root    7u  IPv4  63261      0t0  TCP 10.0.14.36:35671->114.86.39.4:39253 (ESTABLISHED)
  35. BT-Panel  1416     root    8u  IPv4  63263      0t0  TCP 10.0.14.36:35671->114.86.39.4:39252 (ESTABLISHED)
  36. BT-Panel  1416     root    9u  IPv4  63265      0t0  TCP 10.0.14.36:35671->114.86.39.4:39254 (ESTABLISHED)
  37. BT-Panel  1416     root   10u  IPv4  63373      0t0  TCP localhost:42516->localhost:ssh (ESTABLISHED)
  38. BT-Panel  1416     root   11u  IPv4  63362      0t0  TCP 10.0.14.36:35671->114.86.39.4:39269 (ESTABLISHED)
  39. BT-Panel  1416     root   12u  IPv4  63285      0t0  TCP 10.0.14.36:35671->114.86.39.4:39259 (ESTABLISHED)
  40. BT-Panel  1416     root   13u  IPv4  63275      0t0  TCP 10.0.14.36:35671->114.86.39.4:39258 (ESTABLISHED)
  41. uwsgi     1918      www    3u  IPv4  26011      0t0  TCP localhost:41843 (LISTEN)
  42. uwsgi     1918      www    4u  IPv4  26014      0t0  TCP *:2333 (LISTEN)
  43. uwsgi     1929      www    3u  IPv4  26011      0t0  TCP localhost:41843 (LISTEN)
  44. uwsgi     1930      www    3u  IPv4  26011      0t0  TCP localhost:41843 (LISTEN)
  45. uwsgi     1931      www    3u  IPv4  26011      0t0  TCP localhost:41843 (LISTEN)
  46. uwsgi     1932      www    3u  IPv4  26011      0t0  TCP localhost:41843 (LISTEN)
  47. uwsgi     1933      www    4u  IPv4  26014      0t0  TCP *:2333 (LISTEN)
  48. sshd      4736     root    3u  IPv4  63374      0t0  TCP localhost:ssh->localhost:42516 (ESTABLISHED)
复制代码

没有程序使用了 23333 号端口

MoonCakeMC
我是redstone 发表于 2023-12-17 18:10
没有程序使用了 23333 号端口

确实是端口绑定失败
你可以试着换一个端口

不过我想知道你用的什么命令查的端口
如果是lsof -i:23333那当我没说,如果不是你用这个再试一下

而且还有一种情况是被系统保留了,虽然默认情况下不会这样
但是有可能修改了什么导致被保留

我是redstone
MoonCakeMC 发表于 2023-12-17 18:19
确实是端口绑定失败
你可以试着换一个端口

我已经尝试过 23333 25565 25535 了,好像都是着一种情况,我后面在多试几个?
(就是,同样的配置之前开成功过)


Flower_胡子
server-ip= 那栏你填的什么 试试留空 什么都不用填

我是redstone
Flower_胡子 发表于 2023-12-17 19:13
server-ip= 那栏你填的什么 试试留空 什么都不用填
补充
pmine.org:23333 果然 你填域名了 留空 什么都不 ...

有用了,成功开启,但是貌似无法连接
能不能问一下为什么()

我是redstone
  1. root@ser953171472151:~# java -Xmx1024M -Xms1024M -jar /www/Minecraft/fabric-server-mc.1.20.1-loader.0.14.24-launcher.0.11.2.jar
  2. Starting net.fabricmc.loader.impl.game.minecraft.BundlerClassPathCapture
  3. [11:57:48] [main/INFO]: Loading Minecraft 1.20.1 with Fabric Loader 0.14.24
  4. [11:57:48] [main/INFO]: Loading 9 mods:
  5.         - fabricloader 0.14.24
  6.         - java 17
  7.         - minecraft 1.20.1
  8.         - worldedit 7.2.15+6463-5ca4dff
  9.            |-- fabric-api-base 0.4.29+b04edc7a27
  10.            |-- fabric-command-api-v2 2.2.11+b3afc78b27
  11.            |-- fabric-events-interaction-v0 0.6.0+b3afc78b27
  12.            |-- fabric-lifecycle-events-v1 2.2.20+b3afc78b27
  13.            \-- fabric-networking-api-v1 1.3.8+b3afc78b27
  14. [11:57:49] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=file:/root/libraries/net/fabricmc/sponge-mixin/0.12.5+mixin.0.8.5/sponge-mixin-0.12.5+mixin.0.8.5.jar Service=Knot/Fabric Env=SERVER
  15. [11:57:49] [main/INFO]: Compatibility level set to JAVA_16
  16. [11:58:14] [main/INFO]: Got request to register class com.sk89q.worldedit.fabric.FabricPlatform with WorldEdit [com.sk89q.worldedit.extension.platform.PlatformManager@71c23923]
  17. [11:58:14] [main/INFO]: WorldEdit for Fabric (version 7.2.15+6463-5ca4dff) is loaded
  18. [11:58:14] [main/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
  19. [11:58:19] [main/INFO]: Registering commands with com.sk89q.worldedit.fabric.FabricPlatform
  20. [11:58:20] [main/INFO]: Loaded 7 recipes
  21. [11:58:21] [main/INFO]: Loaded 1271 advancements
  22. [11:58:23] [Server thread/INFO]: Starting minecraft server version 1.20.1
  23. [11:58:23] [Server thread/INFO]: Loading properties
  24. [11:58:23] [Server thread/INFO]: Default game type: CREATIVE
  25. [11:58:23] [Server thread/INFO]: Generating keypair
  26. [11:58:23] [Server thread/INFO]: Starting Minecraft server on *:23333
  27. [11:58:23] [Server thread/INFO]: Using epoll channel type
  28. [11:58:24] [Server thread/INFO]: Preparing level "world"
  29. [11:58:25] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
  30. [11:58:39] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  31. [11:58:39] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  32. [11:58:39] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  33. [11:58:39] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  34. [11:58:39] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  35. [11:58:39] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  36. [11:58:39] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  37. [11:58:39] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  38. [11:58:39] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  39. [11:58:39] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  40. [11:58:39] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  41. [11:58:39] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  42. [11:58:39] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  43. [11:58:39] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  44. [11:58:40] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  45. [11:58:40] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  46. [11:58:40] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  47. [11:58:40] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  48. [11:58:40] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  49. [11:58:40] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  50. [11:58:40] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  51. [11:58:40] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  52. [11:58:40] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  53. [11:58:40] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  54. [11:58:40] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  55. [11:58:40] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  56. [11:58:40] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  57. [11:58:40] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  58. [11:58:40] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  59. [11:58:40] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  60. [11:58:40] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  61. [11:58:40] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  62. [11:58:41] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  63. [11:58:41] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  64. [11:58:42] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  65. [11:58:42] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  66. [11:58:43] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  67. [11:58:43] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  68. [11:58:44] [Worker-Main-1/INFO]: Preparing spawn area: 0%
  69. [11:58:44] [Worker-Main-1/INFO]: Preparing spawn area: 97%
  70. [11:58:45] [Server thread/INFO]: Time elapsed: 20201 ms
  71. [11:58:45] [Server thread/INFO]: Done (21.197s)! For help, type "help"
复制代码

Flower_胡子

这不是启动成功了么
Done (21.197s)! For help, type "help"

Flower_胡子
我是redstone 发表于 2023-12-17 20:00
有用了,成功开启,但是貌似无法连接
能不能问一下为什么()

租的是什么云 去他们网页管理里面开放端口 TCP协议23333

我是redstone
Flower_胡子 发表于 2023-12-17 20:24
租的是什么云 去他们网页管理里面开放端口 TCP协议23333
然后你的域名是SRV解析还是A解析呢
...

我 IP 直接没有写
绑定的域名是 A 解析
我是直接打 IP:23333 访问的

Flower_胡子
我是redstone 发表于 2023-12-17 21:17
我 IP 直接没有写
绑定的域名是 A 解析
我是直接打 IP:23333 访问的

A解析  域名:端口或者IP:端口 都是可以的
如果不行 就是服务商没给你的端口放行

第一页 上一页 下一页 最后一页