您现在的位置是:网站首页 > 阿里云服务器 >

手游白娘子架设教程与环境安装

2019-11-25 12:34阿里云服务器 人已围观

简介公子姚架设教程,网址:gsyds.cc QQ同微信:502428990 ---------------------------------------------------------------- 服务器选购地址: https://www.aliyun.com/acts/hotsale?source=5176.11533457userCode=bnpmb2vvtype=copy 上面网址打开,选用2核4G...

公子姚架设教程,网址:gsyds.cc
 
QQ同微信:502428990
 
----------------------------------------------------------------
服务器选购地址:https://www.aliyun.com/acts/hotsale?source=5176.11533457&userCode=bnpmb2vv&type=copy
 



上面网址打开,选用2核4G内存的就够用了!
-------------------------------------------------------------------------------------------


 
1、关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
-------------------------------------------------------------------------------------------
2、安装宝塔/mongodb/Nginx/php5.4
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh
--------------------------------------------------------------------------------------------------------
3、安装 nginx1.14  php5.5  mongodb
----------------------------------------------------------------------------------------------------
mongodb账号密码设置
 
mongo
use admin
db.createUser({user:"root",pwd:"YXTxsaj22WSJ7wTG",roles:[{role:"root",db:"admin"}]})
exit
-------------------------------------------------------------------------------------------------------------
启动mongodb
 
/etc/init.d/mongodb start
 
-------------------------------------------------------------------------------------------------------------
安装 unzip
yum install -y unzip zip
yum install nc
 
-------------------------------------------------------------------------------------------------------------
 
上传home.zip到根目录下
解压服务端:
cd /
unzip home.zip
--------------------------------------------------------------------------------------------------------
 
pip install DBUtils
 
cd /home/pymongo-3.5.1
 
python setup.py install
 
pip install setuptools
 
-----------------------------------------------------------------------------------------
本地解压 sh.tgz   然后单个单个上传到 /home/snake  目录下
 
chmod -R 777 /home
 
 
启动游戏:
 
cd /home/snake
./all_start.sh
 
 
等到返回输入框
 
 
 
输入netstat -lntp 看下进程
 
 
 
客户端修改:apk用压缩包打开
 
修改 CServerPhoneCtrl.lua文件IP
 
---------------------------------------------------------------
--------------------------------------------------------------
 
打包版本为0
 

Tags:

标签云

站点信息

  • 文章统计234篇文章
  • 标签管理标签云
  • 微信公众号:扫描二维码,关注我们