Creating a Minecraft server is easy. Login to your new CentOS 7 1GB RAM VPS Server at Vultr and install Java 1.6.0 Open JDK.
ssh [email protected]
[root@vultr ~]# yum install java-1.6.0-openjdk
<some output here>
Is this ok [y/N]: y
Open the Minecraft server port in
firewall-cmd --zone=public --permanent --add-port=25565/tcp
Make a user run your Minecraft server under. This is for security purposes as it is not good practice to run a Minecraft server as root.
#set a secure password.
#this allows you to run screen while su'd from root for the next step
chown mcserver `tty`
Now lets change users and install Minecraft! Change the
wget URL accordingly for newer versions of Minecraft.
su - mcuser
wget -O minecraft_server.jar https://launcher.mojang.com/v1/objects/1b557e7b033b583cd9f66746b7a9ab1ec1673ced/server.jar
chmod +x minecraft_server.jar
echo "eula=true" > eula.txt
#start your Minecraft Server
java -Xmx5376M -Xms5376M -jar minecraft_server.jar nogui
Congratulations, your Minecraft server is now up and running on your high-performance SSD VPS server!
To install on a 768MB VPS follow the same commands above but change the last java command to:
java -Xmx3840M -Xms3840M -jar minecraft_server.jar nogui
If you require more players (and thus more RAM) you just launch a larger instance and then simply subtract 256M from the amount of RAM your instance has allocated. For example, a 4096 instance would launch with
#add user Type whitelist add “USERNAME”
Centos Linux delete all files in a folder or directory
You need to pass the following options:
rm -rf dir1
rm -rf /path/to/dir/
rm -rf /home/vivek/oldschoolpics/
Command to delete and remove files
rm filename OR unlink filename