mirror of
https://github.com/GameServerManagers/LinuxGSM-Docs.git
synced 2025-01-07 03:17:04 +08:00
GITBOOK-313: change request with no subject merged in GitBook
This commit is contained in:
parent
ddd4fd42d6
commit
0b217c0984
@ -9,8 +9,6 @@
|
||||
* [cronjobs](configuration/cronjobs.md)
|
||||
* [Running on Boot](configuration/running-on-boot.md)
|
||||
* [Local/Home Server](configuration/local-home-server.md)
|
||||
* [IP Address](configuration/ip-address.md)
|
||||
* [Ports](configuration/ports.md)
|
||||
* [LinuxGSM Stats](configuration/linuxgsm-stats.md)
|
||||
* [Commands](commands/README.md)
|
||||
* [install](commands/install.md)
|
||||
@ -54,6 +52,8 @@
|
||||
* [Unreal Tournament 3](game-servers/unreal-tournament-3.md)
|
||||
* [Valheim](game-servers/valheim.md)
|
||||
* [Networking](networking/README.md)
|
||||
* [IP Address](networking/ip-address.md)
|
||||
* [Ports](networking/ports.md)
|
||||
* [Source Engine](networking/source-engine.md)
|
||||
* [Alerts](alerts/README.md)
|
||||
* [Discord](alerts/discord.md)
|
||||
|
@ -6,10 +6,10 @@ description: Hosting multiple game servers on the same host
|
||||
|
||||
Depending upon the game server you are running it is possible to run multiple game servers on the same server host.
|
||||
|
||||
**There are two recommended ways to run multiple game servers on one physical server**.
|
||||
**There are two recommended ways to run multiple game servers on one physical server**.\
|
||||
Depending upon the circumstances you may choose a particular method or mixture of both.
|
||||
|
||||
It is best to make a proper plan for running multiple game servers at the earliest stage of your deployment.
|
||||
It is best to make a proper plan for running multiple game servers at the earliest stage of your deployment.\
|
||||
Make sure that you examined this page carefully and understood all of its content before starting.
|
||||
|
||||
## Prerequisites
|
||||
@ -20,13 +20,13 @@ You need some definitions to make this guide clear.
|
||||
|
||||
* **Installation:** An _installation_ refers to the base directory of a game server. This is where the files required to run a game server is stored.
|
||||
|
||||
```text
|
||||
```
|
||||
/home/gameserver/serverfiles
|
||||
```
|
||||
|
||||
* **Instance:** Each individual game server is referred too as an _instance._ There might be multiple instances running per installation. An instance is started by running the `./gameserver` script
|
||||
|
||||
```text
|
||||
```
|
||||
/home/gameserver/gameserver
|
||||
/home/gameserver/gameserver-2
|
||||
```
|
||||
@ -39,7 +39,7 @@ You should be familiar with how [LinuxGSM Configs](../configuration/linuxgsm-con
|
||||
|
||||
#### Understand ports
|
||||
|
||||
You need to understand how ports work in order to avoid port overlapping, otherwise your new instances won't start. Useful resource: [Ports](../configuration/ports.md).
|
||||
You need to understand how ports work in order to avoid port overlapping, otherwise your new instances won't start. Useful resource: [Ports](../networking/ports.md).
|
||||
|
||||
## Single Instance per Installation
|
||||
|
||||
@ -70,18 +70,18 @@ This consists of creating a new user for each game server, repeat the install pr
|
||||
|
||||
The installs are separated and isolated from each other in each users _home directory_.
|
||||
|
||||
| Game Server | User | LinuxGSM Script location |
|
||||
| :--- | :--- | :--- |
|
||||
| Garry’s Mod | gmodserver | /home/gmodserver/gmodserver |
|
||||
| Garry’s Mod | gmodserver-slender | /home/gmodserver-slender/gmodserver |
|
||||
| Counter-Strike: Global Offensive | csgoserver | /home/csgoserver/csgoserver |
|
||||
| Game Server | User | LinuxGSM Script location |
|
||||
| -------------------------------- | ------------------ | ----------------------------------- |
|
||||
| Garry’s Mod | gmodserver | /home/gmodserver/gmodserver |
|
||||
| Garry’s Mod | gmodserver-slender | /home/gmodserver-slender/gmodserver |
|
||||
| Counter-Strike: Global Offensive | csgoserver | /home/csgoserver/csgoserver |
|
||||
| Counter-Strike: Global Offensive | csgoserver-zombies | /home/csgoserver-zombies/csgoserver |
|
||||
|
||||
### How to Install
|
||||
|
||||
1. Create a new user with a home directory.
|
||||
1. Create a new user with a home directory. 
|
||||
2. Repeat the standard installation process using this new user.
|
||||
3. Change the instance config adjusting ports numbers from the default
|
||||
3. Change the instance config adjusting ports numbers from the default 
|
||||
|
||||
## Single Installation with Multiple Instances
|
||||
|
||||
@ -113,19 +113,19 @@ Most but not all game servers work with this method
|
||||
|
||||
### How it works
|
||||
|
||||
You have one game server installation, but you have multiple instances start in the same installation using different config files.
|
||||
You have one game server installation, but you have multiple instances start in the same installation using different config files. 
|
||||
|
||||
Every time a new instance is created, new default config files are created. This allows each instance to have different hostname, ports etc. The config files are by default the same name as the instance script. For example, if the script is `./gameserver-2` the config is `gameserver-2.cfg`. You can see the location of config files in `./gameserver-2 details` \(replace "instance" with your actual instance name\).
|
||||
Every time a new instance is created, new default config files are created. This allows each instance to have different hostname, ports etc. The config files are by default the same name as the instance script. For example, if the script is `./gameserver-2` the config is `gameserver-2.cfg`. You can see the location of config files in `./gameserver-2 details` (replace "instance" with your actual instance name).
|
||||
|
||||
Each instance is managed using its own script which gives the config file names. These can be renamed how you like, however, the default will simply have an incremental number. Some admins may choose to name them after the server port, the map or the gamemode instead.
|
||||
|
||||
### Examples
|
||||
|
||||
| Game | User | LinuxGSM Script location | notes |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| Garry’s Mod | gmodserver | /home/gmodserver/gmodserver | 1.2.3.4:27015 |
|
||||
| Garry’s Mod | gmodserver | /home/gmodserver/gmodserver-1 | 1.2.3.4:27018 |
|
||||
| Garry’s Mod | gmodserver | /home/gmodserver/gmodserver-2 | 1.2.3.4:27021 |
|
||||
| Game | User | LinuxGSM Script location | notes |
|
||||
| -------------------------------- | ---------- | ----------------------------------------- | ------------------------ |
|
||||
| Garry’s Mod | gmodserver | /home/gmodserver/gmodserver | 1.2.3.4:27015 |
|
||||
| Garry’s Mod | gmodserver | /home/gmodserver/gmodserver-1 | 1.2.3.4:27018 |
|
||||
| Garry’s Mod | gmodserver | /home/gmodserver/gmodserver-2 | 1.2.3.4:27021 |
|
||||
| Counter-Strike: Global Offensive | csgoserver | /home/csgoserver/csgoserver-zombies-27024 | 1.2.3.4:27024 Zombie Mod |
|
||||
| Counter-Strike: Global Offensive | csgoserver | /home/csgoserver/csgoserver-zombies-27027 | 1.2.3.4:27027 Zombie Mod |
|
||||
|
||||
@ -133,9 +133,9 @@ In these examples, you can see the scripts are located in the same installation
|
||||
|
||||
### How to install
|
||||
|
||||
`linuxgsm.sh` allows you to generate as many instances as you want by running .
|
||||
`linuxgsm.sh` allows you to generate as many instances as you want by running . 
|
||||
|
||||
```text
|
||||
```
|
||||
./linuxgsm.sh install
|
||||
OR
|
||||
./linuxgsm.sh gameserver
|
||||
@ -143,7 +143,7 @@ OR
|
||||
|
||||
It will generate a new LinuxGSM script using an incremental number.
|
||||
|
||||
```text
|
||||
```
|
||||
./gameserver-2
|
||||
```
|
||||
|
||||
@ -153,9 +153,8 @@ On the first run of `./gameserver-2` a new default LinuxGSM and game config `gam
|
||||
|
||||
### Forgetting to change ports and/or IP
|
||||
|
||||
If you run multiple game servers you will need to alter ports. Ensure you are aware of how to manage [ports](../configuration/ports.md).
|
||||
If you run multiple game servers you will need to alter ports. Ensure you are aware of how to manage [ports](../networking/ports.md).
|
||||
|
||||
### Installing game servers with the same script name under the same user
|
||||
|
||||
Installing multiple installations using the same user does work. However you must use unique script names i.e. `./gameserver`. This is because tmux requires unique session name to start a session. Tmux will fail to start if another server is using the same session name. LinuxGSM uses the script name as the tmux session name.
|
||||
|
||||
|
@ -8,7 +8,7 @@ This guide is not designed to be an in-depth guide to networking, instead focusi
|
||||
|
||||
## Internet Server vs. Local Server
|
||||
|
||||
Your game server can be hosted online using a server provider such as Linode or on a [local network](local-home-server.md) at your house for either local-only LAN parties or allowing online players in through your router. 
|
||||
Your game server can be hosted online using a server provider such as Linode or on a [local network](../configuration/local-home-server.md) at your house for either local-only LAN parties or allowing online players in through your router. 
|
||||
|
||||
## Network Interfaces
|
||||
|
||||
@ -72,7 +72,7 @@ By default, LinuxGSM will use the 0.0.0.0 meta-address. This behavior will allow
|
||||
|
||||
Internet IP: LinuxGSM will try to gather the server internet IP address to be shown in [details](../commands/details.md).
|
||||
|
||||
Specific IP: If a specific IP address needs to be set it can be done using the `ip` setting in the [LinuxGSM ](linuxgsm-config.md)or [game server ](game-server-config.md)config files. 
|
||||
Specific IP: If a specific IP address needs to be set it can be done using the `ip` setting in the [LinuxGSM ](../configuration/linuxgsm-config.md)or [game server ](../configuration/game-server-config.md)config files. 
|
||||
|
||||
Display IP: If you want to change the IP address displayed in alerts you can use the [displayip](../alerts/#display-ip).
|
||||
|
@ -20,7 +20,7 @@ Query port: Used by software to gather information from the server such as serve
|
||||
Rcon port: Some game servers have remote console port allowing remote administration of a game server. \
|
||||
Web port: used for game servers that have web interface.
|
||||
|
||||
Depending upon which game server is being used, you can set game server ports within your [start parameters](start-parameters.md) or [game server](game-server-config.md) config file.
|
||||
Depending upon which game server is being used, you can set game server ports within your [start parameters](../configuration/start-parameters.md) or [game server](../configuration/game-server-config.md) config file.
|
||||
|
||||
LinuxGSM allows you to see the ports your game server is using with the `./gameserver details` command.
|
||||
|
||||
@ -37,7 +37,7 @@ App 28082 tcp 1
|
||||
|
||||
## Changing Default Ports
|
||||
|
||||
Default ports are set in either the [start parameters](start-parameters.md) or [game config](game-server-config.md). 
|
||||
Default ports are set in either the [start parameters](../configuration/start-parameters.md) or [game config](../configuration/game-server-config.md). 
|
||||
|
||||
You can use `./gameserver details` to find out where to edit port settings
|
||||
|
@ -31,6 +31,6 @@ steammaster="true"
|
||||
There are instances when a game server might not appear in the server list due to several common reasons:
|
||||
|
||||
* Server Loading Time: Please be patient while the server loads, as it may take some time before it becomes visible. Depending on the game server type, certain servers require additional time for tasks like map seeding or loading mods.
|
||||
* Blocked or Misconfigured [Ports](../configuration/ports.md): Ensure that the ports are correctly set up and not blocked. To verify the connection, try connecting directly to the server.
|
||||
* Blocked or Misconfigured [Ports](../networking/ports.md): Ensure that the ports are correctly set up and not blocked. To verify the connection, try connecting directly to the server.
|
||||
* Filtering in Server List: Check that you have not applied any filters in the server browser. Filters like specific maps, "Empty Server," or "Password Protected" should be unchecked to display all available servers.
|
||||
* Server Browser Limitations: It's possible that the server browser functionality of the game might not list all available game servers. In such cases, not all servers may be visible in the server list.
|
||||
|
@ -237,7 +237,7 @@ This can have numerous reasons. Here are some ways to diagnose this issue:
|
||||
* Are you behind [Firewalls](../linux/firewalls.md)? Double-check your rules, and try to disable it for testing
|
||||
* Do you have multiple interfaces? Set the right IP within your "gameserver" script or the game config file
|
||||
* Is it a home server? If you're behind a router, make sure you're listening to your local IP, then redirect appropriate ports to this local IP within your router settings.
|
||||
* Are the ports you're using free? See [Ports](../configuration/ports.md)
|
||||
* Are the ports you're using free? See [Ports](../networking/ports.md)
|
||||
* Did you wait long enough? Sometimes it's just a matter of time until your server shows up on the list
|
||||
|
||||
## How do I solve a segmentation fault?
|
||||
|
@ -38,7 +38,7 @@ Note: (example) `./gameserver details` will provide you with relevant informatio
|
||||
* Is the server properly installed? See the "Game server downloads" part
|
||||
* Are all packages installed properly? See "Dependencies" part
|
||||
* Is your Linux installation compatible? 32/64bit, distribution... Check command: `uname -a`
|
||||
* Are ports already used by another service? See [Ports](configuration/ports.md) and [Multiple-Game-Servers](features/multiple-game-servers.md)
|
||||
* Are ports already used by another service? See [Ports](networking/ports.md) and [Multiple-Game-Servers](features/multiple-game-servers.md)
|
||||
* Is this a known tmux issue? See [Tmux](requirements/tmux.md)
|
||||
* Did you try to start with the `debug` command? See [debug](commands/debug.md)
|
||||
* What does the logs say? See \[[Logging](features/logging.md)
|
||||
@ -85,13 +85,13 @@ Compare the output from this to expected ports displayed in the details command.
|
||||
If the output differs or your think something is wrong, here are the things to check on:
|
||||
|
||||
* Did you set an ip in your gameserver script or config file or are you listening to `0.0.0.0`?
|
||||
* Are the ports you're using free? See [Ports](configuration/ports.md)
|
||||
* Are you listening to an actual interface IP? See [Ports](configuration/ports.md) Also, double check for typo mistakes.
|
||||
* Are the ports you're using free? See [Ports](networking/ports.md)
|
||||
* Are you listening to an actual interface IP? See [Ports](networking/ports.md) Also, double check for typo mistakes.
|
||||
|
||||
#### Isn't there a firewall or a missing NAT rule?
|
||||
|
||||
* Are you behind [Firewalls](linux/firewalls.md)? See [Firewalls](linux/firewalls.md)
|
||||
* If it's a local server, are ports redirection done properly? See [Ports](configuration/ports.md) and [details](commands/details.md)
|
||||
* If it's a local server, are ports redirection done properly? See [Ports](networking/ports.md) and [details](commands/details.md)
|
||||
|
||||
#### Other keys to solving this:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user