本文主要包含centos minecraft,centos安装服务器,centos ftp服务器配置,centos svn服务器搭建,centos服务器等服务器相关知识,网友希望可以进行参考
centos 7搭建原版 Minecraft 服务器
centos 7上搭建原版 Minecraft 服务器,直接进入正题:
①安装jdk-1.8.0
[plain]view plaincopy- yuminstall-yjava-1.8.0*
②创建mc目录[plain]view plaincopy
- mkdir/tmp/minecraft
③下载好mc服务器的压缩包(minecraft_server.1.7.10.jar)和库文件(libraries),移动到/tmp/minecraft目录下
④运行下面命令启动服务器
[html]view plaincopy- java-Xmx2048M-Xms1024M-jarminecraft_server.jarnogui//-Xms为最低使用内存,-Xmx为最高使用内存,nogui为以命令行开启
⑤第一次运行提示加载 eula.txt 失败
[plain]view plaincopy- [16:36:36][Serverthread/INFO]:Loadingproperties
- [16:36:36][Serverthread/WARN]:server.propertiesdoesnotexist
- [16:36:36][Serverthread/INFO]:Generatingnewpropertiesfile
- [16:36:36][Serverthread/WARN]:Failedtoloadeula.txt
- [16:36:36][Serverthread/INFO]:YouneedtoagreetotheEULAinordertoruntheserver.Gotoeula.txtformoreinfo.
- eula.txt
- eula=false
- 修改为eula=true
- server.properties
- online-mode=true
- 修改为online-mode=false//其他选项依个人喜好修改
⑦关闭SELinux、firewalld(懒得设置,直接关闭了)[plain]view plaincopy
- vi/etc/selinux/config
- SELINUX=enforcing
- 修改为
- SELINUX=disabled
- systemctldisablefirewalld
- systemctlstopfirewalld
⑧再次运行命令启动服务器,即可成功开启(可编写运行脚本就不用每次打一长串开启命令啦),赶快约起小伙伴们一起玩耍吧
Java-Xmx2048M -Xms1024M -jar minecraft_server.jar nogui

