系统:Centos 7.6
———————————————————————————————————————————–
安装宝塔
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
输入y回车确认安装
———————————————————————————————————————————–
安装环境:
Nginx 1.18
mysql 5.7
Php 7.2
MongoDB 4.0.10
Redis 6.27
———————————————————————————————————————————–
宝塔放行端口:1-65535
关闭防火墙:
systemctl stop firewalld
systemctl disable firewalld
———————————————————————————————————————————–
上传服务端到服务器根目录
解压
cd /
unzip home.zip
———————————————————————————————————————————–
给权限:
chmod 777 -R /home/proj/
———————————————————————————————————————————–
安装环境:
cd /home/proj
wget https://openresty.org/download/openresty-1.19.3.1.tar.gz
tar -zxvf openresty-1.19.3.1.tar.gz
mv openresty-1.19.3.1 openresty
cd openresty
sudo yum install -y pcre-devel openssl-devel
./configure
make
make install
———————————————————————————————————————————–
配置环境变量
echo “openresty环境变量”
echo “PATH=/usr/local/openresty/bin:/usr/local/openresty/nginx/sbin:$PATH
export LC_ALL=en_US.UTF-8
export PATH” >> ~/.bash_profile
立即生效
source ~/.bash_profile
———————————————————————————————————————————–
修改数据库root密码:123456
导入数据库
mysql -uroot -p123456
create database sanguo DEFAULT CHARACTER SET utf8;
flush privileges; #
use sanguo
source /home/sql/sanguo.sql
exit;
———————————————————————————————————————————–
修改服务端文件IP:替换:192.168.200.99
home/proj/common/settings.lus
home/proj/goserver/admin/assets/web/.env.development
home/proj/goserver/admin/assets/web/dist/js/app.3d18e251.js
home/proj/goserver/admin/assets/web/dist/js/highlight.js.0adc4c0f.js
home/proj/goserver/agent_admin/agent_assets/web/.env.development
home/proj\goserver\agent_admin\agent_assets\web\dist\js\app.bfd4e5a3.js
home/proj\goserver\agent_admin\agent_assets\web\dist\js\highlight.js.0adc4c0f.js
home\proj\pyapi\wxpay\app.py
www\wwwroot\game\assets\resources\import\24\241bc4ec-587f-41fa-a24d-e904c5f906c6.9f804.json”
———————————————————————————————————————————–
创建网站:
IP:85
网站目录:/home/proj/goserver/admin/assets/web/dist
127.0.0.1:82
网站目录:\www\wwwroot\game
———————————————————————————————————————————–
启动服务端:
cd /home/proj/apiserver
nginx -p `pwd` -c conf/nginx.conf
cd /home/proj/skynet
sh getkey.sh
将生成的key替换到/home/proj/skynet/key.txt中
启动登录服务:
./skynet ../loginserver/prodconfig
启动游戏服务:
./skynet ../gameserver/prodconfig
启动管理后台服务:
cd /home/proj/goserver
nohup ./mygo &
下面两个可以不启动
cd /home/proj/pyapi/kefu
python main.py
cd /home/proj/pyapi/wxpay
sh start.sh
———————————————————————————————————————————–
配置区服:
IP:85/#/login?next=%2F
用户名:admin
密 码:admin
游戏配置-区服配置-添加-名称随意-保存-开服-数量填1-保存
邮件管理里可以发送物品,要输入角色名,游戏内可以改名。
———————————————————————————————————————————–
客户端 反编译APK 修改192.168.200.66
assets/assets/main/index.7ab56.js
assets/assets/resources/import/24/241bc4ec-587f-41fa-a24d-e904c5f906c6.9bd57.json
smali_classes4\cn\wyyidc\myapplication\LiveLiterals$MainActivityKt.smali
- 最新
- 最热
只看作者