<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Getting_Started_with_Server</id>
	<title>Getting Started with Server - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Getting_Started_with_Server"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Getting_Started_with_Server&amp;action=history"/>
	<updated>2026-07-24T17:37:54Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Getting_Started_with_Server&amp;diff=10151&amp;oldid=prev</id>
		<title>imported&gt;Nobodyltu: Update how to get files</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Getting_Started_with_Server&amp;diff=10151&amp;oldid=prev"/>
		<updated>2024-01-20T14:03:18Z</updated>

		<summary type="html">&lt;p&gt;Update how to get files&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
*[[Ru:Getting Started with Server]]&lt;br /&gt;
&lt;br /&gt;
This brief tutorial will show you how to run your server on both Windows and Linux distributions.&lt;br /&gt;
&lt;br /&gt;
By default, the server makes use of port 22005 UDP for server access and the port after (here 22006) for the HTTP server hosting the client packages for the clients to download from.&amp;lt;br&amp;gt;      &lt;br /&gt;
So make sure to have done the ports forwarding on your router process and have also unblocked the ports on your firewall before running the server. &lt;br /&gt;
&lt;br /&gt;
=Windows=&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
For a hassle-free installation and operation, it is recommended to have the latest VC Redist.&lt;br /&gt;
&lt;br /&gt;
[https://aka.ms/vs/15/release/VC_redist.x64.exe Microsoft Visual C++ Redistributable 2017]&lt;br /&gt;
&lt;br /&gt;
== Setting up the Server ==&lt;br /&gt;
&lt;br /&gt;
=== How to Get Server Files ===&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Download&amp;#039;&amp;#039;&amp;#039; the RAGE Multiplayer Client ([https://cdn.rage.mp/public/files/RAGEMultiplayer_Setup.exe Download Here])&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Edit&amp;#039;&amp;#039;&amp;#039; the XML configuration: Change &amp;#039;&amp;#039;&amp;#039;prerelease&amp;#039;&amp;#039;&amp;#039; to &amp;#039;&amp;#039;&amp;#039;prerelease_server&amp;#039;&amp;#039;&amp;#039; in &amp;#039;&amp;#039;&amp;#039;RAGEMP/config.xml&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Run&amp;#039;&amp;#039;&amp;#039; the updater: Execute &amp;#039;&amp;#039;&amp;#039;updater.exe&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Retrieve Server Files&amp;#039;&amp;#039;&amp;#039;: Locate and take the &amp;#039;&amp;#039;&amp;#039;server_files&amp;#039;&amp;#039;&amp;#039; folder.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Revert Configuration&amp;#039;&amp;#039;&amp;#039;: Change back from &amp;#039;&amp;#039;&amp;#039;prerelease_server&amp;#039;&amp;#039;&amp;#039; to &amp;#039;&amp;#039;&amp;#039;prerelease&amp;#039;&amp;#039;&amp;#039; in &amp;#039;&amp;#039;&amp;#039;RAGEMP/config.xml&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Final Update&amp;#039;&amp;#039;&amp;#039;: Run &amp;#039;&amp;#039;&amp;#039;updater.exe&amp;#039;&amp;#039;&amp;#039; again to restore the proper client version.&lt;br /&gt;
&lt;br /&gt;
=== Starting the Server ===&lt;br /&gt;
* Navigate to the &amp;#039;&amp;#039;&amp;#039;server_files&amp;#039;&amp;#039;&amp;#039; folder.&lt;br /&gt;
* Execute &amp;#039;&amp;#039;&amp;#039;ragemp-server.exe&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* Connect locally using the default IP: &amp;#039;&amp;#039;&amp;#039;127.0.0.1:22005&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
==== Additional Information ====&lt;br /&gt;
* For detailed server settings, refer to the [https://wiki.rage.mp/index.php?title=Server_settings Server Settings] page on the RAGE Multiplayer wiki.&lt;br /&gt;
&lt;br /&gt;
==Next step==&lt;br /&gt;
[[Getting Started with Development]]&lt;br /&gt;
&lt;br /&gt;
=Linux=&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
It&amp;#039;s recommended to use Debian or Ubuntu to set up a server if you&amp;#039;re new to Linux.&lt;br /&gt;
*Debian 10 or above [https://distrowatch.com/table.php?distribution=debian See more]&lt;br /&gt;
*Ubuntu 18.10 or above [https://distrowatch.com/table.php?distribution=ubuntu See more]&lt;br /&gt;
*An OS that supports glibc v2.28&lt;br /&gt;
&lt;br /&gt;
===Ubuntu===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test&lt;br /&gt;
sudo apt update &amp;amp;&amp;amp; sudo apt install libstdc++6&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Debian===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
echo &amp;#039;deb http://httpredir.debian.org/debian testing main contrib non-free&amp;#039; &amp;gt; /etc/apt/sources.list&lt;br /&gt;
apt update &amp;amp;&amp;amp; apt install -y -t testing libstdc++6&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Setting up server==&lt;br /&gt;
This bash snippet should automate the server installation.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Downloading server&lt;br /&gt;
wget https://cdn.rage.mp/updater/prerelease/server-files/linux_x64.tar.gz&lt;br /&gt;
&lt;br /&gt;
# Extract the server files&lt;br /&gt;
tar -xzf linux_x64.tar.gz&lt;br /&gt;
&lt;br /&gt;
# Accessing the directory&lt;br /&gt;
cd ragemp-srv&lt;br /&gt;
&lt;br /&gt;
# Set executable permission&lt;br /&gt;
chmod +x ragemp-server&lt;br /&gt;
&lt;br /&gt;
# Run the server&lt;br /&gt;
./ragemp-server&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Launching the server as a daemon (systemd)==&lt;br /&gt;
If you want to launch the server as a daemon on the latest version of Ubuntu/Debian/CentOS, you need to follow these steps:&lt;br /&gt;
 &lt;br /&gt;
1. We recommend move your server to /opt&lt;br /&gt;
e.g &amp;#039;&amp;#039;&amp;#039;mv ./ragemp-srv /opt/&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
2. Create the systemd unit (e.g /etc/systemd/system/rageserv.service) and enter this config:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=RAGE-MP Dedicated server&lt;br /&gt;
After=network.target&lt;br /&gt;
StartLimitIntervalSec=0&lt;br /&gt;
 &lt;br /&gt;
[Service]&lt;br /&gt;
Type=simple&lt;br /&gt;
Restart=always&lt;br /&gt;
RestartSec=1&lt;br /&gt;
; not safe, change root to another user&lt;br /&gt;
User=root&lt;br /&gt;
WorkingDirectory=/opt/ragemp-srv&lt;br /&gt;
ExecStart=/opt/ragemp-srv/ragemp-server&lt;br /&gt;
 &lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Important: If you have not moved the directory, you need to edit WorkingDirectory and ExecStart with new absolute paths.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
3. After saving the new unit we recommend you to update your systemd unit&amp;#039;s list.&lt;br /&gt;
 &lt;br /&gt;
4. Finally! Now you can enable and run the unit via these commands:&lt;br /&gt;
#  systemctl enable rageserv&lt;br /&gt;
#  systemctl start rageserv&lt;br /&gt;
 &lt;br /&gt;
If you want to watch status of your server you need enter:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
systemctl status rageserv&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to restart your server you need to enter:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
systemctl restart rageserv&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
More commands and other details can be found [https://www.freedesktop.org/software/systemd/man/systemctl.html#Unit%20File%20Commands here.]&lt;br /&gt;
&lt;br /&gt;
==Installing screen (Optional)==&lt;br /&gt;
For running the server in the background, we recommend using screen, mainly for its ease of use.&lt;br /&gt;
&lt;br /&gt;
===Debian based (Ubuntu &amp;amp; derivatives)===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get install screen&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CentOS 6.x/7.x===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
yum install screen&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Starting the server===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
screen -dmS GTASERVER -L bash -c &amp;#039;cd ~/srv &amp;amp;&amp;amp; ./server&amp;#039; &amp;amp;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;u&amp;gt;Parameter explanation:&amp;lt;/u&amp;gt;&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; inline&amp;gt;screen -dmS&amp;lt;/syntaxhighlight&amp;gt; starts a separate shell without directly opening an interface towards it (detached mode). The &amp;lt;tt&amp;gt;S&amp;lt;/tt&amp;gt; param defines a session name for the newly created session (in this case &amp;lt;code&amp;gt;GTASERVER&amp;lt;/code&amp;gt;), so that it is easier to manage in the future.&lt;br /&gt;
* &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; inline&amp;gt;screen -L&amp;lt;/syntaxhighlight&amp;gt; basically logs whatever error that is shown by the server through the separate shell into a file for easier reference in the future.&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;!IMPORTANT!&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Log output will be saved as &amp;lt;code&amp;gt;screenlog.&amp;#039;&amp;#039;_number_&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; in the server directory.&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;amp;&amp;lt;/code&amp;gt; &amp;#039;&amp;#039;&amp;#039;IS IMPORTANT&amp;#039;&amp;#039;&amp;#039; IF YOU WANT TO TERMINATE THE PROCESS GRACEFULLY.&lt;br /&gt;
&lt;br /&gt;
===Stopping the server===&lt;br /&gt;
There are usually two ways to stop the server; One that we call a &amp;#039;&amp;#039;&amp;#039;graceful&amp;#039;&amp;#039;&amp;#039; shutdown that sends the server a signal for termination and the other, well, a &amp;#039;&amp;#039;&amp;#039;crash&amp;#039;&amp;#039;&amp;#039; since it does not allow the code to run through the termination process correctly.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;RECOMMENDED:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
kill $(ps h --ppid $(screen -ls | grep GTASERVER | cut -d. -f1) -o pid)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;NOT RECOMMENDED:&amp;#039;&amp;#039;&amp;#039; It does not shut down the server gracefully&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
screen -S GTASERVER -X quit &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Troubleshooting=&lt;br /&gt;
==Linux==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./server: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22&amp;#039; not found (required by ./server)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure GCC/G++ 6 or newer is installed, follow the [[#Prerequisite_2|Prerequisite]].&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
* [[Server settings]]&lt;br /&gt;
{{ScriptingTutorials}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Nobodyltu</name></author>
	</entry>
</feed>