资源预览内容
第1页 / 共7页
第2页 / 共7页
第3页 / 共7页
第4页 / 共7页
第5页 / 共7页
第6页 / 共7页
第7页 / 共7页
亲,该文档总共7页全部预览完了,如果喜欢就下载吧!
资源描述
风行在线技术有限公司EPG服务接口部署说明Ver.1.0编日制:期:谢博钒 审日核:期:批日准:期:2015/11/13 风行在线技术有限公司变更履历日期 版本号 修改说明 修改人谢博钒核准人2015/11/13 1.0 创建初稿1 风行在线技术有限公司目录1.2.3.系统运行环境 . 3系统架构图 . 3代码目录结构 . 34. EPG服务接口部署 . 44.1.4.2.4.3.从git获取代码 . 4Tengine配置 . 4安装软件依赖和环境配置 . 54.3.1. 安装coreseek3.2 . 5创建软链和相关目录 . 54.3.2.2 风行在线技术有限公司1. 系统运行环境配置项 Software & Version CentOS 6.2(64位)Tengine 2.0.3 操作系统Web Server 数据库 Mysql 5.5+ 后端程序 PHP 5.5,phpredis 、LDAP扩展Redis 2.8 缓存/KV 存储搜索引擎 Coreseek 3.2 2. 系统架构图图 1系统架构图3. 代码目录结构目录 说明jl.tv.funshion.com jm.tv.funshion.com jo.tv.funshion.com js.tv.funshion.com jv.tv.funshion.com phplib 直播接口目录媒体接口目录首页/定制项接口目录搜索/检索接口目录小视频接口目录公共 lib库3 风行在线技术有限公司4. EPG服务接口部署4.1.从 git获取代码mkdir p /usr/website/; cd /usr/website/; git clone http:/code.funshion.com/brazil/jupiter_php_api.git; chown -R nginx:nginx /usr/website/jupiter_php_api; 4.2. Tengine配置server listen 80; server_name jm.tv.funshion.com jo.tv.funshion.com js.tv.funshion.com jv.tv.funshion.com jl.tv.funshion.com; index index.php index.html index.htm; set $root_path /usr/website/jupiter_php_api/; root $root_path; try_files $uri $uri/ rewrite; location rewrite rewrite /media/(.*)/v1$ jm.tv.funshion.com/v1/index.php?$1 last; rewrite /video/(.*)/v1$ jv.tv.funshion.com/v1/index.php?$1 last; rewrite /search/(.*)/v1$ js.tv.funshion.com/v1/index.php?$1 last; rewrite /config/(.*)/v1$ jo.tv.funshion.com/v1/index.php?$1 last; rewrite /live/(.*)/v1$ jl.tv.funshion.com/v1/index.php?$1 last; location .php fastcgi_pass 127.0.0.1:9000; fastcgi_index /index.php; include fastcgi_params; fastcgi_split_path_info (.+.php)(/.+)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; 4 风行在线技术有限公司fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; location * /(css|img|js|flv|swf|download)/(.+)$ root $root_path; 4.3.安装软件依赖和环境配置4.3.1. 安装 coreseek3.2 wget http:/www.coreseek.cn/uploads/csft/3.2/coreseek-3.2.14.tar.gz tar xzvf coreseek-3.2.14.tar.gz cd coreseek-3.2.14 cd mmseg-3.2.14 ./bootstrap ./configure -prefix=/usr/local/mmseg3 make & make install cd . cd csft-3.2.14 sh buildconf.sh ./configure -prefix=/usr/local/coreseek -without-unixodbc -with-mmseg -with-mmseg-includes=/usr/local/mmseg3/include/mmseg/ -with-mmseg-libs=/usr/local/mmseg3/lib/ -with-mysql make & make install cd . 4.3.2. 创建软链和相关目录ln -s /usr/website/jupiter_php_api/phplib /usr/website/jupiter_php_api/jl.tv.funshion.com/phplib; ln -s /usr/website/jupiter_php_api/phplib /usr/website/jupiter_php_api/jm.tv.funshion.com/phplib; ln -s /usr/website/jupiter_php_api/phplib /usr/website/jupiter_php_api/jo.tv.funshion.com/phplib; ln -s /usr/website/jupiter_php_api/phplib /usr/website/jupiter_php_api/js.tv.funshion.com/phplib; ln -s /usr/website/jupiter_php_api/phplib /usr/website/jupiter_php_api/jv.tv.funshion.com/phplib; ln -s /usr/website/jupiter_php_api/jl.tv.funshion.com/conf-online /usr/website/jupiter_php_api/jl.tv.funshion.com/conf; ln -s /usr/website/jupiter_php_api/jm.tv.funshion.com/conf-online /usr/website/jupiter_php_api/jm.tv.funshion.com/conf; ln -s /usr/website/jupiter_php_api/jo.tv.funshion.com/conf-online /usr/website/jupiter_php_api/jo.tv.funshion.com/conf; 5 风行在线技术有限公司ln -s /usr/website/jupiter_php_api/js.tv.funshion.com/conf-online /usr/website/jupiter_php_api/js.tv.funshion.com/conf; ln -s /usr/website/jupiter_php_api/jv.tv.funshion.com/conf-online /usr/website/jupiter_php_api/jv.tv.funshion.com/conf; 6
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号