Difference between revisions of "Getting Started with Server"

From RAGE Multiplayer Wiki
Jump to navigation Jump to search
m (Minor grammatical fixes.)
Line 45: Line 45:
# Extract the server files
# Extract the server files
tar -xzf ragemp-srv-036.tar.gz
tar -xzf ragemp-srv-037.tar.gz
# Accessing the directory
# Accessing the directory

Revision as of 12:23, 22 December 2018


This brief tutorial will show you how to run your server on both Windows and Linux distributions.

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.
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.


The following tutorial is found on Setting up the Bridge on Linux/Windows.



For a hassle-free installation and operation, it is recommended to have the latest VC Redist.

Microsoft Visual C++ Redistributable 2017

Setting up the server

1. Download the latest updater.exe.

2. Run the downloaded updater.exe.

3. Launch server.exe and you should be able to connect to it.




sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install libstdc++6


echo 'deb http://httpredir.debian.org/debian testing main contrib non-free' > /etc/apt/sources.list
apt-get update
apt-get install -y -t testing gcc

Setting up server

This bash snippet should automate the server installation.

# Downloading server
wget https://cdn.rage.mp/lin/ragemp-srv-036.tar.gz

# Extract the server files
tar -xzf ragemp-srv-037.tar.gz

# Accessing the directory
cd ragemp-srv

# Set executable permission
chmod +x server

# Run the server

Installing screen (Optional)

For running the server in the background, we recommend using screen, mainly for its ease of use.

Debian based (Ubuntu & derivatives)

sudo apt-get install screen

CentOS 6.x/7.x

yum install screen

Starting the server

screen -dmS GTASERVER -L bash -c 'cd ~/srv && ./server' &

# Parameter explanation
# screen -dmS = starts a separate shell without directly opening an interface towards it (detached mode). The S param defines a session name for the newly created session, so that it is easier to manage in the future.
# screen -L = basically logs whatever error that is shown by the server through the separate shell into a file for easier reference in the future.
# Log output will be saved as screenlog._number_ in the server directory.

Stopping the server

There's usually two ways to stop the server; One that we call a graceful shutdown that sends the server a signal for termination and the other, well, a crash since it does not allow the code to run through the termination process correctly.


kill $(ps h --ppid $(screen -ls | grep GTASERVER | cut -d. -f1) -o pid)

NOT RECOMMENDED: It does not shut down the server gracefully

screen -S GTASERVER -X quit



./server: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by ./server)

Make sure GCC/G++ 6 or newer is installed, follow the Prerequisite.