源碼描述:
H5手游[星辰變]手工架設(shè)服務(wù)端+數(shù)據(jù)庫(kù)+架設(shè)流程
架設(shè)流程:
1、系統(tǒng)版本:centos7
2、安裝寶塔
使用xshell登錄服務(wù)器,安裝寶塔命令:
yum install -y wget unzip && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
3、關(guān)閉防火墻
centos6系統(tǒng)
service iptables stop
chkconfig iptables off
centos7系統(tǒng)
systemctl stop firewalld.service
systemctl disable firewalld.service
4、寶塔安裝完后:
安裝:nginx14
安裝:mysql 5.6
安裝:php 5.6
5、安裝完成后修改在寶塔面板修改mysql密碼為:V1ZoT2JVMUVTWG89
6、開啟數(shù)據(jù)庫(kù)外網(wǎng)連接及創(chuàng)建數(shù)據(jù)庫(kù)
mysql -uroot -pV1ZoT2JVMUVTWG89
GRANT ALL PRIVILEGES ON *.* TO \\\\’root\\\\’@\\\\’\\\\’ IDENTIFIED BY \\\\’V1ZoT2JVMUVTWG89\\\\’ WITH GRANT OPTION;
FLUSH PRIVILEGES;
7、創(chuàng)建數(shù)據(jù)庫(kù)
使用navicat工具登錄服務(wù)器的mysql數(shù)據(jù)庫(kù)
Ip
賬號(hào):root
密碼:V1ZoT2JVMUVTWG89
導(dǎo)入數(shù)據(jù)庫(kù)
8、寶塔-安全里面設(shè)置開放端口1:65535
9、登錄寶塔創(chuàng)建一個(gè)網(wǎng)站,網(wǎng)站目錄設(shè)置成xcb
10、把data.zip上傳到寶塔【根目錄】然后在寶塔解壓縮
11、把xcb.zip上傳到wwwroot目錄然后在寶塔解壓縮
12、IP修改:
/data/server/kjwb/chargeserver/config.xml
/data/server/kjwb/gmserver/config.xml
/data/server/kjwb/kjwb_s1000001/gameserver/config.xml
/data/server/kjwb/kjwb_s1000001/operationanalysisserver/config.xml
/www/wwwroot/xcb/sdk/GetServerList.php
/www/wwwroot/xcb/sdk/login.php
/www/wwwroot/xcb/down.php
把以上所有文件里面的192.168.200.129修改成你的外網(wǎng)IP
13、設(shè)置權(quán)限:
chmod -R 777 /data/
14、啟動(dòng)游戲命令:
cd /data/server/kjwb/kjwb_s1000001/gameserver/unix
./start_gameserver.sh
cd /data/server/kjwb/chargeserver/unix
./start_chargeserver.sh
cd /data/server/kjwb/gmserver/unix
./start_gmserver.sh
cd /data/server/kjwb/kjwb_s1000001/operationanalysisserver/unix
./start_operationanalysisserver.sh
源碼截圖:
![H5手游[星辰變]手工架設(shè)服務(wù)端+數(shù)據(jù)庫(kù)+架設(shè)流程](http://www.sajysbs.cn/wp-content/uploads/2023/11/20230827102650160.webp)
![H5手游[星辰變]手工架設(shè)服務(wù)端+數(shù)據(jù)庫(kù)+架設(shè)流程](http://www.sajysbs.cn/wp-content/uploads/2023/11/20230827182651364.webp)
![H5手游[星辰變]手工架設(shè)服務(wù)端+數(shù)據(jù)庫(kù)+架設(shè)流程](http://www.sajysbs.cn/wp-content/uploads/2023/11/20230827182651760.webp)
![H5手游[星辰變]手工架設(shè)服務(wù)端+數(shù)據(jù)庫(kù)+架設(shè)流程](http://www.sajysbs.cn/wp-content/uploads/2023/11/20230827182651498.webp)