以下教程建立的基础是 LOGIN 和game_server都已破解才能架设成功.
(注意:文件夹内已放破解后的GS和LOGIN)
服务端目录下的game.tgz解压文件名设置为game
140login-ss.rar解压
然后把140login-ss.rar目录下LOGIN文件夹放到game.tgz解压的目录下
现在game目录下有的文件是 DB,files,game,login files可以删掉不用
修改/game/db下的
run.sh
#!/bin/sh
cd /game/db
ulimit -c unlimited
rm *.pid -f
/game/db/guard -c /game/db/guard_user.ini
db_server_user.ini
注意:为了不出错 请使用统一IP
如果是虚拟机架设请填写内网IP 外网架设的话全部使用外网IP
数据库地址除外
[dbserver]
ListenIp = "192.168.1.200"
ListenPort = "9006"
[db_login]
Server = "你的MYSQL地址"
Port = 3306
Database = "db_account"
UserName = "你的帐号"
Password = "你的密码"
[db_game]
Server = "你的MYSQL地址"
Port = 3306
Database = "db_game"
UserName = "你的帐号"
Password = "你的密码"
[db_log]
Server = "你的MYSQL地址"
Port = 3306
Database = "db_log"
UserName = "你的帐号"
Password = "你的密码"
guard_user.ini
[Guard]
ApplicationName="db_server"
ApplicationConfigName="db_server_user.ini"
GuardPort=9008
PublishServerIP="192.168.1.200"
PublishServerPort=9009
DeadLoopTime=0
RebootTimeWhenShutdown=16
RebootTimeWhenDeadLoop=16
StartAppRightAwayFlag=1
/game/game文件下的
guard_user.ini
[Guard]
ApplicationName="game_server"
ApplicationConfigName="server_user.ini"
GuardPort=9008
PublishServerIP="192.168.1.200"
PublishServerPort=9009
DeadLoopTime=0
RebootTimeWhenShutdown=16
RebootTimeWhenDeadLoop=16
StartAppRightAwayFlag=1
server_user.ini
[client]
Capability = "2000"
UseGate = "false"
ListenIp = "192.168.1.200"
ListenPortal = "192.168.1.200"
ListenPort = "8886"
[login]
BindIP = ""
BindPort = ""
ConnectIp = "192.168.1.200"
ConnectPort = "9002"
[game_db]
BindIP = ""
BindPort = ""
ConnectIp = "192.168.1.200"
ConnectPort = "9006"
[log_db]
BindIP = ""
BindPort = ""
ConnectIp = "192.168.1.200"
ConnectPort = "9006"
[server]
Description = "korean_test_server"
name = "玫粮"
location = "192.168.1.200"
Idx = 1
Order = 1
ListPv = 0
[anti_robot]
OpenFlag = "false"
ClientDetect = "false"
Start
EctypeAskFlag = "false"
[licenseport]
port = 9101
[licenseserver]
sv1 = "192.168.1.200"
sv2 = "192.168.1.200"
sv3 = "192.168.1.200"
/game/login文件下的
guard_user.ini
[Guard]
ApplicationName="login_server"
ApplicationConfigName="login_user.ini"
GuardPort=9008
PublishServerIP="192.168.1.200"
PublishServerPort=9009
DeadLoopTime=0
RebootTimeWhenShutdown=16
RebootTimeWhenDeadLoop=16
StartAppRightAwayFlag=1
login_user.ini
Capability = "3000"
ListenIp = "192.168.1.200"
ListenPort = "8888"
[user]
Capability = "2000"
ListenIp = "192.168.1.200"
ListenPortal = "192.168.1.200"
ListenPort = "8885"
StateLev1 = 500
StateLev2 = 1000
[server]
Capability = "64"
ListenIp = "192.168.1.200"
ListenPort = "9002"
[db]
BindIP = ""
BindPort = ""
ConnectIp = "192.168.1.200"
ConnectPort = "9006"
[billing]
use = false
ConnectIp = "192.168.1.200"
ConnectPort = "9020"
[guard]
Description = ""
GuardPort = "8002"
UseGuard = "false"
[Login]
Name="login_OPT"
Accept="a7aaaa"
[autostat]
Enable = false
[licenseport]
port = 9101
[licenseserver]
sv1 = "192.168.1.200"
sv2 = "192.168.1.200"
-----------------------------------------------------
然后启动
cd /game/db
./run.sh
cd /game/login
./run.sh
cd /game/game
./run.sh
启动完GAME的时候等待5分钟他才能连接上
开始会提示空连接 等5分钟就好了
本贴原创作者未知.......我看见网游单机板块有蜀门服务端..但是没教程(服务端内附教程太简单了..肯定难以架设成功)...肯定很多人架设不起来....所以在这里发个教程
[ 此帖被紫枫の叶在2011-04-07 19:48重新编辑 ]
中华游戏网 cnyouw.cn