How to work with la2-OS

This article describes how to manage the server through the ssh console.

Consider the basic, most commonly used commands:

The server command is used to control server status.

To start the server, use the start argument and indicate which server to start ls, gs, or both all

Example command to start the server login:

server start ls

Example command to start a game server:

server start gs

Example command to start immediately login and game servers:

server start all

To disable the server, use the stop argument with the same options as ls, gs or all

To restart the server, use the restart argument with the options ls, gs, all

If one of the servers hangs and does not respond to the server stop command, it is possible to force stop through the server kill all command

To view the server load logs at startup, use the command server log ls or server log gs

To pause reading logs, press the keyboard shortcut Ctrl + C.

To check active online on the server, there is a server check online command

For each tariff plan, automatic backups are provided for a given interval, but it is possible to do backups manually if necessary: ​​use the backup command with the options ls, gs, db, la2, full.

ls - only server login files

gs - only game server files

db - server database dump

la2 - login and game server files

full - all files and server database

To restore or roll back the current version of files or the database to data from backup, use the restore command with the options ls, gs, db

When restoring a backup, the login and game servers must be stopped.

For example, we want to restore the database from backup, for this we enter restore db in the terminal

In response, you will be prompted to enter the full backup name from the specified list, for example, 23-Apr-05: 00: 01-l2jdb.sql.gz enter and press Enter

After the recovery process is completed, a message will be displayed in the console about the successful completion of the operation.

For manual work with archives, there are pack (archiving) and unpack (unpacking) commands; these commands support the following archive formats: .rar, .zip, .Z, .7z, .tgz, .tbz2, .bz2, .tar, .gz

Usage example: I need to pack the server login files in the 7z archive, for this I will enter the following into the console:

pack 7z loginserver

Where the first argument 7z is the archive format, the second argument loginserver is the name of the folder you want to pack.

The unpacking process is just as simple. Enter the name of the archive into the unpack console, for example l2jserver.tgz should look like this:

unpack l2jserver.tgz

After unpacking, the contents of the archive will be in the home directory.

  • la2-OS, Lineage 2 server, l2jserver
  • 98 Utilizadores acharam útil
Esta resposta foi útil?