CentOS 安装DVD博克斯

CentOS 安装MP4Box

衔接

图片 1

[plain]view plaincopyprint?

  1. #gitclone
  2. #cdgpac
  3. #gitpull
  4. #./configure–static-mp4box–use-zlib=no–prefix=/usr/local/MP4Box
  5. #make-j4
  6. #makeinstall

安装MP4Box
衔接
[plain]view plaincopyprint?
#gitclone….

法定文书档案:

一 安装LAMP
二 安装转码工具

1.先安装JAVA

(一)安装ffmpeg。

2.安装jenkins

[plain]view
plaincopyprint?图片 2图片 3

  1. sudowget-O/etc/yum.repos.d/jenkins.repo

[html]view
plaincopyprint?图片 4图片 5

  1. sudorpm–import

[plain]view
plaincopyprint?图片 6图片 7

  1. yuminstalljenkins

安装yasm

3.设置jenkins 端口和顾客

[plain]view
plaincopyprint?图片 8图片 9

  1. sudovi/etc/sysconfig/jenkins

[css] view
plaincopyprint?图片 10图片 11

4.装置目录和日志

[html]view
plaincopyprint?图片 12图片 13

  1. /usr/lib/jenkins#安装目录
  2. /var/log/jenkins#日记目录
  1. wget
  2. tarxzvfyasm-1.2.0.tar.gz
  3. cdyasm-1.2.0
  4. ./configure
  5. make
  6. makeinstall
  7. makedistclean
  8. .~/.profile

5.jenkins运营文件

[plain]view
plaincopyprint?图片 14图片 15

  1. sudo/sbin/servicejenkinsstart

1.先安装JAVA
2.安装jenkins [plain]view plaincopyprint? sudowget-O/etc…

wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gztar xzvf yasm-1.2.0.tar.gzcd yasm-1.2.0./configuremakemake installmake distclean. ~/.profile

安装x264
[css] view
plaincopyprint?图片 16图片 17

  1. gitclone–depth1git://git.videolan.org/x264.git
  2. cdx264
  3. ./configure–enable-static
  4. make
  5. makeinstall
  6. makedistclean

git clone --depth 1 git://git.videolan.org/x264.gitcd x264./configure --enable-staticmakemake installmake distclean

安装fdk-aac
[css] view
plaincopyprint?图片 18图片 19

  1. gitclone–depth1git://github.com/mstorsjo/fdk-aac.git
  2. cdfdk-aac
  3. autoreconf-fiv
  4. ./configure–disable-shared
  5. make
  6. makeinstall
  7. makedistclean

git clone --depth 1 git://github.com/mstorsjo/fdk-aac.gitcd fdk-aacautoreconf -fiv./configure --disable-sharedmakemake installmake distclean

安装libmp3lame

[css] view
plaincopyprint?图片 20图片 21

  1. sudoapt-getinstallnasm
  2. wget
  3. tarxzvflame-3.99.5.tar.gz
  4. cdlame-3.99.5
  5. ./configure–enable-nasm–disable-shared
  6. make
  7. makeinstall
  8. makedistclean

sudo apt-get install nasmwget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gztar xzvf lame-3.99.5.tar.gzcd lame-3.99.5./configure --enable-nasm --disable-sharedmakemake installmake distclean

安装libopus

[css] view
plaincopyprint?图片 22图片 23

  1. wget
  2. tarxzvfopus-1.0.3.tar.gz
  3. cdopus-1.0.3
  4. ./configure–disable-shared
  5. make
  6. makeinstall
  7. makedistclean

wget http://downloads.xiph.org/releases/opus/opus-1.0.3.tar.gztar xzvf opus-1.0.3.tar.gzcd opus-1.0.3./configure --disable-sharedmakemake installmake distclean

安装libvpx
[css] view
plaincopyprint?图片 24图片 25

  1. gitclone–depth1
  2. cdlibvpx
  3. ./configure–prefix=”/opt/ffmpeg_sources/ffmpeg_build”–disable-examples
  4. make
  5. makeinstall
  6. makeclean

git clone --depth 1 http://git.chromium.org/webm/libvpx.gitcd libvpx./configure --prefix="/opt/ffmpeg_sources/ffmpeg_build" --disable-examplesmakemake installmake clean

安装other
[css] view
plaincopyprint?图片 26图片 27

  1. yuminstalllibx11-devlibxext-devlibXfixes-devlibvorbis-devlibtheora-devlibass-dev

yum install libx11-dev libxext-dev libXfixes-dev libvorbis-dev libtheora-dev libass-dev

安装ffmpeg
[css] view
plaincopyprint?图片 28图片 29

  1. gitclone–depth1git://source.ffmpeg.org/ffmpeg
  2. cdffmpeg
  3. ./configure–extra-libs=”-ldl”–enable-gpl–enable-libass–enable-libfdk-aac–enable-libmp3lame–enable-libopus–enable-libtheora–enable-libvorbis–enable-libvpx–enable-libx264–enable-nonfree–enable-x11grab
  4. make
  5. makeinstall
  6. makedistclean

git clone --depth 1 git://source.ffmpeg.org/ffmpegcd ffmpeg./configure --extra-libs="-ldl" --enable-gpl --enable-libass –enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grabmakemake installmake distclean

