如何安全地创建和使用 eula.txt
Minecraft Java Edition 在首次启动后会在服务器文件夹中创建 eula.txt。停止服务器,阅读官方 Minecraft EULA,并且仅在您个人同意这些条款时才将 eula=true。此生成器准备了小文本文件,但它不能代表您接受协议。
下载生成的文件,并将其放置在与服务器 JAR、server.properties 和 logs 文件夹相同的文件夹中。请将文件名保持为 eula.txt,使用小写 true 或 false,并且仅在确认您正在编辑正确的服务器实例后才替换旧副本。
从其正常控制台或托管面板重新启动服务器。如果它仍然因 EULA 警告而停止,请检查是否存在重复的服务器文件夹、重命名的文件(例如 eula.txt.txt)、写入权限不足,或者单独管理 EULA 接受的托管面板。
确认实际运行的服务器目录
托管面板、Docker 容器和启动脚本可能使用与您在文件管理器中打开的文件夹不同的工作目录。检查启动命令和最近的日志以确定活动的服务器根目录。每个独立的 Java 服务器实例都需要在其启动的 JAR 文件旁边有自己的 eula.txt。
eula.txt 故障排除和常见问题
Does this generator accept the Minecraft EULA for me?
No. You must review and accept the official terms yourself. The generator only records your selection as eula=true or eula=false.
eula.txt 应该放在哪里?
Place it in the root folder of the Minecraft Java server, beside the server JAR. Do not put it inside the world, plugins, mods, or configuration folders.
Why does the server still say I have not accepted the EULA?
Confirm that the file is named eula.txt, contains eula=true, and is stored beside the JAR that is actually running. On Windows, enable file extensions to make sure the name is not eula.txt.txt.
Does this file work for Bedrock Dedicated Server?
No. eula.txt is part of the Minecraft Java server startup flow. Bedrock Dedicated Server uses a different installation and configuration process.
Can I edit the generated file manually?
Yes. eula.txt is plain text. Keep the eula setting on its own line and use only true or false after the equals sign.
Is it safe to share eula.txt?
The standard file does not contain a password or server token, but it records acceptance of the EULA. Generate and manage it for the server you control rather than accepting terms for someone else.