Tenchio
New Member
- Messages
- 2
- Reaction score
- 1
- Points
- 0
"I've been reading many post on how to install Minecraft server (most of them are locked) and none explain connection issues or opening ports. Anyways, all those guide explained only how to get the files on your vps and how to run the minecraft_server jar. I had issue with connection to the server after creating it and turns out it was the ports, so I'm making a full guide on installing minecraft server on your vps and fixing issue you may have with Minecraft."
This guide will allows you to fully connect and create a Minecraft on your VPS for CentOS or linux.
Requirements
- Owning a Vps or Linux/CentOS operational system.
- Having YUM
- Internet connection ;P
- SSH Client
Linux/CentOS
Now when ever you need to edit,start, or stop the server just login to your new account for minecraft!
FAQ
If you have any issue with this guide please leave a message below and I'll fix it once I see it.
This guide will allows you to fully connect and create a Minecraft on your VPS for CentOS or linux.
Requirements
- Owning a Vps or Linux/CentOS operational system.
- Having YUM
- Internet connection ;P
- SSH Client
Linux/CentOS
- Installing Java 7 SDK.
Code:
[COLOR=#ff0000]yum install java-1.7.0-openjdk[/COLOR]
- Checking if Java was installed correctly.
Code:
[COLOR=#ff0000]which java[/COLOR]
- Installing Screen to keep your server running while SSH is closed.
Code:
[COLOR=#ff0000][I]yum install screen[/I][/COLOR]
- Opening port 25565.
Code:
[COLOR=#ff0000][FONT=Helvetica]iptables -A INPUT -p tcp --dport 25565 -j ACCEPT[/FONT][/COLOR]
- Creating a user
Code:
[COLOR=#ff0000][I]useradd [COLOR=#00FF00][COLOR=#008000](username)[/COLOR][/COLOR][/I][/COLOR]
- Setting up password for user
Code:
[COLOR=#ff0000][I]passwd [COLOR=#008000](username)[/COLOR][/I][/COLOR]
- At this point please login to your user account!
- Creating a folder for your Minecraft server.
Code:
[COLOR=#ff0000]mkdir [COLOR=#008000](Name of minecraft folder)[/COLOR][/COLOR]
- Entering your Minecraft server folder.
Code:
[COLOR=#ff0000]cd [COLOR=#008000](Name of folder)[/COLOR][/COLOR]
- Downloading minecraft_server.jar
Code:
[COLOR=#ff0000]wget https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft_server.jar[/COLOR]
- Giving premissions to minecraft_server.jar
Code:
[COLOR=#ff0000][I]chmod +x minecraft_server.jar[/I][/COLOR]
- Running Screen.
Code:
[COLOR=#ff0000]screen[/COLOR]
- Starting minecraft server. (1024 is replaced by the amount of ram you want/limited to)
Code:
[COLOR=#ff0000][I]java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui[/I][/COLOR]
- Stopping your server (while running server)
Code:
[COLOR=#ff0000]stop[/COLOR]
- Exiting screen by (holding ctrl + a + b)
- Editing your server properties
Code:
[COLOR=#ff0000]vi server.properties[/COLOR]
- Press i to enter Insert Mode.
- Press Esc to exit Insert Mode.
- Press or paste :x to save and exit.
- Re-entering Screen Mode
Code:
[COLOR=#ff0000][I]screen -r[/I][/COLOR]
- Restarting server
Code:
[COLOR=#ff0000][I]java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui[/I][/COLOR]
Now when ever you need to edit,start, or stop the server just login to your new account for minecraft!
FAQ
- Can't connect to server.
Code:
[COLOR=#FF8C00]Redo step 8 and 9[/COLOR]
- How do I add more ram?
Code:
[COLOR=#FF8C00]Either upgrade your vps or read over step 11[/COLOR]
- How do I use tekkit or craftbukkit?
Code:
[COLOR=#FF8C00]Use WinSCP and navigate to your minecraft folder and replace the minecraft_server.jar with tekkit/craftbukkit jar and renaming it to minecraft_server.jar[/COLOR]
- must have mode 777 error
Code:
[COLOR=#FF8C00]Enter [/COLOR][COLOR=#ff0000]chmod g+s /usr/bin/screen[/COLOR][COLOR=#FF8C00] in SSH client[/COLOR]
If you have any issue with this guide please leave a message below and I'll fix it once I see it.
Last edited: