首席执行官-CEO
- UID
- 1
- 金叶子
- 6
- 在线时间
- 76 小时
- 注册时间
- 2023-10-27
- 最后登录
- 2024-11-23
|
腾讯云服务器,注意:最低配置4核8g
服务器系统:Ubuntu Server 18.04.1 LTS 64位
把default.zip、mongodb.zip、pokemon_server_test.tar.gz三个文件上传到/home/ubuntu/目录
安装宝塔
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ed8484bec
宝塔-安全-放行端口:1:65535
1、执行sudo passwd root设置密码
2、执行su root输入刚刚设置的密码
3、执行下面命令安装环境
apt-get install expect subversion build-essential lib32stdc++6 gcc-multilib g++-multilib python-dev pypy-dev gdb python2.7-dbg libcurl4-openssl-dev graphviz openssl libssl-dev swig gawk iotop lsof iftop ifstat iptraf htop dstat iotop ltrace strace sysstat bmon nethogs silversearcher-ag libsasl2-2 sasl2-bin libsasl2-modules python-setuptools luajit curl wget unzip nginx python-pip
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.6 main" | tee /etc/apt/sources.list.d/mongodb-org-3.6.list
apt-get update
5、上传mongodb.zip到/home/ubuntu/目录
上传之后,把mongodb.zip到解压到/根目录
6、安装mongodb
apt-get install mongodb-org=3.6.12 mongodb-org-server=3.6.12 mongodb-org-shell=3.6.12 mongodb-org-mongos=3.6.12 mongodb-org-tools=3.6.12
rm -rf /usr/lib/python2.7/dist-packages/OpenSSL
rm -rf /usr/lib/python2.7/dist-packages/pyOpenSSL-0.15.1.egg-info
pip install cython six lz4==0.8.2 numpy==1.16.0 xlrd xdot rpdb psutil fabric pycurl pycrypto M2Crypto==0.36.0 objgraph msgpack-python backports.ssl-match-hostname Markdown toro pymongo pyrasite pyopenssl ThinkingDataSdk==1.4.0
pip install tornado==4.4.2
pip install Supervisor==3.3.0
pip install cryptography==2.6
7、上传default.zip和pokemon_server_test.tar.gz到/home/ubuntu/目录
上传之后
把default.zip解压到/etc/nginx/sites-available/
把pokemon_server_test.tar.gz解压到/mnt/
8、重新加载nginx
nginx -s reload
9、给予权限
chmod 755 -R /mnt/
10、修改IP把后面的ip换成你自己的,然后执行
find /mnt -type f -name '*.py' | xargs sed -i 's/43.226.153.215/43.138.234.236/g'
find /mnt -type f -name '*.json' | xargs sed -i 's/43.226.153.215/43.138.234.236/g'
find /mnt -type f -name '*.json' | xargs sed -i 's/43.226.153.215/43.138.234.236/g'
find /mnt -type f -name '*.plist' | xargs sed -i 's/43.226.153.215/43.138.234.236/g'
11、查看md5和获取文件size
md5sum /mnt/patch/730/res/version.plist
ls -l /mnt/patch/730/res/version.plist
ab81a0f9133b9a1ea3d079cb600203d3
1037
把md5和大小复制下来
12、修改服务端文件
修改/mnt/pokemon/release/login/patch/cn/730.json 文件的md5和大小
13、启动服务器
cd /mnt/pokemon/deploy_dev
rm supervisor.sock
supervisord -c supervisord.conf
supervisorctl start all ★启动服务端★
supervisorctl status ★查看启动状态★
重启服务端!命令是:supervisorctl reload
14、查看服务状态,如果有没启动的再次start all,如果启动多次crash_platform总是FATAL,请reboot
supervisorctl status
后台:http://ip:64132
账号:admin
密码:admin
15、客户端修改
\assets\res\version.plist
链接:https://pan.baidu.com/s/1QdfBu4h9auOnxyVpIbnWeg?pwd=yerw
提取码:yerw
--来自百度网盘超级会员V8的分享
|
|