带你怎样炫酷的玩转服务器,云服务器居然还可以这样玩

今天就来分享一个云服务器你想不到的酷炫玩法,相信学会后会撑握更多有意思的技术,相信大家都玩过很多手游游戏等等,那么游戏是如何在服务器上运行的?今天以某仙侠手游为例,百度源码即可!然后可以根据下面介绍,架设到云服务器上:

带你怎样炫酷的玩转服务器,云服务器居然还可以这样玩

1.首先准备一台云服务器,配置在4核8G或者2核4G

2.可以到这里去选:

购买服务器以后使用工具连结云服务器,如何连接作为基础就不费口舌了

下面是详细步骤:

1.执行命令关闭防火墙

systemctl stop firewalld
systemctl disable firewalld

2.执行命令安装宝塔

Install -y WGet ` 65286 using Yum or up2date` 65286; Wget-o installation.HTTP: download.Sh.bt.cn/install/install。

1.安装 mysql5.6 php5.5 nginx1.4
———修改数据库密码改为:123456
———Database configuration: lower_ case_ table_ names=1
——— 端口全开

2.执行命令开启数据远程访问

mysql -uroot -p123456
Grant all permissions to *.*To “root” @ “%” identified by “123456” with gooption;
FLUSH PRIVILEGES;exit

3.导入数据库(在下载的文件包里有)

将 xq.zip 上传到根目录(在下面的包中)

解压 (可以用宝塔自带的解压)

宝塔点击新建一个站点 端口进行设置为81 搭游戏发展需要通过域名,填域名处直接填IP就行

Something Something Something Something/data/game/htdocscenter/gateway/site
环境:执行
Echo “includes LD.so.conf.d / *。conf
/data/game/lib
“ > /etc/ld.so.conf && ldconfig

服务端文件:

/data/game/agent/yx03_dev_s1/server/config/cross。xml
Http://data/game/agent/yx03 DEV s 1/server/publish RELEASE/SERVERCONFIG.PHP.xml

网站文件

(UE)修改)/data/game/htdocs/center/gateway/site/cdn/yx03/cn/and/yx03\u cn\u a1/luajit/init
(UE something/data/game/htdocs/center/gateway/site/cdn/yx03/CN/IOS/YX03 CN a 1/lua/init
/data/game/htdocs/center/gateway/site/dev/az1。txt
/ data/game/root/center/Gateway/website/dev/Az.txt
/data/game/htdocs/center/gateway/site/dev/query2。txt
gm修改:\gm\user\config.php

安卓客户端IP(UE)

Com. “Yves.”. Dw Assets Assets Assets Bundle Luajit INIT-48270F79579A74548B6BB9D05FE52E

启动:

ifconfig eth0:0 139.155.11.160 netmask 255.255.255.0 up
cd/data/game/agent/yx03_dev_s1/server
./start.sh
Admintool admin password 123456

Authorization background address 139.155.84.230:81 / yx03_ dev_ s1/gm/gm.PHP GM代码123456必须以dev_作为前缀,如dev_

端口展示如下,为了安全,可以对应如下端口放开,其它端口可以关闭!

tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1558/nginx: master
tcp 0 0 0.0.0.0:81 0.0.0.0:* LISTEN 1558/nginx: master
tcp 0.0.0.0:20182 0.0.0.0:* LISTEN 4208/./EXEloginserv
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 954/sshd
TCP 00.0.0.0:201510.0.0.0.0:* LISTEN 4472/./EXEgateway_r
tcp 0.0.0.0:20183 0.0.0.0:* LISTEN 4208/./EXEloginserv
TCP 00.0.0.0:201840.0.0.0.0:* LISTEN 4208/./EXEloginserv
tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN 1226/python
tcp 0 0 0.0.0.0:888 0.0.0.0:* LISTEN 1558/nginx: master
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 793/master
tcp 0.0.0.0:20190 0.0.0.0:* LISTEN 4989/./EXEcrossserv
TCP 0 0 0.0.0.0:20160* LISTEN 3953/./EXEdataacces
tcp 0.0.0.0:20161 0.0.0.0:* LISTEN 4751/./EXEgameworld

以上是关于“带你怎样炫酷的玩转服务器,云服务器居然还可以这样玩 ”的介绍,如需购买云服务器,推荐使用酷盾安全,独享IP,弹性灵活各种配置任您选配,最低只需要43/月,免费帮助配置环境,挂载磁盘等,协助处理简单问题,同时提供快速0元备案,让您快速运营,详情请咨询酷盾安全。

产品选购地址:

https://www.kdun.com/server/buy.html

原创文章,作者:路飞,如若转载,请注明出处:https://www.kdun.com/ask/289.html

(0)
路飞新媒体运营
上一篇 2021-11-10 15:55
下一篇 2021-11-12

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

云产品限时秒杀。精选云产品高防服务器,20M大带宽限量抢购  >>点击进入