Build an original Minecraft server in centos 7

Source: Internet
Author: User

Build an original Minecraft server in centos 7

Build the original Minecraft server on centos 7 and directly go to the topic:

① Install jdk-1.8.0

[Plain] view plaincopy
  1. Yuminstall-yjava-1.8.0 *

② Create the mc directory

[Plain] view plaincopy
  1. Mkdir/tmp/minecraft

③ Download the compressed package (minecraft_server.1.7.10.jar) and library file (libraries) of the mc server, and move it to the/tmp/minecraft directory.

④ Run the following command to start the server

[Html] view plaincopy
  1. Java-Xmx2048M-Xms1024M-jarminecraft_server.jarnogui //-Xms for minimum memory usage,-Xmx for maximum memory usage, nogui for command line enabling

⑤ Failed to load eula.txt during the first running

[Plain] view plaincopy
  1. [16:36:36] [Serverthread/INFO]: Loadingproperties
  2. [16:36:36] [Serverthread/WARN]: server. propertiesdoesnotexist
  3. [16:36:36] [Serverthread/INFO]: Generatingnewpropertiesfile
  4. [16:36:36] [Serverthread/WARN]: Failedtoloadeula.txt
  5. [16:36:36] [Serverthread/INFO]: YouneedtoagreetotheEULAinordertoruntheserver.Gotoeula.txt formoreinfo.

Modify eula.txt, server. properties

[Html] view plaincopy
  1. Eula.txt
  2. Eula = false
  3. Change to eula = true
[Plain] view plaincopy
  1. Server. properties
  2. Online-mode = true
  3. Change to online-mode = false // other options can be modified as per your preference

7. Disable SELinux and firewalld (too easy to set, close directly)

[Plain] view plaincopy
  1. Vi/etc/selinux/config
  2. SELINUX = enforcing
  3. Change
  4. SELINUX = disabled
[Plain] view plaincopy
  1. Systemctldisablefirewalld
  2. Systemctlstopfirewalld

The supervisor can start the server by running the command again (you don't need to open a long string of commands every time you write the running script ).

Java-Xmx2048M-Xms1024M-jar minecraft_server.jar nogui

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.