Hello ladies and gentlemen i’m cohen from phoenix star yt and welcome to a very different kind of video this is a tutorial on how you can set up your own minecraft server inside of a vps or a virtual private server a virtual private server is a server that is running in the cloud And it’s going to allow you to store or set up all kinds of very neat little projects and things that you want to run from within the cloud and why exactly am i using a vps for this well a vps is nice because it allows you to run A bungee cord network which i will get to in a later video but for the time being let’s just uh get started with a regular micro server so you get an idea of how that is going to work so there are a few things that we’re Going to need first of all we’re going to need an actual vps for this and what you’re also going to need is a little program called putty which is what i’m going to use for this entire video uh so what is this this is a ssh and telnet client That allows you to connect to your vps and run it in a little command prompt like this so um what this is going to do for you it’s basically exactly like what you would find on say the command prompt on windows or the terminal in mac os and linux so That is basically it is and uh you are going to use this to browse through the file uh the file explorer thing um the file system is what it’s called uh of your linux environment because yes this uh uses a linux environment to run this particular one is using 1804 but you can also install uh something like debian or i believe some vps is even support full windows or manjaro um that’s going to depend greatly on what vps you’re going to get though i’m using ubuntu 1804 on this a little bit outdated but it still works Wonderfully and body and putty is what i’m going to use uh for it and uh if you want to um uh connect to your vps it is just as simple as typing in the ip address that you receive in your email from the vps service and Click connect type in root type in your password and you’re good to go so putty is what i’m going to use to actually um connect to my vps server but we’re not there yet there is also something else that you’re going to need to even work with the file system inside Of your linux environment and the program that i’m going to use for this is winscp why win scp because it’s similar to something like what i’m going to show you right now it’s some it’s similar to something like this this is filezilla and filezilla is pretty much the exact same thing as Win scp but i found winscp is a lot more stable than filezilla and it’s going to be a lot more straightforward and a lot uh better to work with than something like filezilla of course um it’s entirely up to you what you’re going to use uh to browse through the file system of Your linux environment inside of putty but i greatly recommend you use winscp for this one great thing about win sap also is what i’m going to show you right now you see this right so i’m going to close out of this and win sap actually allows you to make a desktop shortcut to Uh to your server right here so i can open this and i immediately have the file system of my uh vps to my disposal so i can immediately work with it uh of course you can very easily start up a new session if you don’t have a Um a server on your desktop you can open winscp here and you immediately get this on your screen you can just uh connect to your vps with this type in your address your username and your password and you’re good to go but that’s not what we’re going to do in This very video because i already have the microserver on my desktop so we’re going to work with this this is what we’re going to put in uh the most of our work for the migrant server that we’re gonna set up so the very first thing that we’re gonna do Is we’re gonna make a new folder in here so what you want to do is you right click here you go to new folder or you can just hit f7 on your keyboard and we are going to call this uh folder tutorial i already have a um a folder for just The micro server that i’m running for the public of which the ip address will be in the description down below and i also have a test server that i primarily use to test plugins and stuff like that in but for the purpose of this video i’m going to make an entirely new folder Called tutorial i’m opening this up and the very first thing that we’re going to need to do is we’re going to uh download a spigot or a craft bucket that is compatible with 1.17 because 1.17 is the latest version available so we want our server to run on that So i have a spigot 1.17 file right here what you want to do is you want to hold it and drag it to the right and now the file is being uploaded into our vps now uploading your files to your vps takes a little while uh it kind of depends on How big the files are that you’re going to download or upload to your vps or to your computer but uh because this is not the biggest file in the world i think it’s like 44 megabytes actually it says it right here 44 megabytes uh so that’s not too bad but there are Also times where i had to download uh folders of like 10 gigabytes to my computer uh for backup reasons so i can run it on my dps but that’s an entirely different story for another day so what we want to do now is we want to rename this file To server.jar and i’m going to show you right now so i’m going to put this to the right real quick and what i’m going to do is i’m going to open this file right here so uh this is a run.bat file that you can run on your computer Uh if you’re running something like windows you can easily run the run.bat file from within your fio explorer and it will open a command prompt and whatnot uh linux works a little bit differently so what you need to do is you would have to install uh java inside of your linux environment And i’ll leave a bunch of tutorials and stuff in the description down below so you can see how you can do that i already have java installed so i’m not going to do that on here but basically what you want to do is you want to Take this code this little line of code that i’m also going to leave in the description in case you’re going to need it um so you want to take this you copy it you open up putty so the first thing that we’re going to do is we’re going to type in cd Tutorial so now we are mounted into our tutorial folder here and what we want to do now is that if you have java installed you type in sudo and you right click and then you can see that the entire code that i just copied has been pasted onto the command line you hit Enter and now it’s loading its libraries and it’s going to put a bunch of stuff into this folder right here so i’m just going to uh put these two side to side so you can see exactly what is going on and as you can see i already have Uh had a server running over here and the reason why i had this running uh before i even started recording is because i’m setting up a creative server for people to join so that they could build whatever they want on there so we are getting an Error uh saying that we need to accept the eula or agree to the eula for the microsoft to even be able to run and uh you can’t see any of the files in this folder right now but you will after you refresh the folder by clicking this button or hitting ctrl R and now you will see all of these files right here so we see this joola.txt and what we want to do is we want to open it we uh put we set the ula to true we save it and now we can close this and we can run the entire command again And what it’s going to do right now is it’s going to generate a world and it’s going to generate everything that the migrate server needs to run properly and this can take a few minutes so i’m just gonna cut it from here and we’ll be back As soon as everything is up and running all right so the server is up and running right now and what we can do now is we can refresh this folder again and now you will find all of the folders you’re going to need to get a proper server running so Uh what we can do now from here is we can uh mess around with this but what i want to do first is i want to make sure that the server is actually working so i have minecraft open right here and now what i can do Is i can uh join the micro server right here i already had the ip added to my game before i even thought about joining the server but if you want to add your server you can just throw in the ip address that you get with the vps And you can put in the server port and then you can join it right here and then it should say a micro server and you can hit join server and then you should be able to join the server which if everything went right yeah that is looking Very promising so this is what should happen when you have a minecraft server ready to run now uh from here on out i can just play the game the way that it’s intended uh intel in the blue i can’t talk the way that it’s intended to be So we can walk around we can uh chow some trees down over there we have a pretty good looking world actually for this uh this server i would keep this if um uh if this wasn’t a tutorial server and i had to throw it away uh afterwards but You know this is actually not looking too bad i would really much uh like for a world like this to be in my own minecraft server but that is not where we’re going to uh to do today so what we’re going to do from here actually is i’m going to Make this a little bit smaller and what we’re going to do now is we’re going to run the help command in the uh in this command prompt here as you can see it is behaving exactly as it should when you’re running a micro server from within a command prompt on your pc So what we can do from here is we can go op phoenix star oh i can’t type phoenix star yt and now we can and now you should see made phoenix ryt a server operator and now i can go to creative mode i can take another right sword and i can dominate Everything and everyone that is coming into my way but yeah this is the kind of thing that you can do when you have a vps server up and running uh it is very simple to do this kind of thing but there is one thing to consider if you Are running a micro server inside of a vps so we have this um this putty session open right but what happens when we close it what happens when we hit the x we hit okay the server gets closed so how are we going to prevent this Well there are several ways you can do this there are some minecraft server hosts that offer the option to run a vps from either their regular server console or they have the exact same method they that i have right here with the putty vps and everything uh So they can so you can run a pederodectol uh host in there i don’t have that in this particular case so i would have to do something different and i don’t want to open my outlook what the frick is this so what i want to do is i want to run putty again I’m going to open my server i’m going to log in using my route and using my password that was not my password this is my password so now that i have this running what do we want to do now well we are going to use a program called screen And what exactly is screen well screen is a program that allows you to keep a section running uh from the cloud so this is very much what i would recommend using if you are going to run a minecraft server inside of a vps and you have to use this method Uh so what we’re going to do from here is we are going to start up the microserver again cd tutorial and then we’re going to run the exact same command that i just ran the migrate server is going to start up and if all went well if i type it if i Type in control a plus d it should be uh closing the session but it is not going to completely shut it down i’ll show you what i mean in just a second when the server is starting back up so allow the server to start up again And i’ll be back in a sec alright so with the server running again what i can do now is i can join the server again from here and here’s where the really interesting part comes in so uh the uh so screen uses a uh so a number of Key commands that you can run inside of the command line so there are several that you can use for this and the one that we’re going to use for this particular instance is ctr d and you can see that the uh that the screen is detached from this point right here dot vps And what we can do now is we can type in screen dash ls and it’s going to show you a list of all of the screen sessions that you have opened inside of it so what we can do now is we can run screen dash r and then we can run this one And it’s completely reattached the session that i just had running so this is a uh pretty pretty hectic uh thing to do uh it’s not the most ideal situation to be in if you had to do it like this but this is the only method that i have of uh Keeping the server running 24 7. it could cause some issues though i’ve had some instances where i had to completely restart the server manually because it just randomly shut down for whatever reason so that is one thing to keep in mind if you’re going to do the exact same thing That i just did it’s not that big of a deal but it is still something worth considering if you’re going to run a minecraft server the way that i’m doing it but uh yeah that is very much how you set up a minecraft server inside of a Vps uh next time what i’m going to be doing is i’m going to show you how you can run a minecraft server inside of a bungee cord network how you can connect multiple servers inside of one bungee cord network and how you can run it inside of the vps As well because i think that is going to be very interesting for people who want to run a bungee cord server themselves inside of a vps and yes i do recommend you run a dps if you want to set up a bungee cord network and i’m going to explain that in the Next video but until then uh i think that’s been it for this tutorial i hope you enjoyed it if you did drop a like subscribe to the phoenix starbucks channel and i hope to see you in the next one thank you very much for watching and stay passionate let’s go Video Information
This video, titled ‘How to set up a Minecraft server in a VPS’, was uploaded by PhoenixStarYT on 2021-07-16 12:27:29. It has garnered 2393 views and 43 likes. The duration of the video is 00:17:42 or 1062 seconds.
Install Screen on Ubuntu 18.04: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-screen-on-an-ubuntu-cloud-server Install Java 16 on Ubuntu 18.04: https://ubuntuhandbook.org/index.php/2021/03/oracle-java-16-released-install-ubuntu-20-04/ Download putty: https://www.putty.org/ Download WinSCP: https://winscp.net/eng/download.php Use this code to start up your Minecraft server: sudo java -Xms1024M -jar server.jar nogui
Follow me on Twitter: https://twitter.com/PhoenixStarYT