(二)安装mencoder、flvtool2等
[css] view
plaincopyprint?图片 30图片 31

  1. yumcleanall
  2. rpm-Uhv
  3. yuminstallmencoderflvtool2

yum clean allrpm -Uhv http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpmyum install mencoder flvtool2

(三)创造数量库eduVMS
[css] view
plaincopyprint?图片 32图片 33

  1. mysql-uroot-p;
  2. createdatabaseeduVMS;

mysql -uroot -p;create database eduVMS;

(四)将phpmotion源文件复制到apache目录下。
(五)修改phpmotion文件及子文件的目录权限。
[css] view
plaincopyprint?图片 34图片 35

  1. chownapache:apache-Rphpmotion;

chown apache:apache -R phpmotion;

(六)安装配备PHPshield
1、查看php版本。
[css] view
plaincopyprint?图片 36图片 37

  1. Php-v

Php -v

2、查看系统架构
[plain] view
plaincopyprint?图片 38图片 39

  1. uname-i

uname -i

3、查看系统中php的恢弘目录
[plain] view
plaincopyprint?图片 40图片 41

  1. php-i|grepextension_dir

php -i|grep extension_dir

出口邻近于:extension_dir => /usr/lib64/php/modules =>
/usr/lib64/php/modules
4、CD到地点输出的目录
[plain] view
plaincopyprint?图片 42图片 43

  1. cd/usr/lib64/php/modules

cd /usr/lib64/php/modules

5、将phpmotion/phpshield中对应的连串架构目录和相应版本的文件复制到当前目录中。并去掉后缀.lin。例如:
[plain] view
plaincopyprint?图片 44图片 45

  1. cp/var/www/html/phpmotion/phpshield/Linux_x86-64/ixed.5.3.lin./ixed.5.3

cp /var/www/html/phpmotion/phpshield/Linux_x86-64/ixed.5.3.lin ./ixed.5.3

6、通过php -i|grep
php.ini命令找到php.ini文件,编辑php.ini文件,增多extension=ixed.5.3
7、重启apache
[plain] view
plaincopyprint?图片 46图片 47

  1. /etc/init.d/httpdrestart

/etc/init.d/httpd restart

(七)配置虚构主机
编辑/etc/httpd/conf/httpd.conf文件。
[plain] view
plaincopyprint?图片 48图片 49

  1. vim/etc/httpd/conf/httpd.conf

vim /etc/httpd/conf/httpd.conf

修改如下:
1加多apache监听的IP地址和端口号:在Listen 80底下增多Listen 90
2添Gavin件目录设置
[plain] view
plaincopyprint?图片 50图片 51

  1. <Directory”/var/www/html/phpmotion”>
  2. OptionsIncludesExecCGIFollowSymLinks
  3. AllowOverrideAll
  4. Orderallow,deny
  5. Allowfromall
  6. </Directory>

<Directory "/var/www/html/phpmotion">    Options Includes ExecCGI FollowSymLinks    AllowOverride All    Order allow,deny    Allow from all</Directory>

3、加多虚构主机
[plain] view
plaincopyprint?图片 52图片 53

  1. <VirtualHost10.10.90.210:90>
  2. DocumentRoot”/var/www/html/phpmotion”
  3. ServerNamewww.eduvideo.com
  4. </VirtualHost>

<VirtualHost 10.10.90.210:90>DocumentRoot "/var/www/html/phpmotion"ServerName www.eduvideo.com</VirtualHost>

4、配置cgi。去掉注释AddHandler cgi-script .cgi
5、关闭SELinux
[plain] view
plaincopyprint?图片 54图片 55

  1. setenforce0

setenforce 0

6、重启apache
[plain] view
plaincopyprint?图片 56图片 57

  1. /etc/init.d/httpdrestart

/etc/init.d/httpd restart

(八)将/phpmotion/cgi-bin中的全体文件复制到/var/www/cgi-bin中,并修改权限为755

[plain] view
plaincopyprint?图片 58图片 59

  1. cp-r*/var/www/html/phpmotion/cgi-bin/*/var/www/cgi-bin
  2. chmod755-R/var/www/cgi-bin/*

cp -r * /var/www/html/phpmotion/cgi-bin/* /var/www/cgi-binchmod 755 -R /var/www/cgi-bin/*

(九)用浏览器进入系统实行安装
1、浏览器中输入ip:port。比如:10.10.90.210:90
2、点击continue按钮,进入step2。发现PHP
enable_dl为叉,那么修改php.ini,将enable_dl配置为On
[plain] view
plaincopyprint?图片 60图片 61

  1. vim/etc/php.ini

vim /etc/php.ini

修改后,重启apache,刷新浏览器,点击continue。
3、点击continue,配置数据库消息:
4、点击continue。配置种类消息。
5、点击continue,删除phpmotion目录下的setup目录。

[plain] view
plaincopyprint?图片 62图片 63

  1. rm-rf/var/www/html/phpmotion/setup

安装LAMP 二 安装转码工具 (一)安装ffmpeg。
安装yasm [css] view plaincopyprint?
wget
tarxzvfyasm-…

Post Author: admin

发表评论

电子邮件地址不会被公开。 必填项已用*标注