手工端 宝塔搭建完成 服务器架设完成 最后登陆界面可以打开 就是进不去游戏 不知道哪里出错了 大神求解
系统:CentOS7.x
-------------------------------------------------------------------
安装宝塔:
yum install -y wget && wget -O install.sh
http://download.bt.cn/install/install_6.0.sh && sh install.sh
-------------------------------------------------------------------
http://124.220.173.118:8888/2d189fc3
9anvjymv
2cc45820
宝塔安装:
Nginx1.18
php5.6 (安装扩展redis/swoole)
mysql5.6
redis
-------------------------------------------------------------------
宝塔开放端口1:65535
-------------------------------------------------------------------
安装环境:
yum install bzip2 bzip2-devel readline-devel libxml2-devel libxml2 openssl openssl-devel gcc make curl-devel -y
-------------------------------------------------------------------
上传服务端20166.zip到根目录并解压:
cd /
unzip 20166.zip
-------------------------------------------------------------------
编译libmcrypt:
cd /
tar -zxvf libmcrypt-2.5.7.tar.gz
cd libmcrypt-2.5.7
./configure --prefix=/usr/local
make && make install
找到目录/etc/ld.so.conf配置文件最下面一行加入/usr/local/lib
ldconfig
修改PHP/www/server/php/56/etc/php.ini文件,在底下加入:
[msgpack]
extension = /www/server/php/56/lib/php/extensions/no-debug-non-zts-20131226/msgpack.so
重启php:
/etc/init.d/php-fpm-56 restart
cd /
tar -xvf node-v10.16.3-linux-x64.tar.xz -C /usr/local/
ln -s /usr/local/node-v10.16.3-linux-x64/bin/node /usr/bin/node
ln -s /usr/local/node-v10.16.3-linux-x64/bin/npm /usr/bin/npm
-------------------------------------------------------------------
修改IP
把里面的192.168.200.128替换成你的IP)
\home\admin_www\center\includes\Config.php
\home\www\web\game.html
\home\www\web\init_utils.js
\home\www\web\loading.html
\home\www\web\setting.js
\home\sql\backstage.sql
-------------------------------------------------------------------
给予权限:
chmod -R 777 /home/
chmod -R 777 /www/
-------------------------------------------------------------------
宝塔修改数据库密码:root
-------------------------------------------------------------------
导入数据库:
cd /home
./sk
-------------------------------------------------------------------
创建网站:
你的IP
端口88
目录/home/www/web
关闭防跨站
---
IP:127.0.0.1+你的IP
端口82
目录/home/admin_www/api/sdk
---
IP:127.0.0.1.0
端口81
目录/home/admin_www/center
重启php:
/etc/init.d/php-fpm-56 restart
-------------------------------------------------------------------
启动命令:
启动游戏:
cd /home/server/publish/tool
node start
启动子跨服:
cd /home/server/publish/tool
node start_cross
启动跨服大区:
cd /home/server/publish/tool
node start_cross_t
-------------------------------------------------------------------
游戏地址:IP:88
-------------------------------------------------------------------
运营后台:IP:81
后台账号:1
后台密码:1
-------------------------------------------------------------------
GM授权地址:IP:81/gm/gm.php
GM码:20166
玩家后台:你的IP:81/gm/
全部流程做完没出错