2. To set environment variables:(optional)

(Note: Scripts that start the server in server-assets can be used to automate temporary environment variables, so there are no particularly complex deployment requirements to skip this section.)

KBEngine can read KBE_ROOT, KBE_RES_PATH, KBE_BIN_PATH system environment variables to do something.

Environment variables description:

UID:
uid is used to distinguish between different server groups,
if multiple servers distributed server maintenance KBE then uid must be the same on each server,
uid must be greater than 0 and less than 32767.
(Note: Windows system account no UID attribute, Users need to add this environment variable)
KBE_ROOT:
kbe root directory path.
KBE_RES_PATH:
Related Resources path with ':' or ';' separated, the first "respath" is kbe engine "respath",
the second "respath" must be the root user scripts, others without limitation.
KBE_BIN_PATH:
kbe binary file directory path.

To set environment variables:

Linux: (if kbe be installed in ~/ directory)
[kbe@localhost ~]# vim ~/.bashrc
ulimit -c unlimited
export KBE_ROOT=~/kbengine/
export KBE_RES_PATH=$KBE_ROOT/kbe/res/:$KBE_ROOT/assets/:$KBE_ROOT/assets/scripts/:$KBE_ROOT/assets/res/
export KBE_BIN_PATH=$KBE_ROOT/kbe/bin/server/
The environmental variables are available:
[kbe@localhost ~]$ source ~/.bashrc
Root to set the user-kbe uid:
[root@localhost ~]# usermod -u 10103 kbe
uid is used to distinguish between different server groups,
if multiple servers distributed server maintenance KBE then uid must be the same on each server,
uid must be greater than 0 and less than 32767.
Windows:
The right mouse button: "My Computer"->"Advanced"->"Environment Variables" Set up(If installed in C drive).
KBE_ROOT = C:/kbengine/
KBE_RES_PATH = %KBE_ROOT%/kbe/res;%KBE_ROOT%/assets/;%KBE_ROOT%/assets/scripts;%KBE_ROOT%/assets/res/
KBE_BIN_PATH = %KBE_ROOT%/kbe/bin/server/
uid is used to distinguish between different server groups,
if multiple servers distributed server maintenance KBE then uid must be the same on each server,
uid must be greater than 0 and less than 32767.
(Note: Windows system account no UID attribute, Users need to add this environment variable,
UID must be greater than 0 and less than 32767)
UID = 10103

6. Linux firewall: (Optional)

What is the KBE server group? The maintenance of a game world server group, The server contains the entire KBE-layout.

Multiple users in the same LAN, And they want to install KBE-server, Then they need to pay attention to:

1: Environment variables UID must not be the same (see the system if there are set too UID)
UID is used to distinguish between different server groups.
2: cid startup script must be unique(kbengine\kbe\bin\server\start***)
*** --cid=(must be unique) --grouporder=1 --globalorder=1
cid is componentID, Used to identify a KBE-APP, If two different cid exist, will inevitably lead to conflict.

8. IP and port settings: (optional)

[kbengine.xml]->loginapp->externalInterface
（Because reading is the address of NIC, some reasons may not be able to obtain the correct IP address. For example, port mapping mode with the network interaction, this should be set to [kbengine_defaults.xml]->loginapp->externalAddress）

Login port(Client):

[kbengine.xml]->loginapp->externalPorts_min

The HTTP callback (EMAIL authentication, the password reset, etc.):

[kbengine.xml]->loginapp->http_cbport

Baseapp IP:

[kbengine.xml]->baseapp->externalInterface
（Because reading is the address of NIC, some reasons may not be able to obtain the correct IP address. For example, port mapping mode with the network interaction, this should be set to [kbengine_defaults.xml]->loginapp->externalAddress）