1 软硬件环境
1.1 硬件环境
CPU Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz 内存 8GB 硬盘 80GB 网卡 Atheros Communitions PCI-E Gigabit Etherent Controller (NDIS 6.20) 操作系统 RHEL6.4_x86_64 Media Server WowzaMediaServer-3.6.2(试用版) Media Client Firefox; ffplay; VLC Player
1.2 软件环境
2 安装配置
2.1 安装前准备
2.1.1 选择部署方式
Wowza Server可以单独部署在一台服务器上,也可以作为集群环境部署到多台服务器上。本次仅简单部署到一台机器上。
推荐阅读:
2.1.2 下载Wowza Server软件包下载的文件为:WowzaMediaServer-3.6.2.rpm.bin
2.1.3 准备Wowza Server License key对于Wowza Server试用版,在Wowza官方网站上申请一个30天试用版本的License Key即可。地址:。
2.1.4 安装JavaWowza Media Server 3.5 是一个基于Java 6 (也就是 1.6) 和Java 7 (也就是 1.7)的应用程序,需要先安装Java Runtime Environment (JRE) 6 或以上版本。如果要开发服务端应用, 那就需要先安装Java Development Kit (JDK) 6或以上版本。服务器也实现了Java Management Extensions (JMX) 接口,用于对服务器进行管理和监控。JConsole是一个很流行的JMX控制台,它被包含在JDK中。
因此,这意味着什么呢?如果你想要开发服务端应用或监控一个本地或远程的Wowza Media Server,你必须先安装JDK version 6 (也就是 1.6)或更高版本。如果你仅仅是部署Wowza Media Server用于使用,那么你只需要安装JRE version 6 (也就是1.6) 或更高版本。 我们推荐你为自己的平台安装最新的Java JDK 或JRE版本。如果你使用的是64位操作系统,请确认也选择64位的Java安装包。
你可以从Oracle的官网下载Java?。
如果你需要验证是否已经正确地安装并运行了Java 6 (也就是 1.6) 或Java 7 (也就是 1.7),你可以打开命令行提示窗口,并输入以下命令:
java -version
如果Java已经被正确的安装和配置,系统会返回一个等于或大于1.6的版本号。
2.2 安装步骤直接执行解压出来的文件就可以进行安装了:./WowzaMediaServer-3.6.2.rpm.bin(如果提示没有权限执行的话,为其加上可执行权限:chmod +x WowzaMediaServer-3.6.2.rpm.bin)。
[root@yuanhuan install_softwares]# ./WowzaMediaServer-3.6.2.rpm.bin
WOWZA MEDIA SOFTWARE
END USER LICENSE AGREEMENT ("EULA") VERSION 3.6
NOTICE: BY DOWNLOADING, INSTALLING, COPYING OR
OTHERWISE USING THE SOFTWARE, YOU AGREE TO BE BOUND BY
THE TERMS OF THIS EULA. IF YOU DO NOT AGREE TO THE
TERMS OF THIS EULA, YOU MAY NOT DOWNLOAD, INSTALL, COPY
OR USE THE SOFTWARE. "YOU" MEANS (1) THE NATURAL PERSON
OR THE ENTITY THAT IS AGREEING TO BE BOUND BY THIS
EULA; (2) YOUR EMPLOYEES AND THIRD PARTY CONTRACTORS
THAT PROVIDE SERVICES TO YOU; AND (3) ANY OF YOUR
CUSTOMERS USING THE SOFTWARE OR ANY SERVICE BASED UPON
THE SOFTWARE, AS PERMITTED IN THIS AGREEMENT. YOU SHALL
BE LIABLE FOR ANY FAILURE BY SUCH EMPLOYEES, THIRD
PARTY CONTRACTORS OR CUSTOMERS TO COMPLY WITH THE TERMS
OF THIS EULA. THIS EULA IS ENFORCEABLE AGAINST ANY
PERSON OR ENTITY THAT DOWNLOADS, INSTALLS, COPYS OR
USES THE SOFTWARE AND ANY PERSON OR ENTITY THAT
DOWNLOADS, INSTALLS, COPYS OR USES THE SOFTWARE ON
ANOTHER PERSON?S OR ENTITY?S BEHALF. YOU AGREE THAT
THIS EULA IS LIKE ANY WRITTEN NEGOTIATED AGREEMENT
SIGNED BY YOU.
1. DEFINITIONS
1.1 "AddOn" means any one (1) of the additional
software features offered by Wowza as more fully
described in the applicable documentation for such
features.
1.2 "Channel" means one (1) unique media stream for
input into one (1) unique Instance of the Software.
1.3 "Concurrent Connections" means the total number of
simultaneous connections to the Software.
Do you agree to the above license terms? [yes or no]
yes
Preparing... ########################################### [100%]
1:WowzaMediaServer ########################################### [100%]
Install Location:
/usr/local/WowzaMediaServer
To enter license key:
cd /usr/local/WowzaMediaServer/bin
./startup.sh
此安装是采用rpm方式安装的,所有配置都是采用默认的。
按照提示执行startup.sh脚本:
cd /usr/local/WowzaMediaServer/bin
./startup.sh
首次执行,会提示输出License key:
[root@yuanhuan install_softwares]# cd /usr/local/WowzaMediaServer/bin/
[root@yuanhuan bin]# ./startup.sh
Configure logging: file:///usr/local/WowzaMediaServer/conf/log4j.properties
Please enter your License Key in this format:
XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX[-XXXXXXXXXXXX]
SVRT3-xmE4t-rTB9a-f93VB-ZGvek-dDwE9-7QVEVQxhdFFa
INFO server server-start Wowza Media Server 3 Trial Edition (Expires: 八月 17,
2013) 3.6.2 build5334 -
INFO server comment - Server License Key: SVRT3-XXXXX-XXXXX-XXXXX-XXXXX-dDwE9
INFO server comment - Maximum Connections: Unlimited
INFO server comment - Transcoder Streams Available: Unlimited
INFO server comment - Transcoder Watermark: Yes
INFO server comment - nDVR Available: Yes
INFO server comment - DRM Available: Yes
INFO server comment - Hardware Available Processors: 4
INFO server comment - Hardware Physical Memory: 6537MB/7966MB
INFO server comment - Max File Descriptor Count: 20000
INFO server comment - Open File Descriptor Count: 52
INFO server comment - OS Name: Linux
INFO server comment - OS Version: 2.6.32-358.el6.x86_64
INFO server comment - OS Architecture: amd64
INFO server comment - Java Name: OpenJDK 64-Bit Server VM
INFO server comment - Java Vendor: Oracle Corporation
INFO server comment - Java Version: 1.7.0_09-icedtea
INFO server comment - Java VM Version: 23.2-b09
INFO server comment - Java Spec Version: 1.7
INFO server comment - Java Home:
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/jre
INFO server comment - Java Max Heap Size: 1066MB
INFO server comment - Java Architecture: 64
INFO server comment - Java Locale[user.language]: zh
INFO server comment - Java Locale[user.country]: CN
INFO server comment - Java Locale[file.encoding]: UTF-8
INFO server comment - Java Timezone[user.timezone]: Asia/Shanghai
INFO server comment - Java Args[0]: -Xmx1200M
INFO server comment - Java Args[1]: -Djava.net.preferIPv4Stack=true
INFO server comment - Java Args[2]: -Dcom.sun.management.jmxremote=true
INFO server comment - Java Args[3]: -Dcom.wowza.wms.runmode=standalone
INFO server comment - Java Args[4]: -Dcom.wowza.wms.native.base=linux
INFO server comment - Java Args[5]:
-Dcom.wowza.wms.AppHome=/usr/local/WowzaMediaServer
INFO server comment - Java Args[6]: -Dcom.wowza.wms.ConfigURL=
INFO server comment - Java Args[7]:
-Dcom.wowza.wms.ConfigHome=/usr/local/WowzaMediaServer
INFO server comment - Server runmode: standalone
INFO server comment - Server native.platform: linux
INFO server comment - Server threads[h/t]: 10/10
INFO server comment - CMDInterface now listening: [any]:8083
INFO vhost vhost-start _defaultVHost_ -
INFO server comment - _defaultVHost_ threads[h/t]:120/80
home:/usr/local/WowzaMediaServer
INFO vhost comment _defaultVHost_ Bind attempt ([any]:1935:4)
INFO vhost comment _defaultVHost_ Bind successful ([any]:1935)
INFO vhost comment _defaultVHost_ Bind attempt ([any]:8086:1)
INFO vhost comment _defaultVHost_ Bind successful ([any]:8086)
INFO server comment - Server.startShutdownHook: Start server shutdown hook
INFO server comment - Wowza Media Server is started!
2.3 检查安装结果 2.3.1 检查端口号
以root用户登录Linux系统,执行如下命令:netstat -anp |grep "LISTEN "检查端口号。
[root@yuanhuan WowzaMediaServer]# netstat -anp |grep "LISTEN "
tcp 0 0 0.0.0.0:1935 0.0.0.0:* LISTEN 6024/java
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1660/rpcbind
tcp 0 0 0.0.0.0:8083 0.0.0.0:* LISTEN 6024/java
tcp 0 0 0.0.0.0:8086 0.0.0.0:* LISTEN 6024/java
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1932/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1781/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2015/master
tcp 0 0 0.0.0.0:46878 0.0.0.0:* LISTEN 6024/java
tcp 0 0 0.0.0.0:57415 0.0.0.0:* LISTEN 1678/rpc.statd
tcp 0 0 :::111 :::* LISTEN 1660/rpcbind
tcp 0 0 :::22 :::* LISTEN 1932/sshd
tcp 0 0 ::1:631 :::* LISTEN 1781/cupsd
tcp 0 0 ::1:25 :::* LISTEN 2015/master
tcp 0 0 :::58145 :::* LISTEN 1678/rpc.statd
红色部分表示Wowza Server所监听的端口号都启起来了。
2.3.2 检查进程执行如下命令检查Wowza Server启动的进程:ps -ef |grep java。
[root@yuanhuan WowzaMediaServer]# ps -ef |grep java