当前位置: 首页 > news >正文

网站 宕机 优化soho网站建设教程

网站 宕机 优化,soho网站建设教程,建设银行官方网站打不开啊,完整网站设计视频演示 咸鱼之王_手游_开服 游戏管理后台界面 源码获取在文章末尾 源码获取在文章末尾 源码获取在文章末尾 或者直接下面 https://githubs.xyz/y28.html 1.安装宝塔 yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh &…

视频演示

咸鱼之王_手游_开服

游戏管理后台界面

源码获取在文章末尾

源码获取在文章末尾

源码获取在文章末尾

或者直接下面

https://githubs.xyz/y28.html

1.安装宝塔

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 mongo4.0 redis7.2

在已安装出现上述,则安装完成

修改下数据库密码:123456

2.安装,配置服务端

用 xshell 连接到服务器, 执行关闭防火墙:

systemctl stop firewalld

systemctl disable firewalld

用 xftp 上传 home.zip 服务端文件到根目录:

解压

[root@hcss-ecs-6973 ~]# cd / [root@hcss-ecs-6973 /]# unzip home.zip

设置权限

[root@hcss-ecs-6973 /]# chmod 777 -R /home/

安装openresty1.19.3.1 , 安装

[root@hcss-ecs-6973 /]# cd /home/proj [root@hcss-ecs-6973 proj]# wget https://openresty.org/download/openresty-1.19.3.1.tar.gz [root@hcss-ecs-6973 proj]# tar -zxvf openresty-1.19.3.1.tar.gz [root@hcss-ecs-6973 proj]# mv openresty-1.19.3.1 openresty [root@hcss-ecs-6973 proj]# cd openresty [root@hcss-ecs-6973 openresty]# sudo yum install -y pcre-devel openssl-devel [root@hcss-ecs-6973 openresty]# ./configure [root@hcss-ecs-6973 openresty]# make [root@hcss-ecs-6973 openresty]# 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

环境生效

[root@hcss-ecs-6973 openresty]# source ~/.bash_profile

导入数据库(一起复制,然后一起执行)

mysql -uroot -p123456 create database sanguo DEFAULT CHARACTER SET utf8; flush privileges; # use sanguo source /home/sql/sanguo.sql exit;

回到宝塔,添加站点

添加 服务器IP:85端口

网站目录指向:/home/proj/goserver/admin/assets/web/dist

127.0.0.1:82端口

网站目录指向:/home/proj/web-mobile

替换服务器ip

这里要注意把 “你的IP”替换成 服务器ip ,然后再执行

find /home/proj/ -type f -name '*.*' | xargs sed -i 's/123.207.42.5/你的IP/g'

find /home/proj/ -type f -name '*.py' | xargs sed -i 's/123.207.42.5/你的IP/g'

find /home/proj/ -type f -name '*.js' | xargs sed -i 's/123.207.42.5/你的IP/g'

find /home/proj/ -type f -name '*.development' | xargs sed -i 's/123.207.42.5/你的IP/g'

以下是具体文件路径,可以对照检查下,替换了没有

\home\proj\common\settings.lua (2 hits) \home\proj\goserver\admin\assets\web\.env.development (1 hit) \home\proj\goserver\admin\assets\web\dist\js\app.3d18e251.js (2 hits) \home\proj\goserver\admin\assets\web\dist\js\highlight.js.0adc4c0f.js (1 hit) \home\proj\goserver\agent_admin\agent_assets\web\.env.development (1 hit) \home\proj\goserver\agent_admin\agent_assets\web\dist\js\app.bfd4e5a3.js (2 hits) \home\proj\goserver\agent_admin\agent_assets\web\dist\js\highlight.js.0adc4c0f.js (1 hit) \home\proj\pyapi\wxpay\app.py (1 hit) \home\proj\web-mobile\assets\main\index.bcc80.js (3 hits) \home\proj\web-mobile\assets\resources\import\24\241bc4ec-587f-41fa-a24d-e904c5f906c6.9f804.json (1 hit)

你会发现 \home\proj\common\settings.lua 这个文件没有替换,我们用vim工具手动修改下文件

[root@hcss-ecs-6973 common]# vim /home/proj/common/settings.lua

改完之后,按下 ESC 键退出编辑模式,按下: wq ,回车 保存退出

3. 启动服务器

启动apiserver

[root@hcss-ecs-6973 common]# cd /home/proj/apiserver

[root@hcss-ecs-6973 apiserver]# nginx -p `pwd` -c conf/nginx.conf

启动gameserver

[root@hcss-ecs-6973 apiserver]# cd /home/proj/skynet

[root@hcss-ecs-6973 skynet]# sh getkey.sh

会生成一串密钥,然后将密钥放到 /home/proj/skynet/key.txt 里面,之前有要覆盖

[root@hcss-ecs-6973 skynet]# vim //home/proj/skynet/key.txt

启动

[root@hcss-ecs-6973 skynet]# ./skynet ../loginserver/prodconfig

[root@hcss-ecs-6973 skynet]# ./skynet ../gameserver/prodconfig

启动goserver

[root@hcss-ecs-6973 skynet]# cd /home/proj/goserver [root@hcss-ecs-6973 goserver]# ./mygo

登录游戏管理后台

http://服务器ip/#/login

账号密码: admin/admin

添加区服

添加一个服后,点击开服

启动游戏H5

http://60.204.151.23:82/

随便注册一个就可以玩了呀。。。

4. 源码获取(含视频教程)

https://githubs.xyz/y28.html

http://www.yayakq.cn/news/812273/

相关文章:

  • 建网站北京无锡网站开发定制开发
  • 网站调研表域名被锁定网站打不开怎么办
  • 湛江网站建设皆选小罗23潍坊网站模板在哪
  • 嘉兴网站建设公司做网站的费用怎么记账
  • 绍兴cms建站模板jsp网站建设项目实践
  • 网站建设三网合一指的是什么嵌入式软件培训
  • 网页界面设计调查问卷福州网站推广优化
  • 怎么自己做网站服务器linux建设网站需要什么
  • 有什么做的好的ppt排版网站电脑手机一体网站
  • 韩国免费行情网站的推荐理由wordpress是什么语言开发的
  • 制作企业网站的新闻显示深圳网站开发企业
  • 女生做网站编辑好不好H5网站模板修改教程
  • 如何做网站销售凡科网网站建设
  • 常州网站建设工作室wordpress主题2019
  • 百度怎样收录网站宁波seo在线优化公司
  • 上海浦东医院网站建设常州做的网站的公司哪家好
  • 优化网站的软件网站建设论文提纲
  • 顶尖的设计网站贵阳网页设计培训学校
  • 制作网站软件作品o2o网站建设技术
  • 网站营销单页怎么设计方案企业推广费用占比多少合适
  • 网站建设北京个人网站切图是什么意思
  • 孝感网站设计摄影工作室网站源码
  • 贵州西能电力建设有限公司网站厦门网站开发公司哪家好
  • 企业网站的用户需求分析49you网页游戏平台
  • 怎么建设网站怎么样网站做子站点有什么用
  • 杭州网站的优化wordpress 最大上传
  • 建设生鲜网站价格wordpress 更改首页
  • 做网站电商云数据库有用吗株洲有名的网站
  • 网站空间和数据库的关系手机网页无法访问如何解决
  • 网站建设 镇江丹阳企业seo网站推广公司