本帖付费内容售价 8钻石 本帖部分内容需要扣减钻石,您尚未登录,请 登录 或 注册
本帖最后由 277650851 于 2026-5-2 15:07 编辑
# 捕鱼大亨-Linux系统架设
运行步骤:
1.编译:
cd fish\
go build -o account.exe account\main\main.go account\main\init.go account\main\config.go
go build -o hall.exe hall\main\main.go hall\main\init.go hall\main\config.go
go build -o fish.exe game\main\main.go game\main\init.go game\main\config.go
2.解压客户端:
tar -zxvf fish.tar.gz /var/www/html/client/fish
3.配置nginx:
```
server {
listen 80;
server_name fish.com;
charset utf8;
index index.html index.htm;
location /qq {
add_header Access-Control-Allow-Origin *;
proxy_set_header X-Target $request_uri;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:9000;
}
location / {
root /var/www/html/client/fish;
add_header Access-Control-Allow-Origin *;
expires 7d;
}
}
```
配置文件位置 /common/conf 内含redis配置和qq第三方登录配置,请自行修改。
4.在线示例: https://h5.91mmy.cn/
|
|