centos6 安装配置icecast2
时间:2014-09-02 21:55 来源:linux.it.net.cn 作者:it
一、安装依赖库
Yum install libxslt-devel libogg-devel libvorbis-devel libcurl-devel
二、下载、安装
1.下载:
$ wget http://downloads.xiph.org/releases/icecast/icecast-2.4.0.tar.gz
2.安装:
$ tar xvf icecast-2.4.0.tar.gz
$ cd icecast-2.4.0
$ ./configure --prefix=/usr/local/icecast
$ make
$ make install
三、配置
$ vim /usr/local/icecast/etc/icecast.xml
修改默认认证密码。其中的”source-password”为音频流上传端填写的密码
<authentication>
<!-- Sources log in with username 'source' -->
<source-password>hackme</source-password>
<!-- Relays log in username 'relay' -->
<relay-password>hackme</relay-password>
<!-- Admin logs in with the username given below -->
<admin-user>admin</admin-user>
<admin-password>hackme</admin-password>
</authentication>
修改管理员密码,如上红色字体部分。
以下配置管理后台相关的参数,如何下图所示:
-
<paths>
-
<!-- basedir is only used if chroot is enabled -->
-
<basedir>/data2/icecast</basedir>
-
-
<!-- Note that if <chroot> is turned on below, these paths must both
-
be relative to the new root, not the original root -->
-
<logdir>/data2/icecast/log</logdir>
-
<webroot>/usr/local/icecast/share/icecast/web</webroot>
-
<adminroot>/usr/local/icecast/share/icecast/admin</adminroot>
-
<!-- <pidfile>/usr/local/share/icecast/icecast.pid</pidfile> -->
-
-
<!-- Aliases: treat requests for 'source' path as being for 'dest' path
-
May be made specific to a port or bound address using the "port"
-
and "bind-address" attributes.
-
-->
-
<!--
-
<alias source="/foo" destination="/bar"/>
-
-->
-
<!-- Aliases: can also be used for simple redirections as well,
-
this example will redirect all requests for http://server:port/ to
-
the status page
-
-->
-
<alias source="/" destination="/status.xsl"/>
-
</paths>
四、管理
在浏览器输入:http://xx.xx.xx.xx:8000/
用户名:admin
密码:hackme
在这个网页里能看到所有信息!
(责任编辑:IT)
一、安装依赖库 Yum install libxslt-devel libogg-devel libvorbis-devel libcurl-devel
二、下载、安装 1.下载: $ wget http://downloads.xiph.org/releases/icecast/icecast-2.4.0.tar.gz
2.安装: $ tar xvf icecast-2.4.0.tar.gz $ cd icecast-2.4.0 $ ./configure --prefix=/usr/local/icecast $ make $ make install
三、配置 $ vim /usr/local/icecast/etc/icecast.xml 修改默认认证密码。其中的”source-password”为音频流上传端填写的密码 <authentication> <!-- Sources log in with username 'source' --> <source-password>hackme</source-password> <!-- Relays log in username 'relay' --> <relay-password>hackme</relay-password>
<!-- Admin logs in with the username given below --> <admin-user>admin</admin-user> <admin-password>hackme</admin-password> </authentication> 修改管理员密码,如上红色字体部分。 以下配置管理后台相关的参数,如何下图所示:
四、管理 在浏览器输入:http://xx.xx.xx.xx:8000/ 用户名:admin 密码:hackme
在这个网页里能看到所有信息! (责任编辑:IT) |