教您多台服务器负载(支持8台服务器组网络)
具体配置文件如下:
概述:
本方法采用单外网ip:
2台或以上的计算机:
组成内部网
服务器组分为主服务器和从服务器([s] 从 [m]主)从服务器可以开多个但主服务器只可以开一个。理论支持8台,不包括rungate loginserver dvserver 其他的程序单独站用。
从只需要开rungate 和 mirserver 2个程序
具体inf 如下:
rungate ini
[server]
color=ltgray
title='gameserver gate1'
serverport=5000
gateport=7201
index=1
server1=192.168.0.150 <- 此为从的内网ip
server2=
server3=
server4=
server5=
从mirserver txt ini
!runaddr.txt
192.168.0.200
192.168.0.150
!servertable.txt
0 218.16.50.90 7200 <-此为外网ip internet ip
1 218.16.50.90 7201 <-此为外网ip internet ip
!setup.txt
[server]
serverindex=1 <-你这台服务器是几号服务器就要写几 主用0表示
servername=恒通科技
servernumber=0
ventureserver=false
testserver=true
testlevel=0
testgold=0
testserveruserlimit=300
servicemode=false
nonpkserver=false
dbaddr=192.168.0.200 <- 只向主
dbport=6000
idsaddr=192.168.0.200
idsport=5600
msgsrvaddr=192.168.0.200
msgsrvport=4900
humlimit=30
monlimit=30
zenlimit=30
npclimit=5
soclimit=30
declimit=10
userfull=5000
zenfaststep=200
sendblock=1000
checkblock=8000
availableblock=50
gateload=0
logserveraddr=192.168.0.100
logserverport=10000
viewhackmessage=true
viewadmissionfailure=true
halffeestart=2
halffeeend=10
[share]
basedir=e:\share\ <-此为共享的网络映射
guilddir=e:\guildbase\guilds\ <-此为共享的网络映射
guildfile=e:\guildbase\guildlist.txt <-此为共享的网络映射
venturedir=e:\sharev\\ <-此为共享的网络映射
conlogdir=e:\conlog\ <-此为共享的网络映射
castledir=e:\envir\castle\ <-此为共享的网络映射
envirdir=e:\envir\ <-此为共享的网络映射
mapdir=c:\mirserver\mir200\map
[setup]
clientfile1=mir.dat
clientfile2=
clientfile3=
itemnumber=77600061
homemap=3 <- 这里要注意修改
homex=330
homey=330
mapinfo.txt
[0 比奇省 0] 〈- 0表示被第几好加载
[0122 皇宫 0]
[0110 研究院 0] fight
[0 比奇省 1] 例如这里是1 就是被1号加 如是0就是0号加 不可以重复
[0122 皇宫 1]
[0110 研究院 1] fight
*db 要2台机器上都有*
主 ini
rungate。ini
[server]
color=ltgray
title='gameserver gate1'
serverport=5000
gateport=7200
index=0
server1=192.168.0.200
server2=192.168.0.150
server3=
server4=
server5=
'selchr gate。ini
[server]
color=green
title='selchr gate'
serverport=5100
gateport=7100
index=0
server1=192.168.0.200
server2=192.168.0.150
server3=
server4=
server5=
dbsrv200
!addrtable。txt
192.168.0.200 218.16.50.90
!serverinfo。txt
192.168.0.200 218.16.50.90 7200
dbsrc。ini
[setup]
servername=恒通科技
port=6000
mapfile=c:\mirserver\mir200\envir\mapinfo.txt
viewhackmsg=1
[server]
;login server's private ip
idsaddr=192.168.0.200
idsport=5600
[db]
dir=c:\mirserver\mud2\dbsrv200\fdbiddir=c:\mirserver\mud2\dbsrv200\fdbhumdir=c:\mirserver\mud2\dbsrv200\fdbfeedir=c:\mirserver\mud2\dbsrv200\fdbbackup=c:\mirserver\mud2\dbsrv200\backupconnectdir=c:\mirserver\mud2\dbsrv200\connectionlogdir=c:\mirserver\mud2\dbsrv200\log
logsrv
!addrtable。txt
;请按标准格式配置
; 标识 本机ip 主机ip 网络ip..
恒通科技 line1-7 192.168.0.200 218.16.50.90 218.16.50.90:7100 218.16.50.90:7100
!serveraddr。txt
192.168.0.200
192.168.0.200
192.168.0.150
192.168.0.200
logsrv。ini
[server]
dbserver=192.168.0.200
dbsport=16300
feeport=16301
logport=16302
readyservers=0
enablemakingid=true
enabletrial=false
countlogdir=c:\mirserver\mud2\logsrv\countlogweblogdir=c:\mirserver\share\gamewfolderfeedidlist=c:\mirserver\share\feed\feedidlist.txt
feediplist=c:\mirserver\share\feed\feediplist.txt
[db]
iddir='.\iddb\'
mir200 mirserver
192.168.0.200
192.168.0.150
0 218.16.50.90 7200
1 218.16.50.90 7201
[server]
serverindex=0
servername=恒通科技
servernumber=0
ventureserver=false
testserver=true
testlevel=0
testgold=0
testserveruserlimit=300
servicemode=false
nonpkserver=false
dbaddr=192.168.0.200
dbport=6000
idsaddr=192.168.0.200
idsport=5600
msgsrvaddr=192.168.0.200
msgsrvport=4900
humlimit=30
monlimit=30
zenlimit=30
npclimit=5
soclimit=30
declimit=10
userfull=5000
zenfaststep=200
sendblock=1000
checkblock=8000
availableblock=50
gateload=0
logserveraddr=192.168.0.100
logserverport=10000
viewhackmessage=true
viewadmissionfailure=true
halffeestart=2
halffeeend=10
[share]
basedir=c:\mirserver\mir200\shareguilddir=c:\mirserver\mir200\guildbase\guildsguildfile=c:\mirserver\mir200\guildbase\guildlist.txt
venturedir=c:\mirserver\mir200\sharevconlogdir=c:\mirserver\mir200\conlogcastledir=c:\mirserver\mir200\envir\castleenvirdir=c:\mirserver\mir200\envirmapdir=c:\mirserver\mir200\map
[setup]
clientfile1=mir.dat
clientfile2=
clientfile3=
itemnumber=77372261
homemap=0
homex=329
homey=269