基于 Linux 自建怀旧游戏之 - 80 款 H5 精品小游戏合集
1)简介
最近又找到了一款宝藏游戏资源分享给大家,包含 80 款 H5 精品小游戏,都是非常有趣味耐玩的游戏,比如 植物大战僵尸、捕鱼达人、贪吃蛇、俄罗斯方块、斗地主、坦克大战、双人五子棋、中国象棋 等等超级好玩的 H5 小游戏,让大家一次爽个够~
Demo:http://game.wuhanjiayou.cn/
2)源码
链接:https://pan.baidu.com/s/1Xw-iR3DKYSsGpqrpgel5gQ?pwd=66d5
提取码:66d5
3)部署
3.1)关闭防火墙
# 关闭防火墙
[root@localhost ~] systemctl disable --now firewalld
# 关闭 SELinux
[root@localhost ~] sed -i 's/enforcing/disabled/g' /etc/selinux/config
[root@localhost ~] setenforce 0
3.2)安装 NGINX
# 安装 nginx 软件包
[root@localhost ~] yum install nginx -y
# 启用 nginx 服务
[root@localhost ~] systemctl enable --now nginx
3.3)上传源码
# 上传源码并解压
[root@localhost ~] unzip 80h5.zip
# 拷贝源码前端数据至 nginx 的默认站点目录
[root@localhost ~] cp -r 80h5/* /usr/share/nginx/html/
cp: overwrite ‘/usr/share/nginx/html/404.html’? y # 覆盖
cp: overwrite ‘/usr/share/nginx/html/index.html’? y # 覆盖
3.4)修改端口号
1. 重命名 nginx 模板文件
[root@localhost ~] cd /etc/nginx
[root@localhost ~] mv nginx.conf.default nginx.conf
mv: overwrite ‘nginx.conf’? y # 覆盖
2. 编写 nginx 配置文件
[root@localhost ~] vim /etc/nginx/nginx.conf
listen 8080; # 修改端口号信息
index index.html index.htm; # 配置支持 htm 文件的识别 ( 重要 )
3. 生效配置文件
[root@localhost ~] nginx -t
[root@localhost ~] systemctl reload nginx
4)访问验证
使用浏览器访问 http://服务器IP地址:8080
植物大战僵尸
维京战争
飞机大战
中国象棋
坦克大战
像素小鸟飞行
斗地主
大功告成~
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· 展开说说关于C#中ORM框架的用法!
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?