[wm_notice]搜狗资源站是无人值守平台,看上就直接下单,付款后就能看见下载地址,直接下载!几块钱的东西买不了吃亏,买不了上当。你不买来我不劝,谁买回家谁方便;张三买马张三骑,李四没买干着急;你看我来我看你,看谁谁也不给你;求老张来借老赵,借完人家管你要,不如自己买一套!几块钱你不白花,你把方便带回家;老婆笑来孩子夸,夸我大哥会当家;回家过好日子能发家![/wm_notice]
搭建用的centos7.3
安装相关环境装
yum update-y
yum-y install gcc+gcc-c++
yum-y install golang
yum groupinstall”Development Tools”
yum-y install wget unzip
wget–no-check-certificate https://github.com/ideawu/ssdb/archive/master.zip
unzip master
cd ssdb-master
make
make install
在将SSDB以至/usr/local/ssdb下
ln-sf/usr/local/ssdb/ssdb-server/usr/local/bin/ssdb-server
ln-sf/usr/local/ssdb/tools/ssdb-cli/usr/local/bin/ssdb-cli
ln-sf/usr/local/ssdb/tools/ssdb-dump/usr/local/bin/ssdb-dump
ln-sf/usr/local/ssdb/tools/ssdb-repair/usr/local/bin/ssdb-repair
yum install httpd httpd-devel mysql mariadb-server mariadb-devel php php-devel phpmyadmin redis redis-devel php-redis-y
service httpd stopservice mariadb stop
服务端上传至以下目录
home.zip放到/目录
mysql.tgz到/var/lib/文件夹
html.tgz到/var/www/
httpd.tgz到/etc/
cd/
unzip home.zip
chmod-R 777/home/
cd
cd/var/lib/
rm-rf mysql
tar zvxf mysql.tgz
service mariadb start
cd
cd/var/www/
rm-rf html
unzip html.zip
cd/etc/
rm-rf httpd
tar zvxf httpd.tgz
service httpd start
systemctl stop firewalld.service
systemctl disable firewalld.service
winscp打开/etc/hosts
127.0.0.1 localhost localhost.localdomain VM_96_210_centos gw无论什么后面加空格gw
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
service network start
搭建完成了!
reboot
重启一下服务器(强迫症患者)
修改/var/www/目录下的serverlist文件
分区名新开分区网址游戏地址换成你的服务器IP游戏端口
{“data”:[{“id”:101,”name”:”一区”,”login”:”127.0.0.1″,”status”:1,”gateway”:”外网IP局域网IP”,”port”:8118}]}
启动游戏
service httpd start
service mariadb start
/home/start.sh
关闭游戏
/home/stop.sh
外网教程:
修改列表
var/www/html
修改成你自己的ip
6.用改之理改客户端apk
APK修改路径改ip 134.175.244.251为你的ip
assets\scripts\upgrade\config.lua
assets\scripts\app\data\ServerList.lua
assets\scripts\app\platform\testPlatform\TestProxyLayer.lua
改好了直接编译
[wm_xuk]
开通终身钻石会员、全站20000G资源终身免费下载,比零买划算得多哦!宝贝!赶快开通一个吧!
[wm_wpbutton link=”https://www.59sougou.com/user?action=vip” target=”blank” variation=”blue”]点击这里立即开通[/wm_wpbutton]
[/wm_xuk]
评论(0)