当前位置: > CentOS > CentOS服务器 >

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>

修改管理员密码,如上红色字体部分。

以下配置管理后台相关的参数,如何下图所示:

 

  1. <paths>
  2. <!-- basedir is only used if chroot is enabled -->
  3. <basedir>/data2/icecast</basedir>
  4.  
  5. <!-- Note that if <chroot> is turned on below, these paths must both
  6. be relative to the new root, not the original root -->
  7. <logdir>/data2/icecast/log</logdir>
  8. <webroot>/usr/local/icecast/share/icecast/web</webroot>
  9. <adminroot>/usr/local/icecast/share/icecast/admin</adminroot>
  10. <!-- <pidfile>/usr/local/share/icecast/icecast.pid</pidfile> -->
  11.  
  12. <!-- Aliases: treat requests for 'source' path as being for 'dest' path
  13. May be made specific to a port or bound address using the "port"
  14. and "bind-address" attributes.
  15. -->
  16. <!--
  17. <alias source="/foo" destination="/bar"/>
  18. -->
  19. <!-- Aliases: can also be used for simple redirections as well,
  20. this example will redirect all requests for http://server:port/ to
  21. the status page
  22. -->
  23. <alias source="/" destination="/status.xsl"/>
  24. </paths>

 

四、管理

在浏览器输入:http://xx.xx.xx.xx:8000/

用户名:admin

密码:hackme

 

在这个网页里能看到所有信息!

(责任编辑:IT)
------分隔线----------------------------
栏目列表
推荐内容