同學(xué)們抄腔,大家好:
本節(jié)給大家?guī)?lái)一篇關(guān)于LollipopGo游戲服務(wù)器啟動(dòng)順序的說(shuō)明文章瓢湃,之前給大家錄制過(guò)一節(jié)啟動(dòng)順序的理张,地址:http://www.byteedu.com/forum.php?mod=viewthread&tid=310&extra=
大家也可以看視頻,LollipopGo架構(gòu)啟動(dòng)順序是有一定講究的绵患,因?yàn)獒槍?duì)于網(wǎng)關(guān)和子游戲是有長(zhǎng)鏈接雾叭,所以在測(cè)試時(shí)候需要按照先啟動(dòng)網(wǎng)關(guān)放到第一位,啟動(dòng)順序大家可以參考架構(gòu)里面的啟動(dòng)文件的順序 如下:
echo start
echo LoginServer:登錄服務(wù)器啟動(dòng)(http)
start LollipopGo.exe 8891 DT
echo GateWay:網(wǎng)關(guān)服務(wù)器啟動(dòng)(websocket)
start LollipopGo.exe 8888 GW
echo DBServer:數(shù)據(jù)庫(kù)服務(wù)器啟動(dòng)(rpc)
start LollipopGo.exe 8890 DB
echo Global Server:公共服務(wù)器啟動(dòng)(websocket落蝙,內(nèi)服務(wù))
start LollipopGo.exe 8894 GL
echo GM server :服務(wù)器啟動(dòng)(http)
start LollipopGo.exe 8892 GM
echo DSQ server :服務(wù)器啟動(dòng)(websocket)
echo LollipopGo.exe 8895 DSQ
exit
linux 腳本啟動(dòng):
./start_Login.sh
sleep 2
./start_gateway.sh
sleep 2
./start_db.sh
sleep 4
./start_global.sh
sleep 3
./start_Gm.sh
原文地址:http://www.byteedu.com/forum.php?mod=viewthread&tid=574&extra=