{"id":3464,"date":"2023-11-15T15:39:16","date_gmt":"2023-11-15T07:39:16","guid":{"rendered":"https:\/\/www.servergigabit.com\/guide\/?post_type=kb&#038;p=3464"},"modified":"2026-01-09T16:29:04","modified_gmt":"2026-01-09T08:29:04","slug":"how-to-setup-a-minecraft-forge-server-on-a-vps","status":"publish","type":"kb","link":"https:\/\/www.servergigabit.com\/guide\/kb\/how-to-setup-a-minecraft-forge-server-on-a-vps","title":{"rendered":"How to Setup a Minecraft Forge Server on a VPS?"},"content":{"rendered":"<figure class=\"wp-block-image size-full\"><picture><img fetchpriority=\"high\" decoding=\"async\" class=\"wp-image-18024 webpexpress-processed\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/blog-head_how2-setup-a-minecraft-forge-server-on-a-vps1.jpg\" sizes=\"(max-width: 1200px) 100vw, 1200px\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/blog-head_how2-setup-a-minecraft-forge-server-on-a-vps1.jpg 1200w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/blog-head_how2-setup-a-minecraft-forge-server-on-a-vps1-600x315.jpg 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/blog-head_how2-setup-a-minecraft-forge-server-on-a-vps1-768x403.jpg 768w\" alt=\"How to Setup a Minecraft Forge Server on a VPS (head image)\" width=\"1200\" height=\"630\" \/><\/picture><\/figure>\n<p>&nbsp;<\/p>\n<p>Setting up a Forge server on a<a href=\"https:\/\/www.servergigabit.com\/minecraft-vps\/\"> Virtual Private Server (VPS)<\/a> is one game-changing option for avid Minecraft players who are always looking for ways to improve their gaming experience. This tutorial will walk you through the process of configuring a Minecraft Forge Server on a virtual private server (VPS), going over all the requirements to make sure everything goes smoothly.<\/p>\n<h2 id=\"h-preparing-your-vps\" class=\"wp-block-heading\"><span id=\"preparing-your-vps\" class=\"uag-toc__heading-anchor\"><\/span><strong>Preparing Your VPS<\/strong><\/h2>\n<h3 id=\"h-vps-hosting-options\" class=\"wp-block-heading\"><span id=\"vps-hosting-options\" class=\"uag-toc__heading-anchor\"><\/span><strong>VPS Hosting Options<\/strong><\/h3>\n<p>Before diving into the setup process, it is necessary to choose the right VPS hosting provider that aligns with your needs and budget. We recommend considering the Server Gigabit <a href=\"https:\/\/billing.servergigabit.com\/cart.php?a=add&amp;pid=19\">Minecraft VPS 2<\/a> for its resources, making it ideal for hosting a Minecraft Forge server with mods and playing together with friends.<\/p>\n<h3 id=\"h-accessing-your-vps\" class=\"wp-block-heading\"><span id=\"accessing-your-vps\" class=\"uag-toc__heading-anchor\"><\/span><strong>Accessing Your VPS<\/strong><\/h3>\n<p>Getting access to your VPS is the next step after selecting it. This entails using SSH (Secure Shell) to connect to your server. For a comprehensive guide, see our article <a href=\"https:\/\/www.servergigabit.com\/blog\/ssl-certificate\/decoding-ssh-encryption-ports-and-connections-explained\">&#8220;Decoding SSH: Encryption, Ports, and Connections Explained.&#8221;<\/a> In order to make sure you have the required permissions, you must also log in as the root user.<\/p>\n<h3 id=\"h-system-requirements-and-optimization\" class=\"wp-block-heading\"><span id=\"system-requirements-and-optimization\" class=\"uag-toc__heading-anchor\"><\/span><strong>System Requirements and Optimization<\/strong><\/h3>\n<p>To host a Minecraft Forge server, make sure your VPS satisfies the system requirements. Generally speaking, a VPS with a respectable CPU and at least 2GB of RAM is advised. As previously stated, our VPS satisfies these specifications thanks to its 16 GB of RAM and 6 CPU cores, providing a fluid gaming experience for friends and mods without breaking the bank.<\/p>\n<h2 id=\"h-installing-other-minecraft-versions\" class=\"wp-block-heading\"><span id=\"installing-other-minecraft-versions\" class=\"uag-toc__heading-anchor\"><\/span><strong>Installing Other Minecraft Versions<\/strong><\/h2>\n<h3 id=\"h-how-to-install-forge-on-a-linux-vps-pre-1-16-manual\" class=\"wp-block-heading\"><strong>How to Install Forge on a Linux VPS (Pre-1.16, Manual)<\/strong><\/h3>\n<p>Let us first ensure that your VPS has the necessary packages installed before proceeding with the Forge installation:<\/p>\n<p><strong>Screen:<\/strong><\/p>\n<p>By offering a virtual terminal session, Screen enables you to run your Minecraft server in the background. To install it, use:<\/p>\n<pre class=\"wp-block-code\"><code>sudo apt-get update<\/code><\/pre>\n<pre class=\"wp-block-code\"><code>sudo apt-get install screen<\/code><\/pre>\n<p><strong>Wget:<\/strong><\/p>\n<p>We&#8217;ll download the required files with the aid of the command-line tool Wget. To install it, use:<\/p>\n<pre class=\"wp-block-code\"><code>sudo apt-get install wget<\/code><\/pre>\n<h3 id=\"h-install-java-8\" class=\"wp-block-heading\"><span id=\"install-java-8\" class=\"uag-toc__heading-anchor\"><\/span><strong>Install Java 8<\/strong><\/h3>\n<p>Different Minecraft versions may require specific Java versions.<\/p>\n<figure class=\"wp-block-table\">\n<table>\n<tbody>\n<tr>\n<td>Minecraft Version<\/td>\n<td>Required Java Version<\/td>\n<\/tr>\n<tr>\n<td>1.7.10 \u2013 1.16.5<\/td>\n<td>Java 8<\/td>\n<\/tr>\n<tr>\n<td>1.17.x<\/td>\n<td>Java 16<\/td>\n<\/tr>\n<tr>\n<td>1.18+<\/td>\n<td>Java 17<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>For this Minecraft version, we will need to install Java 8, like below:<\/p>\n<pre class=\"wp-block-code\"><code>sudo apt update<\/code><\/pre>\n<pre class=\"wp-block-code\"><code>sudo apt install openjdk-8-jdk<\/code><\/pre>\n<h2 id=\"h-downloading-and-installing-forge-server\" class=\"wp-block-heading\"><span id=\"downloading-and-installing-forge-server\" class=\"uag-toc__heading-anchor\"><\/span><strong>Downloading and Installing Forge server<\/strong><\/h2>\n<p>Now we need to download all the files needed to run your own Forge server.<\/p>\n<p>Start by creating a dedicated directory:<\/p>\n<pre class=\"wp-block-code\"><code>mkdir forge_server<\/code><\/pre>\n<p>Now, navigate to the directory:<\/p>\n<pre class=\"wp-block-code\"><code>cd forge_server<\/code><\/pre>\n<p>Finally, download the Forge server jar:<\/p>\n<pre class=\"wp-block-code\"><code>wget &lt;Forge-Server-URL&gt;<\/code><\/pre>\n<p><em>Replace \u201d Forge-Server-URL\u201c with the actual domain of the version you want to download. The URLs can be found on the\u00a0<\/em><a href=\"https:\/\/files.minecraftforge.net\/net\/minecraftforge\/forge\/\" target=\"_blank\" rel=\"noreferrer noopener\"><em>Forge official website<\/em><\/a><em>.<\/em><\/p>\n<h2 id=\"h-install-forge-server\" class=\"wp-block-heading\"><span id=\"install-forge-server\" class=\"uag-toc__heading-anchor\"><\/span><strong>Install Forge-Server:<\/strong><\/h2>\n<p><strong>Now run the installer with:<\/strong><\/p>\n<pre class=\"wp-block-code\"><code>java -jar [name_of_the_forge.jar] --installServer<\/code><\/pre>\n<p><em>Replace [name_of_the_forge.jar] with the actual name of the forge.jar you have just downloaded!<\/em><\/p>\n<h2 id=\"h-creating-a-starting-script-amp-launching-server\" class=\"wp-block-heading\"><span id=\"creating-a-starting-script-launching-server\" class=\"uag-toc__heading-anchor\"><\/span><strong>Creating a Starting Script &amp; Launching Server<\/strong><\/h2>\n<p>Now, let us create a script with which we can start our Minecraft Forge server:<\/p>\n<p>First, create the script file with this command:<\/p>\n<pre class=\"wp-block-code\"><code>nano start.sh<\/code><\/pre>\n<p>And paste in the following content:<\/p>\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\u00a0\r\n\r\nscreen -S Minecraft java -Xmx8G -Xms512M -jar [Name_of_forge.jar]<\/code><\/pre>\n<p><em>Save you changes with\u00a0[CTRL]\u00a0+\u00a0[O]\u00a0and exit the editor with\u00a0[CTRL]\u00a0+\u00a0[X]\u00a0<\/em><\/p>\n<p>Pro-Tip:\u00a0\u00a0If necessary, please modify:<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Xms for the minimum amount of RAM you want to allocate<\/li>\n<li>Xmx for the maximum number of RAM you want to allocate<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Now, let us make it executable with the help of this command:<\/p>\n<pre class=\"wp-block-code\"><code>chmod +x start.sh<\/code><\/pre>\n<p>Quickly accept the EULA (End User License Agreement) by creating a file called \u201ceula.txt\u201d with this command:<\/p>\n<pre class=\"wp-block-code\"><code>nano eula.txt<\/code><\/pre>\n<p>And paste in the following content:<\/p>\n<pre class=\"wp-block-code\"><code>eula=true<\/code><\/pre>\n<p><em>Now save you changes with\u00a0[CTRL]\u00a0+\u00a0[O]\u00a0and exit the editor with\u00a0[CTRL]\u00a0+\u00a0[X]\u00a0<\/em><\/p>\n<p>It is finally time to launch the server:<\/p>\n<pre class=\"wp-block-code\"><code>.\/start.sh<\/code><\/pre>\n<h2 id=\"h-how-to-install-minecraft-forge-on-a-linux-vps-1-16-manual\" class=\"wp-block-heading\"><span id=\"how-to-install-minecraft-forge-on-a-linux-vps-116-manual\" class=\"uag-toc__heading-anchor\"><\/span><strong>How to Install Minecraft Forge on a Linux VPS (1.16+, Manual)<\/strong><\/h2>\n<p>Again, before diving into the Forge installation, ensure your VPS is equipped with the necessary tools. For this,\u00a0 install required packages:<\/p>\n<p><strong>Screen:<\/strong><\/p>\n<p>Screen provides a virtual terminal session, allowing your Minecraft server to run in the background. Install it using:<\/p>\n<pre class=\"wp-block-code\"><code>sudo apt-get update<\/code><\/pre>\n<pre class=\"wp-block-code\"><code>sudo apt-get install screen<\/code><\/pre>\n<p><strong>Wget:<\/strong><\/p>\n<p>Wget, a command-line utility, will help us download necessary files. Install it using:<\/p>\n<pre class=\"wp-block-code\"><code>sudo apt-get install wget<\/code><\/pre>\n<h3 id=\"h-install-java-17\" class=\"wp-block-heading\"><span id=\"install-java-17\" class=\"uag-toc__heading-anchor\"><\/span><strong>Install Java 17<\/strong><\/h3>\n<p>Different Minecraft versions may require specific Java versions.<\/p>\n<figure class=\"wp-block-table\">\n<table>\n<tbody>\n<tr>\n<td>Minecraft Version<\/td>\n<td>Required Java Version<\/td>\n<\/tr>\n<tr>\n<td>1.7.10 \u2013 1.16.5<\/td>\n<td>Java 8<\/td>\n<\/tr>\n<tr>\n<td>1.17.x<\/td>\n<td>Java 16<\/td>\n<\/tr>\n<tr>\n<td>1.18+<\/td>\n<td>Java 17<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>For this Minecraft version, we will need to install Java 17.<\/p>\n<pre class=\"wp-block-code\"><code>sudo apt update<\/code><\/pre>\n<pre class=\"wp-block-code\"><code>sudo apt-get install openjdk-17-jre-headless<\/code><\/pre>\n<h3 id=\"h-downloading-and-installing-forge-server-0\" class=\"wp-block-heading\"><span id=\"toc_0.24662777611423747\" class=\"uag-toc__heading-anchor\"><\/span><strong>Downloading and Installing Forge server<\/strong><\/h3>\n<p>Now we need to download all the files needed to run your own Forge server.<\/p>\n<p>Start by creating a dedicated directory:<\/p>\n<pre class=\"wp-block-code\"><code>mkdir forge_server<\/code><\/pre>\n<p>Now, navigate to the directory:<\/p>\n<pre class=\"wp-block-code\"><code>cd forge_server<\/code><\/pre>\n<p>Finally, download the Forge server jar:<\/p>\n<pre class=\"wp-block-code\"><code>wget &lt;Forge-Server-URL&gt;<\/code><\/pre>\n<p><em>Replace \u201cForge-Server-URL\u201c with the actual domain of the version you want to download. The URLs can be found on\u00a0<\/em><a href=\"https:\/\/files.minecraftforge.net\/net\/minecraftforge\/forge\/\" target=\"_blank\" rel=\"noreferrer noopener\"><em>Forge\u2019s official website<\/em><\/a><em>.<\/em><\/p>\n<h3 id=\"h-install-forge-server-0\" class=\"wp-block-heading\"><span id=\"toc_0.662297478578846\" class=\"uag-toc__heading-anchor\"><\/span><strong>Install Forge-Server:<\/strong><\/h3>\n<p>Now run the installer with:<\/p>\n<pre class=\"wp-block-code\"><code>java -jar [name_of_the_forge.jar] --installServer<\/code><\/pre>\n<p><em>Replace [name_of_the_forge.jar] with the actual name of the forge.jar you have just downloaded!<\/em><\/p>\n<h3 id=\"h-creating-a-starting-script-amp-launching-server-0\" class=\"wp-block-heading\"><span id=\"toc_0.9033450418782623\" class=\"uag-toc__heading-anchor\"><\/span><strong>Creating a Starting Script &amp; Launching Server<\/strong><\/h3>\n<p>Now, let us create a starting script with which we can start our Minecraft Forge server.\u00a0 And here is the main difference between Forge Pre-1.16 and now \u2013 The file structure.<\/p>\n<p>To change the amount of RAM that you want to allocate to your Minecraft Forge server, open the files called \u201cuser_jvm_args.txt\u201d with this command:<\/p>\n<pre class=\"wp-block-code\"><code>nano user_jvm_args.txt<\/code><\/pre>\n<p>To set the minimum &amp; the maximum amount of RAM add these two lines:<\/p>\n<pre class=\"wp-block-code\"><code>-Xms512M\u00a0\r\n\r\n-Xmx8G<\/code><\/pre>\n<p><em>Save you changes with\u00a0[CTRL]\u00a0+\u00a0[O]\u00a0and exit the editor with\u00a0[CTRL]\u00a0+\u00a0[X]\u00a0<\/em><\/p>\n<p>If necessary, please modify:<\/p>\n<ul>\n<li>Xms for the minimum amount of RAM you want to allocate<\/li>\n<li>Xmx for the maximum number of RAM you want to allocate<\/li>\n<\/ul>\n<p>Now, let us create a start script.<\/p>\n<p>Let us use the template that the installer already created \u2013 But let us rename it with this command:<\/p>\n<pre class=\"wp-block-code\"><code>mv run.sh start.sh<\/code><\/pre>\n<p>Now open the file with the nano-editor:<\/p>\n<pre class=\"wp-block-code\"><code>nano start.sh<\/code><\/pre>\n<p>Now, add the following content\u00a0in front of the content of the last line:<\/p>\n<p>After that it should look similar to this:<\/p>\n<pre class=\"wp-block-code\"><code>screen -S Forge java @user_jvm_args.txt @libraries\/net\/minecraftforge\/forge\/1.20.1-47.2.1\/unix_args.txt \"$@\"\u00a0<\/code><\/pre>\n<p><em>Please keep in mind that your forge version number may differ based on the version you have installed!<\/em><\/p>\n<p>Now, let us make it executable with the help of this command:<\/p>\n<pre class=\"wp-block-code\"><code>chmod +x start.sh<\/code><\/pre>\n<p>Let us quickly accept the EULA by creating a file called \u201ceula.txt\u201d with this command:<\/p>\n<pre class=\"wp-block-code\"><code>nano eula.txt<\/code><\/pre>\n<p>And paste in the following content:<\/p>\n<pre class=\"wp-block-code\"><code>eula=true<\/code><\/pre>\n<p><em>Now save you changes with\u00a0[CTRL]\u00a0+\u00a0[O]\u00a0and exit the editor with\u00a0[CTRL]\u00a0+\u00a0[X]\u00a0<\/em><\/p>\n<p>It is finally time to launch the server:<\/p>\n<pre class=\"wp-block-code\"><code>.\/start.sh<\/code><\/pre>\n<p>By using these commands, you will successfully install Forge on your Linux VPS, accommodating both older and newer Minecraft versions. In the next chapter, we will explore essential configurations to optimize your Forge server for the best gaming experience.<\/p>\n<h2 id=\"h-installing-forge-through-an-installer-script\" class=\"wp-block-heading\"><span id=\"installing-forge-through-an-installer-script\" class=\"uag-toc__heading-anchor\"><\/span><strong>Installing Forge through an Installer Script<\/strong><\/h2>\n<p>This method is great for anyone who wants to set up their own Spigot server but found the steps above a bit tricky.<\/p>\n<p>We will use \u201c<a href=\"https:\/\/github.com\/officialrealTM\/mcserver_installer\" target=\"_blank\" rel=\"nofollow noopener\">mcserver_installer<\/a>\u201d by realTM \u2013 an open\u2013source, powerful and extensive Bash-Script to install Minecraft servers on your Linux server.<\/p>\n<p>More information and the source-code of this project can be found on the official GitHub page here:\u00a0<a href=\"https:\/\/github.com\/officialrealTM\/mcserver_installer\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/github.com\/officialrealTM\/mcserver_installer<\/a><\/p>\n<h3 id=\"h-prerequisites-requirements\" class=\"wp-block-heading\"><span id=\"prerequisitesrequirements\" class=\"uag-toc__heading-anchor\"><\/span><strong>Prerequisites\/Requirements<\/strong><\/h3>\n<ul>\n<li>A Linux server with a supported Linux distribution (Debian &amp; Ubuntu) and enough resources (We recommend at least our <a href=\"https:\/\/www.servergigabit.com\/minecraft-vps\/\">Minecraft VPS<\/a>)<\/li>\n<li>Root &amp; SSH Access to your Linux server<\/li>\n<\/ul>\n<h3 id=\"h-downloading-the-script\" class=\"wp-block-heading\"><span id=\"downloading-the-script\" class=\"uag-toc__heading-anchor\"><\/span><strong>Downloading the Script<\/strong><\/h3>\n<p>To download the script, the git-package needs to be installed on your server. To install it use:<\/p>\n<pre class=\"wp-block-code\"><code>apt install git \u2013y<\/code><\/pre>\n<p>Now download the script with this command:<\/p>\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/officialrealTM\/mcserver_installer.git\u00a0\u00a0<\/code><\/pre>\n<h3 id=\"h-downloading-the-script\" class=\"wp-block-heading\"><strong>Running the Minecraft Spigot Installer Script<\/strong><\/h3>\n<p>After downloading the script go into its directory with this command:<\/p>\n<pre class=\"wp-block-code\"><code>cd mcserver_installer<\/code><\/pre>\n<p>And execute the script with this command:<\/p>\n<pre class=\"wp-block-code\"><code>.\/mcserver_installer.sh<\/code><\/pre>\n<p>When starting the script for the first time, it wants to install some required packages. Hit \u201cYes\u201d to continue.<\/p>\n<figure class=\"wp-block-image size-full\"><picture><source srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-33.png.webp 981w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-33-600x574.png.webp 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-33-768x735.png.webp 768w\" type=\"image\/webp\" sizes=\"(max-width: 981px) 100vw, 981px\" \/><img decoding=\"async\" class=\"wp-image-18045 webpexpress-processed\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-33.png\" sizes=\"(max-width: 981px) 100vw, 981px\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-33.png 981w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-33-600x574.png 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-33-768x735.png 768w\" alt=\"How to Setup a Minecraft Forge Server on a VPS (script inital startup)\" width=\"981\" height=\"939\" \/><\/picture><\/figure>\n<p>&nbsp;<\/p>\n<p>This process can take a few moments to finish.<\/p>\n<p>After the initial setup process, the script will ask you which type of Minecraft server you want to install. From now on this will be the menu you will get every time you start the script.<\/p>\n<h3 id=\"h-select-server-type\" class=\"wp-block-heading\"><span id=\"select-server-type\" class=\"uag-toc__heading-anchor\"><\/span><strong>Select Server Type<\/strong><\/h3>\n<figure class=\"wp-block-image size-full\"><picture><source srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-25.png.webp 983w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-25-600x573.png.webp 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-25-768x734.png.webp 768w\" type=\"image\/webp\" sizes=\"(max-width: 983px) 100vw, 983px\" \/><img decoding=\"async\" class=\"wp-image-18029 webpexpress-processed\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-25.png\" sizes=\"(max-width: 983px) 100vw, 983px\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-25.png 983w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-25-600x573.png 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-25-768x734.png 768w\" alt=\"How to Setup a Minecraft Forge Server on a VPS (script select server type)\" width=\"983\" height=\"939\" \/><\/picture><\/figure>\n<p>&nbsp;<\/p>\n<p>As you can see, this script can install Minecraft Vanilla, Forge, Spigot and Paper servers. In this case we will go with \u201cMinecraft Forge\u201d \u2013 so we use the up and down keys to navigate to \u201cMinecraft Forge\u201d and hit enter to select it.<\/p>\n<h3 id=\"h-select-the-major-version\" class=\"wp-block-heading\"><span id=\"select-the-major-version\" class=\"uag-toc__heading-anchor\"><\/span><strong>Select the Major Version<\/strong><\/h3>\n<p>Now it prompts us to select the major Minecraft version you want to run Spigot on:<\/p>\n<figure class=\"wp-block-image size-full\"><picture><source srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-26.png.webp 960w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-26-559x600.png.webp 559w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-26-768x824.png.webp 768w\" type=\"image\/webp\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-18031 webpexpress-processed\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-26.png\" sizes=\"(max-width: 960px) 100vw, 960px\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-26.png 960w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-26-559x600.png 559w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-26-768x824.png 768w\" alt=\"How to Setup a Minecraft Forge Server on a VPS (script select major minecraft version)\" width=\"960\" height=\"1030\" \/><\/picture><\/figure>\n<p>&nbsp;<\/p>\n<p>We will select the, as of today, newest version, which is 1.20 using the up and down keys again, followed by pressing enter.<\/p>\n<h3 id=\"h-installation-of-java-17\" class=\"wp-block-heading\"><span id=\"installation-of-java-17\" class=\"uag-toc__heading-anchor\"><\/span><strong>Installation of Java 17<\/strong><\/h3>\n<p>The script automatically detects that to run a Minecraft 1.20 server, Java 17 is required and asks you if you want to install it:<\/p>\n<figure class=\"wp-block-image size-full\"><picture><source srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-27.png.webp 977w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-27-600x579.png.webp 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-27-768x741.png.webp 768w\" type=\"image\/webp\" sizes=\"(max-width: 977px) 100vw, 977px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-18033 webpexpress-processed\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-27.png\" sizes=\"(max-width: 977px) 100vw, 977px\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-27.png 977w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-27-600x579.png 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-27-768x741.png 768w\" alt=\"Script: Install Java 17 on a VPS\" width=\"977\" height=\"943\" \/><\/picture><\/figure>\n<p>&nbsp;<\/p>\n<p>Hit \u201cYes\u201d to install it. This process will take a few moments to finish.<\/p>\n<h3 id=\"h-select-the-subversion\" class=\"wp-block-heading\"><span id=\"select-the-subversion\" class=\"uag-toc__heading-anchor\"><\/span><strong>Select the Subversion<\/strong><\/h3>\n<p>In the next screen you will be able to select the exact subversion:<\/p>\n<figure class=\"wp-block-image size-full\"><picture><source srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-28.png.webp 960w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-28-559x600.png.webp 559w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-28-768x824.png.webp 768w\" type=\"image\/webp\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-18035 webpexpress-processed\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-28.png\" sizes=\"(max-width: 960px) 100vw, 960px\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-28.png 960w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-28-559x600.png 559w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-28-768x824.png 768w\" alt=\"Script: Select Minecraft Subversion\" width=\"960\" height=\"1030\" \/><\/picture><\/figure>\n<p>&nbsp;<\/p>\n<p>In this case, for Minecraft Spigot 1.20 there are only two subversions available, 1.20 and 1.20.1. Confirm your entry by pressing enter again.<\/p>\n<h3 id=\"h-enter-forge-build\" class=\"wp-block-heading\"><span id=\"enter-forge-build\" class=\"uag-toc__heading-anchor\"><\/span><strong>Enter Forge Build<\/strong><\/h3>\n<p>Now you need to enter the exact Forge build number for the build you want to install:<\/p>\n<figure class=\"wp-block-image size-full\"><picture><source srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-29.png.webp 960w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-29-559x600.png.webp 559w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-29-768x824.png.webp 768w\" type=\"image\/webp\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-18036 webpexpress-processed\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-29.png\" sizes=\"(max-width: 960px) 100vw, 960px\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-29.png 960w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-29-559x600.png 559w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-29-768x824.png 768w\" alt=\"Script: Enter Forge Version\" width=\"960\" height=\"1030\" \/><\/picture><\/figure>\n<p>&nbsp;<\/p>\n<p>The build numbers can be found on the official\u00a0<a href=\"https:\/\/files.minecraftforge.net\/net\/minecraftforge\/forge\/\" target=\"_blank\" rel=\"nofollow noopener\">Forge website<\/a>.<\/p>\n<p>The build number for the latest build of Forge Minecraft 1.20.1 is \u201c<em>47.2.1<\/em>\u201d.<\/p>\n<figure class=\"wp-block-image size-full\"><picture><source srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-34.png.webp 1600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-34-600x292.png.webp 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-34-768x373.png.webp 768w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-34-1536x747.png.webp 1536w\" type=\"image\/webp\" sizes=\"(max-width: 1600px) 100vw, 1600px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-18047 webpexpress-processed\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-34.png\" sizes=\"(max-width: 1600px) 100vw, 1600px\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-34.png 1600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-34-600x292.png 600w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-34-768x373.png 768w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-34-1536x747.png 1536w\" alt=\"\" width=\"1600\" height=\"778\" \/><\/picture><\/figure>\n<p>&nbsp;<\/p>\n<p>So that is the number we will insert into the script:<\/p>\n<figure class=\"wp-block-image size-full\"><picture><source srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-30.png.webp 960w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-30-559x600.png.webp 559w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-30-768x824.png.webp 768w\" type=\"image\/webp\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-18039 webpexpress-processed\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-30.png\" sizes=\"(max-width: 960px) 100vw, 960px\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-30.png 960w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-30-559x600.png 559w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-30-768x824.png 768w\" alt=\"\" width=\"960\" height=\"1030\" \/><\/picture><\/figure>\n<p>&nbsp;<\/p>\n<p>Confirm this by pressing enter again.<\/p>\n<p>Now all needed files will be downloaded, installed, and moved to their right positions.<\/p>\n<h3 id=\"h-set-the-ram-of-the-minecraft-server\" class=\"wp-block-heading\"><span id=\"set-the-ram-of-the-minecraft-server\" class=\"uag-toc__heading-anchor\"><\/span><strong>Set the RAM of the Minecraft Server<\/strong><\/h3>\n<p>After the installation has finished, you can either select a pre-defined amount of RAM to allocate to your Minecraft server or set a custom amount.<\/p>\n<figure class=\"wp-block-image size-full\"><picture><source srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-31.png.webp 960w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-31-559x600.png.webp 559w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-31-768x824.png.webp 768w\" type=\"image\/webp\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-18043 webpexpress-processed\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-31.png\" sizes=\"(max-width: 960px) 100vw, 960px\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-31.png 960w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-31-559x600.png 559w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-31-768x824.png 768w\" alt=\"Script: Select RAM\" width=\"960\" height=\"1030\" \/><\/picture><\/figure>\n<p>&nbsp;<\/p>\n<p><em>Pro-Tip: If you do not want to run anything on the server except the Minecraft server, you can allocate up to 75% of the Linux server\u2019s RAM. In this example, our VPS M SSD has 16GB of RAM, so we could allocate a maximum of 12GB of RAM to the server. If you want to run other things on your Linux server besides the Minecraft server, we recommend you allocate no more than 50% of the RAM to the Minecraft server \u2013 so in our example, no more than 8GB.\u00a0<\/em><\/p>\n<h3 id=\"h-finished-installation\" class=\"wp-block-heading\"><span id=\"finished-installation\" class=\"uag-toc__heading-anchor\"><\/span><strong>Finished Installation<\/strong><\/h3>\n<p>After selecting the amount of RAM, your Minecraft server has been set up.<\/p>\n<figure class=\"wp-block-image size-full\"><picture><source srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-32.png.webp 740w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-32-600x348.png.webp 600w\" type=\"image\/webp\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-18041 webpexpress-processed\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-32.png\" sizes=\"(max-width: 740px) 100vw, 740px\" srcset=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-32.png 740w, https:\/\/contabo.com\/blog\/wp-content\/uploads\/2023\/10\/image-32-600x348.png 600w\" alt=\"Minecraft Installer Script: Finished Minecraft Forge Installation\" width=\"740\" height=\"429\" \/><\/picture><\/figure>\n<p>&nbsp;<\/p>\n<p>Your server has been saved in the displayed directory.<\/p>\n<p>To start it go to this directory. In our example use this command:<\/p>\n<pre class=\"wp-block-code\"><code>cd Servers\/Forge-1.20.1<\/code><\/pre>\n<p>To start the server, use this command:<\/p>\n<pre class=\"wp-block-code\"><code>.\/start.sh<\/code><\/pre>\n<p>Congrats! Your Minecraft Forge 1.20.1 server is up and running in just a few minutes! If you want to learn more about the other features of the script and how to use them check out the\u00a0<a href=\"https:\/\/github.com\/officialrealTM\/mcserver_installer\" target=\"_blank\" rel=\"noreferrer noopener\">official documentation<\/a>\u00a0of the script.<\/p>\n<h2 id=\"h-renting-a-minecraft-server-at-gportal\" class=\"wp-block-heading\"><span id=\"renting-a-minecraft-server-at-gportal\" class=\"uag-toc__heading-anchor\"><\/span><strong>Renting a Minecraft Server at GPORTAL<\/strong><\/h2>\n<p>For an effortless Minecraft server setup without the hassle of manual configurations, GPORTAL provides an ideal solution. Their user-friendly platform prioritizes gaming over server management, making it perfect for players seeking convenience.<\/p>\n<h3 id=\"h-benefits-of-choosing-gportal-server-rental\" class=\"wp-block-heading\"><span id=\"benefits-of-choosing-gportal-server-rental\" class=\"uag-toc__heading-anchor\"><\/span><strong>Benefits of Choosing GPORTAL Server Rental<\/strong><\/h3>\n<p>Renting from GPORTAL means skipping the complexities of manual setup and upkeep. Their intuitive platform caters to both beginners and seasoned users, offering seamless server management.<\/p>\n<h3 id=\"h-gportal-rental-process\" class=\"wp-block-heading\"><span id=\"gportal-rental-process\" class=\"uag-toc__heading-anchor\"><\/span><strong>GPORTAL Rental Process<\/strong><\/h3>\n<p>Visit <a href=\"https:\/\/www.g-portal.com\/en\" rel=\"nofollow noopener\" target=\"_blank\">GPORTAL&#8217;s website<\/a> and navigate their straightforward interface to select server specifications\u2014RAM, player slots, and more. Complete the configuration and initiate the rental process. In just a few minutes, your Minecraft server will be up and running.<\/p>\n<h3 id=\"h-advantages-of-gportal-hosting\" class=\"wp-block-heading\"><span id=\"advantages-of-gportal-hosting\" class=\"uag-toc__heading-anchor\"><\/span><strong>Advantages of GPORTAL Hosting<\/strong><\/h3>\n<p>Enjoy a hassle-free experience with GPORTAL&#8217;s user-friendly interface and dedicated customer support. Benefit from automated updates, ensuring your server operates on the latest version. It&#8217;s a managed hosting solution, perfect for casual or dedicated players seeking maximum enjoyment with minimal effort in the Minecraft world.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Setting up a Forge server on a Virtual Private Server (VPS) is one game-changing option for avid Minecraft players who are always looking for ways to improve their gaming experience. This tutorial will walk you through the process of configuring a Minecraft Forge Server on a virtual private server (VPS), going over all the requirements to make sure everything&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"kbtopic":[1099],"kbtag":[1246,1233],"class_list":["post-3464","kb","type-kb","status-publish","hentry","kbtopic-tutorials","kbtag-minecraft-forge-server","kbtag-vps"],"_links":{"self":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/3464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/comments?post=3464"}],"version-history":[{"count":7,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/3464\/revisions"}],"predecessor-version":[{"id":5664,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/3464\/revisions\/5664"}],"wp:attachment":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/media?parent=3464"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=3464"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtag?post=3464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}