基于swoole扩展开发的flash游戏
安装swoole扩展:
pecl install swoole
- 设置域名指向webroot目录
- 修改webroot目录下面的index.php(SERVERIP,SERVERPORT,SOURCEURL)
- 配置gambleapp/config/default/config.php(基本不用修改)
- 导入gamble.sql
- 配置gambleapp/config/public/下面3个文件
- 设置log目录777权限
- 启动gambleapp/bin/server.php sendBox(启动843端口flash的安全策略)
- 启动gambleapp/bin/server.php
- 打开网站首页
目前环境(php5.4.2+mysql5+redis2.6.14+swoole1.6.10)兼容最新swoole版本! 注: flash客户端还不完善仅此为demo.