这里会显示出您选择的修订版和当前版本之间的差别。
razor:configuration [2015/03/19 17:47] cobub |
razor:configuration [2017/07/14 11:18] |
||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== 配置 ====== | ||
- | ===== 1 Redis配置 ===== | ||
- | 从0.7版本开始,强烈建议启用Redis,以便可以启动Cobub Razor中的实时报表功能。配置Redis的步骤,请参见 | ||
- | * [[en:razor:configuration|Enable Redis in Cobub Razor]] | ||
- | ===== 2 配置邮件 ===== | ||
- | |||
- | |||
- | 为了能正常接受到系统通知邮件,需要在web\application\config\email.php中设置SMTP信息: | ||
- | |||
- | <code> | ||
- | // | ||
- | $config['smtp_host'] = ''; // SMTP server address | ||
- | $config['smtp_user'] = ''; // SMTP server account name | ||
- | $config['smtp_pass'] = ''; // SMTP server account password | ||
- | $config['smtp_port'] = ''; // SMTP server port | ||
- | </code> | ||
- | |||
- | ===== 3 地理信息 ===== | ||
- | |||
- | |||
- | //重要:仅针对Cobub Razor 0.5和0.6版本,0.7版本可跳过此步骤// | ||
- | |||
- | Cobub Razor-开源的、移动应用分析系统提供了两种通过GPS/IP获得国家、省(地区)、市的方法。 | ||
- | |||
- | - 如果有GPS数据,则通过Google的接口进行转换,获得国家、省(地区)、市的信息,如果有没有则通过IP地址调用IpInfo的在线接口,以获取需要的信息; | ||
- | - 通过提供GeoIP的调用接口,可以读取GeoIP的本地IP数据库,进行数据的转换。 | ||
- | |||
- | |||
- | 目前版本安装后的默认为第1种方法。如果想切换至第2种方法,则: | ||
- | - 下载GeoIP的本地数据库文件 | ||
- | - 将解压后的GeoLiteCity.dat文件放至/web/目录下 | ||
- | - 将/web/application/config/config.php文件中的$config['get_geographical']的值改为1. | ||
- | - GeoLiteCity使用英文,所有$config['default_country']的值要改为英文,如China. | ||
- | |||
- | |||
- | This product includes GeoLite data created by MaxMind, available from http://www.maxmind.com. | ||
- | |||
- | ===== 4 下一步 ===== | ||
- | |||
- | |||
- | 以上步骤结束后,Cobub Razor即成功安装并可以正常运行。关于SDK与应用程序整合操作,请参见: | ||
- | |||
- | * [[razor:configuration|Android开发指南]] | ||
- | * [[razor:configuration|iOS开发者指南]] | ||
- | * [[razor:configuration|WindowsPhone开发者指南]] |