0
点赞
收藏
分享

微信扫一扫

蓝牙连接手机播放音乐的同时传输少量数据,那些蓝牙芯片可以实现呢

不会弹吉他的二郎腿 2024-05-07 阅读 36
游戏

1)简介

Demo:http://game.wuhanjiayou.cn/

image.png

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

image.png

4)访问验证

使用浏览器访问 http://服务器IP地址:8080

image.png

image.png

image.png

image.png

image.png

image.png

image.png

image.png

举报

相关推荐

0 条评论