tvm install

一、系统需求:
1.可以访问互联网
2.关闭防火墙和selinux

二、安装步骤(进入软件包所在目录):
1.rpm -ivh daemontools-0.76-1.el6.x86_64.rpm
2.yum install desktopvideo-9.7.7-redhat.x86_64.rpm

如果安装desktopvideo-9.7.7-redhat.x86_64.rpm时报错,先更新kernel命令如下:

yum install kernel kernel-firmware kernel-headers

检查采集卡状态:BlackmagicFirmwareUpdater status

更新采集卡固件:BlackmagicFirmwareUpdater update
3.yum install dnsmasq-2.52-2.tvm.el6.x86_64.rpm
4.yum install nginx-1.2.1-8.tvm.el6.x86_64.rpm
5.yum install php*
6.rpm -ivh mainconcept-9.6.1-1.tvm.el6.x86_64.rpm  tvmcap*
7.mkdir /opt/online01

8.yum install tvmlive-2.1.6-1.tvm.el6.x86_64.rpm

9.yum install tvmhls-3.0.5-1.tvm.el6.x86_64.rpm

10.vim /etc/service/tvmlive/run(修改IP地址为采集服务器地址)
11.vim /opt/www/approve/include/domain_inc.php(修改IP地址为采集服务器地址)
    vim /opt/script/clear_file.sh(修改保留视频天数)

12.crontab -e(添加如下命令)
30 0 * * * /usr/sbin/ntpdate 58.215.39.11 >/dev/null 2>&1

13.修改/etc/sysctl.conf,在文件的末尾添加
net.core.rmem_default = 8388608
net.core.wmem_default = 8388608
net.core.rmem_max = 33554432
net.core.wmem_max = 33554432

# igmp snooping version force 2
net.ipv4.conf.all.force_igmp_version = 2
net.ipv4.conf.all.rp_filter = 2

14. /usr/local/tvmcap/tvmcap -G (生成机器编码,发给天脉获取授权码)

15.修改采集配置文件
cp /usr/local/tvmcap/tvmcap.conf /usr/local/tvmcap/英文频道名.conf

vim /usr/local/tvmcap/英文频道名.conf

说明下面格式为: 行号:参数=值
                    9:capture=card
                       12:tvm_encrypt=授权码
                       78:device_serial=采集卡序号
                       132:channel=频道英文名:中文名
                       209:use_b_slices=0
                       284:use_b_slices=0
                       343:use_b_slices=0
                       410:use_b_slices=0

16.启动采集程序
/usr/local/tvmcap/tvmcap -c /usr/local/tvmcap/相应英文频道名.conf

17.initctl restart svscan
18.service nginx restart
19.service php-fpm restart
20.service dnsmasq restart
21.sysctl -p
22.iswitch添加资源
23.cp /opt/www/ini/tvmunitall.ini /opt/www/ini/

上一篇:BZOJ 2654: tree


下一篇:foreach遍历 < 创建表 >练习题