1. Overview and Environment
Kbengine is an open source server engine (civil Service network http://kbengine.org/cn/), can be deployed under Linux, Windows, for the convenience of learning, we are in the local Windows to build servers environment.
1) Server source code Https://github.com/435886030/kbengine
2) Environment: WIN7 + VS2013 (Recommended use 2013, other versions may have some engineering settings error)
2. Build a server-side environment
1. Open Kbengine\kbe\src\kbengine_vs120.sln
2. Rebuild the solution (build Baseapp, Baseappmgr, Cellapp, Cellappmgr, Dbmgr, Loginapp, Machine, and its dependencies)
3. To the kbengine\kbe\tools\server\install\ directory, the command line executes the Python installer.py install to make some environment variable settings.
The process console output is as follows:
C:\kbe_root\kbengine\kbe\tools\server\install>python installer.py Installcheck the dependences:-kbe_environment : Checking ... ERROR:KBE_ROOT:is error! The directory or file not found:/kbekbe_root current:reset kbe_root (No input is [c:/kbe_root/kbengine/]): Kbe_res_path cur Rent:%kbe_root%/kbe/res/;%kbe_root%/assets/;%kbe_root%/assets/scripts/;%kbe_root%/assets/res/reset KBE_RES_PATH (No input is [%kbe_root%/kbe/res/;%kbe_root%/assets/;%kbe_root%/assets/scripts/;%kbe_root%/assets/res/]): KBE_BIN_ PATH Current:%kbe_root%/kbe/bin/server/reset kbe_bin_path (No input was [%kbe_root%/kbe/bin/server/]): Kbe_uid Current: 34416reset Kbe_uid (No input is [34416]):
The MySQL-related settings will be followed, and if the setup is successful, the installation is completed as follows:
Attempt to modify the [C:\\Program Files (x86) \\MySQL\\MySQL Server 5.0\\my.ini] ... Try to stop MySQL ... Try to start MySQL ... MySQL is okcreate KBE mysql-account:-username (does not enter the default is ' KBE ')): Kbe-password (does not enter the default Is ' KBE '): Kbecreate kbe-account:name=kbe, Password=kbe successfully! Create Game Database (do not enter the default was ' KBE '): Kbecreate database (KBE) is successfully!-Mysql:yes
3. Service-side repository and server startup
Copy the demo program's assets to the Kbengine directory and execute the Start_server.bat in it to start the server. The Kill_server.bat is closed.
KBE's authors have scripted the process of setting up the environment, and it is very convenient to build a kbengine environment under Windows. Praise
Two KBE with U3D Demo:
Https://github.com/435886030/kbengine_unity3d_demo
Https://github.com/435886030/kbengine_unity3d_warring
Kbengine Server Environment Setup