我的世界java版服务器搭建-服务器框架搭建【争做全网最好的服务器搭建教程
<br /><br /><font face="微软雅黑"> 你是否想过要拥有自己的服务器?是否厌倦了别人服务器枯燥的玩法?那么,这期教程教你搭建自己的服务器,自己当服主权限不求人!</font><br /><font face="微软雅黑"> <strong><font size="4">1.准备工作</font></strong></font><br /><strong><font face="微软雅黑"><font size="4"> </font><font size="3">物理服务器:</font></font></strong><br /><font size="2"><font face="微软雅黑"> (用自己的电脑开服) </font></font><br /><font face="微软雅黑"><font size="2"> 推荐配置i38代及以上,4g级以上运行内存(不是硬盘大小!),服务器硬盘大小≥16g,显卡基本无要求</font><input type="button" class="yc" value="点击展开折叠内容" onClick="n = this.parentNode.parentNode.lastChild;if(n.style.display == 'none') {n.style.display = 'block';this.value='点击折叠展开内容';} else {n.style.display = 'none';this.value='点击展开折叠内容';} return false;"/> <table style="word-break:break-all;word-wrap:break-all;"><td>(你拿服务器玩游戏?)</td></table></font><br /><font face="微软雅黑"><font size="2"> </font><font size="3"><strong>文件准备:</strong></font></font><br /><font face="微软雅黑"><strong><font size="3"> </font><font size="2">核心:</font></strong></font><br /><font face="微软雅黑"><font size="2">目前主流的插件服务器核心版本有:paper,spigot,bukkit。(插件!不是mod!)spigot是bukkit的优化版本,paper又是spigot的优化版本,具体优化了哪些呢?具体可以看看这张截图</font><input type="button" class="yc" value="点击展开折叠内容" onClick="n = this.parentNode.parentNode.lastChild;if(n.style.display == 'none') {n.style.display = 'block';this.value='点击折叠展开内容';} else {n.style.display = 'none';this.value='点击展开折叠内容';} return false;"/> <table style="word-break:break-all;word-wrap:break-all;"><td>(管你看不看的懂,反正没用)</td></table></font><br /><font face="微软雅黑"><img title="image.png" onerror="study_killerrpic(this)" aid="296395" src1="static/image/common/none.gif" zoom="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/194519z7plvs1gasg3tw3z.png" src="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/194519z7plvs1gasg3tw3z.png" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="600" id="aimg_296395" inpost="1" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" /></font><br /><font face="微软雅黑"> 推荐使用spigot,不过要追求服务器性能和优化的话,那么就使用paper,相比较他们两个,bukkit就是在是没必要了。<input type="button" class="yc" value="点击展开折叠内容" onClick="n = this.parentNode.parentNode.lastChild;if(n.style.display == 'none') {n.style.display = 'block';this.value='点击折叠展开内容';} else {n.style.display = 'none';this.value='点击展开折叠内容';} return false;"/> <table style="word-break:break-all;word-wrap:break-all;"><td>(bukkit耗能高,优化差,像极了冈易的土豆服务器)</td></table>,paper核心下载链接:<a href="https://papermc.io/downloads" rel="external nofollow" onClick="saya_extlink_golink('https://papermc.io/downloads');return false;" target="_blank">官网链接</a>,spigot核心下载链接:<a href="https://getbukkit.org/download/spigot" rel="external nofollow" onClick="saya_extlink_golink('https://getbukkit.org/download/spigot');return false;" target="_blank">国内链接</a>,bukkit核心下载链接:<a href="https://getbukkit.org/download/craftbukkit" rel="external nofollow" onClick="saya_extlink_golink('https://getbukkit.org/download/craftbukkit');return false;" target="_blank">国内链接</a></font><br /><font face="微软雅黑"> <strong>服务器文件编辑器:</strong></font><br /><font face="微软雅黑">vscode --专业,高级,对配置要求较高。推荐</font><br /><font face="微软雅黑">notepad++ --一般般,换皮记事本。不推荐</font><br /><font face="微软雅黑">原汁原味记事本<input type="button" class="yc" value="点击展开折叠内容" onClick="n = this.parentNode.parentNode.lastChild;if(n.style.display == 'none') {n.style.display = 'block';this.value='点击折叠展开内容';} else {n.style.display = 'none';this.value='点击展开折叠内容';} return false;"/> <table style="word-break:break-all;word-wrap:break-all;"><td>一个记事本,一个服务器</td></table> -方便,无脑推荐!!!</font><br /><font face="微软雅黑"> <strong>环境配置:</strong></font><br /><font face="微软雅黑">没什么好说的但还是给个链接吧,1.7.10-1.16.5使用java7-8,链接<a href="https://javadl.oracle.com/webapps/download/AutoDL?BundleId=248242_ce59cff5c23f4e2eaf4e778a117d4c5b" rel="external nofollow" onClick="saya_extlink_golink('https://javadl.oracle.com/webapps/download/AutoDL?BundleId=248242_ce59cff5c23f4e2eaf4e778a117d4c5b');return false;" target="_blank">国外链接</a>,1.17+使用java16-19,链接<a href="https://download.oracle.com/java/17/latest/jdk-17_windows-x64_bin.exe" rel="external nofollow" onClick="saya_extlink_golink('https://download.oracle.com/java/17/latest/jdk-17_windows-x64_bin.exe');return false;" target="_blank">国内链接</a>。</font><br /><br /><br /><font face="微软雅黑"> <strong>启动脚本:</strong></font><br /><font face="微软雅黑">先把你的服务器核心端文件放入一个空文件夹<input type="button" class="yc" value="点击展开折叠内容" onClick="n = this.parentNode.parentNode.lastChild;if(n.style.display == 'none') {n.style.display = 'block';this.value='点击折叠展开内容';} else {n.style.display = 'none';this.value='点击展开折叠内容';} return false;"/> <table style="word-break:break-all;word-wrap:break-all;"><td></font><br /><font face="微软雅黑">:此电脑->你的想要服务器储存的硬盘,我这里选择E盘</font><br /><font face="微软雅黑"> <img title="image.png" onerror="study_killerrpic(this)" aid="296420" src1="static/image/common/none.gif" zoom="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/201910grwrr7rc8pxrku79.png" src="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/201910grwrr7rc8pxrku79.png" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="312" id="aimg_296420" inpost="1" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" /></font><br /><font face="微软雅黑"> ->打开它并在空地方右键->新建->新建文件夹->双击文件夹->将下载好的"xxx-x-x-x.jar"核心端文件放入其中</font><br /><font face="微软雅黑"></td></table> 在里面再新建一个文本文档,名字改为"start.bat",如下</font><br /><font face="微软雅黑"> <img title="image.png" onerror="study_killerrpic(this)" aid="296424" src1="static/image/common/none.gif" zoom="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/202359t6zq9c9g4quohhjr.png" src="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/202359t6zq9c9g4quohhjr.png" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="159" id="aimg_296424" inpost="1" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" /></font><br /><font face="微软雅黑"> 如果你看不到文件后缀那么:</font><br /><font face="微软雅黑"> <img title="image.png" onerror="study_killerrpic(this)" aid="296428" src1="static/image/common/none.gif" zoom="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/202638gm003g3fn3jz1nyq.png" src="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/202638gm003g3fn3jz1nyq.png" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="600" id="aimg_296428" inpost="1" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" /></font><br /><font face="微软雅黑"> 然后右键start.bat->编辑,把这串代码粘贴进去:</font><br /><font face="微软雅黑"><a href="https://klpbbs.com/home.php?mod=space&uid=4803" target="_blank">@echo</a> off<br /></font><br /><font face="微软雅黑">java -Xmx服务器最大内存g -Xms服务器最小内存g -jar 服务器核心名字.jar</font><br /><font face="微软雅黑">pause</font><br /><font face="微软雅黑">-----------------------------------------------------------------------</font><br /><font face="微软雅黑"> <strong>服务器,启动?</strong></font><br /><font face="微软雅黑">运行start.bat文件,等他跑一串代码,预计4-5分钟,等到出现“请按任意键继续...”命令行,按下任意键或者关闭窗口即可。</font><br /><font face="微软雅黑"> <img title="image.png" onerror="study_killerrpic(this)" aid="296433" src1="static/image/common/none.gif" zoom="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/203734l50b0zkbizmcsyzb.png" src="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/203734l50b0zkbizmcsyzb.png" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="600" id="aimg_296433" inpost="1" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" /></font><br /><font face="微软雅黑"> 然后会出现这些文件,我们都不要管,打开eula.txt</font><br /><font face="微软雅黑"> <img title="image.png" onerror="study_killerrpic(this)" aid="296435" src1="static/image/common/none.gif" zoom="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/203908kfzp69rhzpp002fr.png" src="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/203908kfzp69rhzpp002fr.png" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="600" id="aimg_296435" inpost="1" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" /></font><br /><font face="微软雅黑"> 把eula=false改成eula=true</font><br /><font face="微软雅黑"> <img title="image.png" onerror="study_killerrpic(this)" aid="296436" src1="static/image/common/none.gif" zoom="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/203936gwu5vjr41y55x52t.png" src="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/203936gwu5vjr41y55x52t.png" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="600" id="aimg_296436" inpost="1" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" /></font><br /><font face="微软雅黑"><font size="4"><strong>2.这是?启动!</strong></font></font><br /><font face="微软雅黑"><font size="2">运行start.bat等待代码运行完毕出现">"字符后,那么服务器也算是部署完毕了,输入"stop"命令,等待出现</font>“请按任意键继续...”命令行,按下任意键或者关闭窗口即可。</font><br /><font face="微软雅黑"> 然后用编辑器打开server.properties文件,把<font style="color:rgb(86, 156, 214)">online-mode=true</font><font color="#000000">改成</font><font color="#569cd6">online-mode=false</font><font color="#000000">,这样关闭正版验证,离线玩家(没有购买78</font></font><br /><font face="微软雅黑"><font color="#000000">快正版的玩家)也可以进入服务器了。</font></font><br /><font face="微软雅黑"><font size="4"><font color="#000000"><strong>3.连接到服务器</strong></font></font></font><br /><font face="微软雅黑"><font color="#000000"><font size="2">在与服务器同版本的minecraft里面点击多人游戏,添加游戏,地址127.0.0.1或者0.0.0.0,完成,点击进入服务器即可</font></font></font><br /><br /><font face="微软雅黑"><font size="5"><font color="#ff0000">本教程只作为教程,不涉及大型服务器框架搭建!!!谢谢!!!</font></font></font><br /><font face="微软雅黑"><font size="2"><font color="#000000">这里打个广告:</font></font></font><br /><font face="微软雅黑"><font size="2"><font color="#000000">玩怪物猎人的加qq群:811877431!</font></font></font><br /><font face="微软雅黑"><font size="2"><font color="#000000">一起加mod的一起玩吧!</font></font></font><br /><font face="微软雅黑"><font size="2"><font color="#000000"><br /></font></font></font><br /><font face="微软雅黑"><font size="2"><font color="#000000"><br /></font></font></font><br /><font face="微软雅黑"><font size="2"><font color="#000000"><br /></font></font></font><br /><font face="微软雅黑"><font size="2"><font color="#000000"><br /></font></font></font><br /><font face="微软雅黑"><font size="2"><font color="#000000">定制服务器整合端加我qq:3608533511</font></font></font><br /><font face="微软雅黑"><font size="2"><font color="#000000"><br /></font></font></font><br /><img title="image.png" id="aimg_296389" aid="296389" src1="static/image/common/none.gif" zoom="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/193656el5ylzg6bpl2gcbb.png" src="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/193656el5ylzg6bpl2gcbb.png" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="309" alt="image.png" title="image.png" w="309" /><img title="image.png" id="aimg_296390" aid="296390" src1="static/image/common/none.gif" zoom="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/193657p3l3k86x38888734.png" src="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/193657p3l3k86x38888734.png" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="309" alt="image.png" title="image.png" w="309" /><img title="image.png" id="aimg_296391" aid="296391" src1="static/image/common/none.gif" zoom="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/193703lukhtkehxhuscwag.png" src="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/193703lukhtkehxhuscwag.png" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="309" alt="image.png" title="image.png" w="309" /><img title="image.png" id="aimg_296392" aid="296392" src1="static/image/common/none.gif" zoom="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/193720mii3rxhcmm32khm3.png" src="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/193720mii3rxhcmm32khm3.png" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="309" alt="image.png" title="image.png" w="309" /><img title="image.png" id="aimg_296432" aid="296432" src1="static/image/common/none.gif" zoom="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/203507kvk4l4flbb4km780.png" src="https://ip.klpbbs.com/attach.php?id=/forum/202305/13/203507kvk4l4flbb4km780.png" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="600" alt="image.png" title="image.png" w="1223" /><br>来源:<a href="https://klpbbs.com/thread-100721-1-7.html" target="_blank">https://klpbbs.com/thread-100721-1-7.html</a><br>免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作! echo:没想到吧,我是论坛用户名<img onerror="study_killerrpic(this)" src="https://klpbbs.com/static/image/smiley/bilibili/18.png"border="0" alt="" /><br />不过感谢分享教程 我做到运行脚本那一步的时候跟教程不一样,然后发现我的服务器核心端图标不是JAVA的图标,运行启动脚本也提示无法连接,是有什么前置我漏了嘛<br /> 6666666666666666
页:
[1]