You can clear your bash history like this:
#cat /dev/null > ~/.bash_history && history -c && exit or
#cat /dev/null > ~/.bash_history erases the content of the ~/.bash_history file.
history -c clears the current terminal history.
First, you need to log in SSH or Putty to your server
then use command passwd to change the password. below example is changed the root password for a Centos:
[root @ VM ~]# passwd (Changing password for user root.)
New password: (You should type your new password here)
Retype new password: (You should retype your new password again)
[root @ VM ~]# all authentication tokens updated successfully. (Your password change successfully)
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@example.com [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 firewall-cmd --reload
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.
adduser mcuser #set a secure password. passwd mcpassword #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 mkdir minecraft cd minecraft wget -O minecraft_server.jar https://launcher.mojang.com/v1/objects/1b557e7b033b583cd9f66746b7a9ab1ec1673ced/server.jar chmod +x minecraft_server.jar screen 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”
You need to pass the following options:
rm -rf dir1 rm -rf /path/to/dir/ rm -rf /home/vivek/oldschoolpics/
rm filename OR unlink filename
You’ll need the following system requirements in order to run Minecraft Server:
For those wondering how to increase server performance, you may need a server with more RAM or a more powerful CPU to keep up with multiplayer server demands. Check out our Custom Dedicated Server solutions for more info on larger gaming servers.
Visit the Java download site
Download the latest version of Java for Windows 10. Open the .EXE file and click Install. Restart your computer once installation has completed. We’d always recommend using the latest version of java for the best performance and you should keep java you are running up to date.
Visit the Minecraft Server website and download the Minecraft server version of the Minecraft Vanilla JAR file to your computer. When you download the Minecraft Server jar, it will be saved by default to your Downloads folder. You can also download Minecraft Server from another project like Forge or Bukkit, but the next steps of running those jars and the install may vary.
Navigate to your Downloads folder and move the Minecraft folder to your desired location. We’re going to drag it to the desktop, but we would recommend a dedicated folder for Minecraft.
Double click on the Minecraft JAR file. This will extract some files we need before we can start the server.
We’ll start by adjusting the configuration files before starting the server. The first file to open is the Minecraft EULA. The EULA is the document you are agreeing to when running the Minecraft Server.
To accept the end-user license agreement, open the EULA txt file and update eula=false to eula=true. Save the file.
To adjust server settings, open the server properties file and save the file once the necessary changes have been made. If you’re wondering how to adjust server settings, the server properties file determines key server settings like server port, memory, and in-game settings. Port 25565 is the default server port.
Open the Minecraft server file again to get the server java file running.
Click Allow Access
The Minecraft Server is now installed and running and a stats window will appear. As we can see in the window, this particular local PC can’t keep up with the resources required to run a multiplayer server, so we’ll be setting this up on a cloud server with ServerMania for a better experience.
Now that your server is installed, you can connect to it from Minecraft. Launch Minecraft and select Multiplayer.
Click Add Server
Enter server details and click Done. You can obtain the Minecraft server IP address by going to Google and searching “what’s my IP”. You may need to open up access to port 25565 on your router if your friends are unable to connect. Keep in mind that your home IP address may change frequently, so you will need to provide them with the updated connection details when this happens.