也想出现在这里?联系我们

源码描述:

go语言,没测试,自助下载,随意下了研究吧!

1.安装环境:

yum install -y wget && wget -O install.sh https://download.bt.cn/install/install_6.0.sh && sh install.sh
    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

3.解压客户端:
tar -zxvf fish.tar.gz /var/www/html/client/fish
4.配置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第三方登录配置,请自行修改。

H5捕鱼游戏源码go语言服务器端网页版插图 H5捕鱼游戏源码go语言服务器端网页版插图2

 

也想出现在这里?联系我们
常见问题FAQ
免费下载或者VIP会员专享资源能否直接商用?
本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。
© 2024 by - 源多多资源网 & Www.Yuandd.Net. All rights reserved 蜀ICP备2024057673号-1