refactor(server_999): 本地化服务器配置并调整内存键值

- 将所有服务器的监听IP从 0.0.0.0 修改为 127.0.0.1,以限制仅为本地访问
- 修改 relation_svr 和 relay_svr 的内存池共享键值
- 更新 zone_conn 和 zone_svr 的连接URL为本地地址
This commit is contained in:
root
2025-05-07 21:19:20 +08:00
parent 3c8e1abaa1
commit 2cb6ad5bb5
8 changed files with 9 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="GBK" standalone="yes" ?> <?xml version="1.0" encoding="GBK" standalone="yes" ?>
<oper_logload_svr_conf version="1"> <oper_logload_svr_conf version="1">
<ListenIp>0.0.0.0</ListenIp> <ListenIp>127.0.0.1</ListenIp>
<ListenPort>19996</ListenPort> <ListenPort>19996</ListenPort>
<DBIp>121.41.123.129</DBIp> <DBIp>121.41.123.129</DBIp>
<DBPort>3306</DBPort> <DBPort>3306</DBPort>

View File

@@ -1,2 +1,2 @@
#!/bin/sh #!/bin/sh
ipcrm -M 1109994 ipcrm -M 11090011

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="GBK" standalone="yes" ?> <?xml version="1.0" encoding="GBK" standalone="yes" ?>
<relation_svrconf version="1" > <relation_svrconf version="1" >
<MemPoolShmKey>1109994</MemPoolShmKey> <MemPoolShmKey>11090011</MemPoolShmKey>
<MemPoolShmSize>20000000</MemPoolShmSize> <MemPoolShmSize>20000000</MemPoolShmSize>
<MaxPlayerCount>50</MaxPlayerCount> <MaxPlayerCount>50</MaxPlayerCount>
<MaxPlayerCacheCount>60</MaxPlayerCacheCount> <MaxPlayerCacheCount>60</MaxPlayerCacheCount>

View File

@@ -4,7 +4,7 @@
<MemPoolShmKey>1109993</MemPoolShmKey> <MemPoolShmKey>1109993</MemPoolShmKey>
<MemPoolShmSize>140000000</MemPoolShmSize> <MemPoolShmSize>140000000</MemPoolShmSize>
<RoomCount>20</RoomCount> <RoomCount>20</RoomCount>
<UdpMsgHost>0.0.0.0</UdpMsgHost> <UdpMsgHost>127.0.0.1</UdpMsgHost>
<UdpMsgPort>19993</UdpMsgPort> <UdpMsgPort>19993</UdpMsgPort>
<BattleFps>30</BattleFps> <BattleFps>30</BattleFps>
<RecvBusMsgInterval>100</RecvBusMsgInterval> <RecvBusMsgInterval>100</RecvBusMsgInterval>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="GBK" standalone="yes" ?> <?xml version="1.0" encoding="GBK" standalone="yes" ?>
<world_svrconf version="1" > <world_svrconf version="1" >
<TextMsgHost>0.0.0.0</TextMsgHost> <TextMsgHost>127.0.0.1</TextMsgHost>
<TextMsgPort>19992</TextMsgPort> <TextMsgPort>19992</TextMsgPort>
<MemPoolShmKey>1109992</MemPoolShmKey> <MemPoolShmKey>1109992</MemPoolShmKey>
<MemPoolShmSize>200000000</MemPoolShmSize> <MemPoolShmSize>200000000</MemPoolShmSize>

View File

@@ -30,7 +30,7 @@
<Count>1 </Count> <Count>1 </Count>
<Listeners type="Listener"> <Listeners type="Listener">
<Name>default</Name> <Name>default</Name>
<Url>tcp://0.0.0.0:19991?reuse=1</Url> <Url>tcp://127.0.0.1:19991?reuse=1</Url>
<SendBuff>204800 </SendBuff> <SendBuff>204800 </SendBuff>
<RecvBuff>204800 </RecvBuff> <RecvBuff>204800 </RecvBuff>
<MaxIdle>300 </MaxIdle> <MaxIdle>300 </MaxIdle>

View File

@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="GBK" standalone="yes" ?> <?xml version="1.0" encoding="GBK" standalone="yes" ?>
<TunnelProxyConf version="1" > <TunnelProxyConf version="1" >
<TunnelSvrIp>0.0.0.0</TunnelSvrIp> <TunnelSvrIp>127.0.0.1</TunnelSvrIp>
<TunnelSvrPort>29006</TunnelSvrPort> <TunnelSvrPort>29006</TunnelSvrPort>
<LocalIP>0.0.0.0</LocalIP> <LocalIP>127.0.0.1</LocalIP>
<LocalPort>29992</LocalPort> <LocalPort>29992</LocalPort>
<SvrStatus>1</SvrStatus> <SvrStatus>1</SvrStatus>
<MsgSerialize>1</MsgSerialize> <MsgSerialize>1</MsgSerialize>

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="GBK" standalone="yes" ?> <?xml version="1.0" encoding="GBK" standalone="yes" ?>
<zone_svrconf version="10"> <zone_svrconf version="10">
<ChannelID>0</ChannelID> <ChannelID>0</ChannelID>
<ConnIPStr>0.0.0.0</ConnIPStr> <ConnIPStr>127.0.0.1</ConnIPStr>
<ConnPort>19991</ConnPort> <ConnPort>19991</ConnPort>
<MemPoolShmKey>1109991</MemPoolShmKey> <MemPoolShmKey>1109991</MemPoolShmKey>
<MemPoolShmSize>130000000</MemPoolShmSize> <MemPoolShmSize>130000000</MemPoolShmSize>