- Joined
- Dec 19, 2014
- Messages
- 1,256
- Reaction score
- 1,928
Client: xLua
Server: C++
Mirorr update mega
To see this hidden content, you must react with one of the following reactions : Like, Fire
1. Modify the server-side file/data/server_5601/Config/ServerConfigList.txt Copy the fields in one area, and copy a few fields in several areas
5601是一区,二区就是5602以此类推
56001是一区,二区就是56002以此类推
actor_5601是一区,二区就是actor_5602以此类推
log_5601是一区,二区就是log_5601以此类推
56001是一区,二区就是56002以此类推
actor_5601是一区,二区就是actor_5602以此类推
log_5601是一区,二区就是log_5601以此类推
Code:
2. Import database: Here is the configuration of the four areas, copy it to SSH to run
HOSTNAME="localhost"
PORT="3306"
USERNAME="root"
PASSWORD="123456"
DB1="actor_5602"
DB2="actor_5603"
DB3="actor_5604"
DB4="log_5602"
DB5="log_5603"
DB6="log_5604"
sql1="create database ${DB1} DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;"
sql2="create database ${DB2} DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;"
sql3="create database ${DB3} DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;"
sql4="create database ${DB4} DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;"
sql5="create database ${DB5} DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;"
sql6="create database ${DB6} DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;"
mysql -h${HOSTNAME} -P${PORT} -u${USERNAME} -p${PASSWORD} -e "${sql1}"
mysql -h${HOSTNAME} -P${PORT} -u${USERNAME} -p${PASSWORD} -e "${sql2}"
mysql -h${HOSTNAME} -P${PORT} -u${USERNAME} -p${PASSWORD} -e "${sql3}"
mysql -h${HOSTNAME} -P${PORT} -u${USERNAME} -p${PASSWORD} -e "${sql4}"
mysql -h${HOSTNAME} -P${PORT} -u${USERNAME} -p${PASSWORD} -e "${sql5}"
mysql -h${HOSTNAME} -P${PORT} -u${USERNAME} -p${PASSWORD} -e "${sql6}"
mysql -u${USERNAME} -p${PASSWORD} ${DB1} < /data/sql/actor_5601.sql
mysql -u${USERNAME} -p${PASSWORD} ${DB2} < /data/sql/actor_5601.sql
mysql -u${USERNAME} -p${PASSWORD} ${DB3} < /data/sql/actor_5601.sql
mysql -u${USERNAME} -p${PASSWORD} ${DB4} < /data/sql/log_5601.sql
mysql -u${USERNAME} -p${PASSWORD} ${DB5} < /data/sql/log_5601.sql
mysql -u${USERNAME} -p${PASSWORD} ${DB6} < /data/sql/log_5601.sql
139.155.232.43 5601
139.155.232.43 5602
139.155.232.43 5603
139.155.232.43 5604
139.155.232.43 5602
139.155.232.43 5603
139.155.232.43 5604
Code:
cd /data/server_5601 && nohup ./5601 -worldid 5601 -assert 1 & //这是一区
cd /data/server_5601 && nohup ./5601 -worldid 5602 -assert 1 & //这是二区
cd /data/server_5601 && nohup ./5601 -worldid 5603 -assert 1 & //这是三区
cd /data/server_5601 && nohup ./5601 -worldid 5604 -assert 1 & //这是四区
Modify it first/www/wwwroot/config/config.phpAdd 2 3 4 zone database configuration,
It looks like this:
It looks like this:
Code:
$qus=array(
'1'=> array(
'name'=> '一区',
'DB_NAME'=> 'actor_5601',
'SERVER_ID'=> '5601'
)
,
'2'=> array(
'name'=> '二区',
'DB_NAME'=> 'actor_5602',
'SERVER_ID'=> '5602'
),
'3'=> array(
'name'=> '三区',
'DB_NAME'=> 'actor_5603',
'SERVER_ID'=> '5603'
),
'4'=> array(
'name'=> '四区',
'DB_NAME'=> 'actor_5604',
'SERVER_ID'=> '5604'
),
);
date -s "2022-06-16 16:16:06"
Server_UPDATE
To see this hidden content, you must like this content.
Last edited: