- 1. Requirements
- 2. 1. Download the Minecraft server Java .Jar file
- 3. 2. Run the server .Jar file
- 4. 3. Open and edit the ‘eula.txt’ file
- 5. 4. Test run the server .Jar file
- 6. 5. Configure your Minecraft Server
- 7. Related
- 7.0.1. Advanced Farming and Herding Guide
- 7.0.2. Building a Basic Camp in Rust
- 7.0.3. How to Install Minecraft Mods
- 7.0.4. How to Play Minecraft Multiplayer
- 7.0.5. How to Avoid Starvation in Rust
- 7.0.6. How to Setup WorkshopDL for Garry’s Mod
- 7.0.7. How to Accept the Minecraft EULA
- 7.0.8. How to Create an Epic Rust Server
- 8. References
- 9. About This Article
In this guide, you will learn how to setup and configure your own Minecraft server so you can play with others and customize your server with the gameplay and mods of your choosing.
You’ll need the following to install a Minecraft server on a Windows computer.
- Windows computer (32 or 64 bit)
- The latest version of Java installed
1. Download the Minecraft server Java .Jar file
The server file can be found on the Minecraft server download page.
2. Run the server .Jar file
Do this within a folder that will be dedicated to your Minecraft server.
This will configure the server files within the folder.
3. Open and edit the ‘eula.txt’ file
The eula.txt file is in the Minecraft server folder that you previously created.
Open it with a text editor and make the following change:
'eula=false' to 'eula=true'
If this is not done, the server will not start when you try to run it.
4. Test run the server .Jar file
You should now be able to run your Minecraft server. Double-click your Minecraft server .Jar file to start your server using the server GUI.
If your Minecraft server starts successfully, the graphical user interface should pop up and you should see a list of commands similar to the image below.
If an error message prevents the .Jar file from running, right click the file and click “Run as administrator”.
5. Configure your Minecraft Server
In order to change server settings, such as the amount of RAM memory dedicated to the server, you’ll need to edit the server’s startup configuration.
Below is an example of a Minecraft server startup command.
java -Xms512M -Xmx1024M -jar minecraft_server.jar
The command above can be run in the Windows Command Prompt (type cmd in Start and open the cmd.exe file) or by saving it in a .bat file (using any text editor such as Notepad, just save the file name as any-filename.bat and doubleclick it to run the server).
This command would run a Minecraft server .jar file named minecraft_server.jar with 512 megabytes of startup RAM and 1024 megabytes of maximum ram.These server settings and more can be edited by changing their values in the command line. Below we’ve compiled a list of all the Minecraft server startup commands you can use to edit your server:
- Initial Memory Size: -Xms512M (512 megabytes of initial memory)
- Maximum Memory Size: -Xmx1024M (1024 megabytes of maximum server ram)
- Server .Jar File Name: -jar server-file-name.jar
- Hide the GUI (lowers CPU/RAM usage): -nogui
- Run Server in Online Mode (authenticated users only): -o true
- Keep Server Window Open after Stopping Server: pause
- Run Server on 64-bit Computer: -d64
Below is an example Minecraft server startup line we’ve created that enables all of the commands above, and starts a server .jar file named server_jar_file.jar with 1 gigabyte of initial memory (-Xms1G) and 2.5 gigabytes of maximum server RAM (-Xmx2560M).
java -Xms1G -Xmx2560M -jar server_jar_file.jar -d64 nogui
Congratulations, you now have set up your very own Minecraft server that others can join (as long as your computer is on and running the server file). If you run into any problems or have questions, leave a comment below the article.Grow your server by listing it on Find Minecraft Servers!