日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

fms安装教程 linux_FMS安装

發(fā)布時間:2024/9/27 linux 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 fms安装教程 linux_FMS安装 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

FMS安裝

1. 修改密碼

# passwd root

# ElighT2013-08-20

# ElighT2013-08-20

2. 系統(tǒng)升級

# yum update

3. 掛載數(shù)據(jù)盤

查看目前機器上有幾塊硬盤

# fdisk -l

顯示有2塊硬盤:

Disk /dev/xvda: 21.5 GB, 21474836480 bytes

255 heads, 63 sectors/track, 2610 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00073f45

Device Boot Start End Blocks Id System

/dev/xvda1 * 1 2611 20970496 83 Linux

Disk /dev/xvdb: 107.4 GB, 107374182400 bytes

255 heads, 63 sectors/track, 13054 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00000000

用fdisk /dev/xvdb進行分區(qū)

# fdisk /dev/xvdb

輸入m 可以得到幫助信息:

Command action

a toggle a bootable flag

b edit bsd disklabel

c toggle the dos compatibility flag

d delete a partition

l list known partition types

m print this menu

n add a new partition

o create a new empty DOS partition table

p print the partition table

q quit without saving changes

s create a new empty Sun disklabel

t change a partition's system id

u change display/entry units

v verify the partition table

w write table to disk and exit

x extra functionality (experts only)

輸入n 添加一個新的分區(qū)

n

出現(xiàn)

Command action:

e extended

p primary partition (1-4)

輸入e為創(chuàng)建擴展分區(qū),輸入p為創(chuàng)建主分區(qū),這里我們選擇p

p

primary partition (1-4)

輸入了1

First Cylinder(1-1014,default 1): 1//第一個主分區(qū)起始的磁盤塊數(shù),可以選擇默認值

Last cylindet, +cylinders or +size{K,M,G} (1-13054, default 13053)

默認

這樣我們就創(chuàng)建完一個分區(qū),如果要創(chuàng)建更多分區(qū)可以照上面的步驟繼續(xù)創(chuàng)建。所有分區(qū)創(chuàng)建完后用w保存分區(qū)。

Command (m for help): w

The partition table has been altered!

重啟服務(wù)器:# reboot

可以用#fdisk -l 命令檢查剛剛所建分區(qū):

Disk /dev/xvda: 21.5 GB, 21474836480 bytes

255 heads, 63 sectors/track, 2610 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00073f45

Device Boot Start End Blocks Id System

/dev/xvda1 * 1 2611 20970496 83 Linux

Disk /dev/xvdb: 107.4 GB, 107374182400 bytes

255 heads, 63 sectors/track, 13054 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0xa13a731c

Device Boot Start End Blocks Id System

/dev/xvdb1 1 13054 104856223+ 83 Linux

對要掛載的分區(qū)進行格式化,用如下命令將新建的分區(qū)格式化為ext3

# mkfs -t ext3 -c /dev/xvdb1

掛載分區(qū)到opt目錄

# mount /dev/xvdb /opt

用df命令進行查看

df -lh

出現(xiàn)下列信息:

Filesystem Size Used Avail Use% Mounted on

/dev/xvda1 20G 1.6G 18G 9% /

tmpfs 939M 0 939M 0% /dev/shm

/dev/xvdb 99G 188M 94G 1% /opt

為了在每次系統(tǒng)啟動時自動掛載新分區(qū),需要修改/etc/fstab文件來進行自動掛載

# vi /etc/fstab

在文件的末位加入如下一行:

/dev/xvdb1 /opt ext3 defaults 1 2

4. 安裝httpd服務(wù)

# yum install httpd

開機自動啟動httpd服務(wù)

# chkconfig httpd on

5. 安裝FMS4.5.6

# yum install compat-libcap1

# cd tmp

從官網(wǎng)直接下載FlashMediaServer4.5_x64.tar.gz到tmp目錄下:

# wget -c http://download.macromedia.com/pub/flashmediaserver/updates/4_5_6/Linux_Release_x64/FlashMediaServer4.5_x64.tar.gz

解壓:

# gunzip FlashMediaServer4.5_x64.tar.gz

# tar -xf FlashMediaServer4.5_x64.tar

# rm -rf FlashMediaServer4.5_x64.tar

通過vi 修改3個文件:

# cd FMS_4_5_6_r5012

# vi adminserver

顯示行號:Shift & :,輸入set nu

32行后加:

cd_check "CentOS release 6" /etc/redhat-release centos-6-i686

95行后加:

centos-6-i686)

;;

# vi installFMS

顯示行號:Shift & :,輸入set nu

191行后加:

cd_check "CentOS release 6" /etc/redhat-release centos-6-i686

333行后加:

centos-6-i686)

;;

# vi server

顯示行號:Shift & :,輸入set nu

33行后加:

cd_check "CentOS release 6" /etc/redhat-release centos-6-i686

96行后加:

centos-6-i686)

;;

開始安裝FMS

# ./installFMS

按Enter

按Ctrl + C跳過條款顯示

是否同意條款:y

提示輸入serial number:1462-5864-7783-6034-8316-3718

安裝目錄:默認([/opt/adobe/fms,按回車鍵)

管理員名稱:elight.fms.admin

管理員密碼:ZhuXuedong20130819

用戶名:默認([fms])

用戶組:默認([fms])

是否安裝apache:n

服務(wù)端口:1935

管理端口:默認([1111],按回車鍵)

是否后臺運行:默認([y],按回車鍵)

安裝完成后是否啟動AMS:默認([y],按回車鍵)

安裝是否繼續(xù):y

安裝成功:

The Adobe Flash Media Server installation is complete.

編輯httpd配置文件:

# vi /etc/httpd/conf/httpd.conf

276行去掉行首#:ServerName www.example.com:80

最后行后加:

Alias /media "/opt/adobe/fms/applications/vod/media"

保存并退出httpd.conf的編輯:

Esc -> Shift + : -> 輸入x,回車

啟動httpd服務(wù):

service httpd start

訪問:http://112.124.12.92/fms/可以看到FMS已經(jīng)正常啟動。

重啟系統(tǒng)后訪問:http://112.124.12.92/fms/,FMS可以正常啟動。

頁面的視頻并未播放,但通過http://112.124.12.92/fms/swfs/adobedemoplayer_pc.swf?src=rtmp://112.124.12.92/vod/mp4:sample2_1000kbps.f4v可以播放。

標簽:fms

總結(jié)

以上是生活随笔為你收集整理的fms安装教程 linux_FMS安装的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。