安裝
wget http://download.macromedia.com/pub/adobemediaserver/AdobeMediaServer5_x64.tar.gz tar zxvf AdobeMediaServer5_x64.tar.gz cd AMS_5_0_3_r3029/ ./installAMS
中間按空白鍵跳過
Do you agree with the license agreement? (y/n):
你同意許可協議嗎? (y/n)
Please enter your Adobe Media Server 5 serial number.
輸入Adobe Media Server 5序列號
Name:tam/CORE Serial:序號
following directory Default [/opt/adobe/ams]:
自行選擇安裝目錄或是按enter預設安裝
administration, monitoring, and debugging. Please enter the administrative username:
這裡的意思大概就是需要一個用戶名和密碼,通過Adobe媒體服務器管理控制台進行管理、監控和調試,需要在這裡輸入用戶名,比如:test,繼續
For increased security, enter a password of at least 8 characters. Please enter the administrative password:
接著要求我們輸入密碼,我設置的密碼是:12345678。密碼最少是8位,緊接著重複輸入一次密碼。
When the Adobe Media Server service is started, the service can be run as a user other than "root". The server would change to this user when the server is started and has acquired its ports. Please enter the user that the Adobe Media Server service will run as Default user [ams]:
接著提示我們FMS服務以什麼身份運行,這裡我們默認就行,直接回車,默認的是【ams】
User "ams" does not exist. Do you want to create it?(y/n) Default [y]:
之後會提示我們ams用戶不存在,要幫我們創建該用戶,接受便可,直接回車,默認是【y】
User "ams" does not exist. Do you want to create it?(y/n) Default [y]:
接著會提示我們,要創建一個用戶所歸屬的組,這裡我們默認就行,直接回車,默認的是【ams】
Group "ams" does not exist!. This installer will create one ... User "ams" created and added to group "ams" Do you want to install apache? (y/n) Default [y]:
接著提示我們,組ams不存在,幫我們創建了該組,創建了ams用戶並添加到了該組中。
然後提示我們是否需要安裝apache,這個時候你輸入y會自動安裝apache。因為我已經安裝了nginx,所以,我輸入了:n
The Adobe Media Server communicates on the IANA-assigned port of 1935, which is the port most Flash applications expect, and can also communicate on port 80 over RTMPT, HTTP webserver proxy, and for HTTP Dynamic Streaming origin services. Please enter the Adobe Media Server port(s), comma-separated Default [1935,80]:
這個時候是提示我們設置FMS服務的端口和web服務所需要的端口,這裡直接回車,默認即可。
Please enter the port to use for the Admin service. You can only specify one admin port. Default [1111]:
這是設置管理FMS的服務端口。通過這個端口,我們可以通過FMS提供的flash應用界面登錄並管理FMS系統。直接回車即可,默認為1111
Do you want the Adobe Media Server service to run as a daemon? (y/n) Default [y]:
問我們是否要以守護進程的形式運行,當然是OK了,直接回車即可,默認為y
Do you want to start the Adobe Media Server after the installation is done? (y/n) Default [y]:
您是否要啟動Adobe Media Server
安裝完成後? (是/否)
默認值[y]:
FMS5.0的安裝配置已經完成了,接下來就會出現:
----------- Install Action Summary ----------- Installation directory = /opt/adobe/ams Adobe Media Server Port = 1935 Adobe Media Admin Server Port = 1111 Interface (IP address) AMS will listen on = auto-detect Apache Install = Yes Administrative username = ams Administrative password = (suppressed) service owner = ams service user = ams service group = ams Run as daemon = Yes Start Adobe Media Server = Yes Proceed with the installation? (y/n/q): y
安裝摘要,檢查一下安裝配置是否正確。如果有誤的話,請輸入n重新來一遍。如果不想繼續安裝下去,輸入q退出安裝。輸入y立即安裝。我們輸入y,然後耐心等待他安裝完成
Installing Adobe Media Server files... Configuring Adobe Media Server... Adding "ams" service. Setting default admin to "ams". Setting autostart for "ams". Server:ams command:start WARNING: Your Linux distribution, RedHat x86_64 is not supported by this installer. 14991 WARNING: AMS requires the maximum number of processes > 32K. Adjust ulimit to match system requirements. NPTL 2.17 Starting Adobe Media Server (please check /var/log/messages) Admin server:amsadmin command:start WARNING: Your Linux distribution, RedHat x86_64 is not supported by this installer. Starting Adobe Media Admin Server (please check /var/log/messages) The Adobe Media Server installation is complete.
Adobe Media Server安裝已完成。
啟動關閉命令
service ams start service ams stop