【三国战纪】经典街机动作闯关三网H5手游-2022年10月28日最新整理Linux手工服务端源码视频教程-完善充值后台-运营后台-全套源码发布!
https://www.bilibili.com/video/BV1CR4y1Q7uf/
服务器系统:CENTOS 7.6
安装宝塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh环境安装
Nginx1.8
mysql5.6
php7.0(php安装扩展Redis 这个是运营后台用)java环境需要等上面环境安装完成再安装
yum install java宝塔放行端口:1:65535
关闭防火墙
systemctl stop firewalld
systemctl disable firewalld上传fwd.zip到服务器根目录解压
cd /
unzip fwd.zip给予777权限
chmod 777 -R /data
chmod 777 -R /www宝塔直接修改数据库密码root
开放数据库远程权限
mysql -u root -proot
GRANT ALL PRIVILEGES ON *.* TO ‘root’@’127.0.0.1’ IDENTIFIED BY ‘root’ WITH GRANT OPTION;
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO ‘root’@’localhost’ IDENTIFIED BY ‘root’ WITH GRANT OPTION;
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ IDENTIFIED BY ‘root’ WITH GRANT OPTION;
FLUSH PRIVILEGES;
quit导入数据库
cd /data
./sk修改IP
/data/server/config/game.properties
/data/server/config/gameCentral.properties
/data/server/config/gameHoutai.properties
/www/wwwroot/sanguo/loginjs/servers.php给予777权限
chmod 777 -R /data
chmod 777 -R /www创建网站
IP:81 目录 /www/wwwroot/sanguo/再创建
127.0.0.1:82 目录 /www/wwwroot/sanguo/admin/ 网站设置伪静态为 thinkphp 设置运行目录为public启动
cd /data/server
./houtai.sh start
./center.sh start
./start.sh start./start.sh stop
./start.sh start
set +o history;
./start.sh start
./start.sh stop
./start.sh start
./center.sh stop
./houtai.sh stop
./houtai.sh start
./center.sh start
./start.sh start
./start.sh stop
./start.sh start
netstat -ntlp
游戏地址:http://服务器ip:81/
运营后台地址:http://服务器ip:82/ 账号admin 密码123456 账号和密码在数据库haiou_sgzj_manage – 数据表 manage_admin_user 里面修改 (区在后台或者数据库里面增加)
充值后台:http://服务器ip:81/cz
原文链接:https://wvvvv.abcymw.com/49763.html,转载请注明出处~~~
评论0