| 知乎专栏 | 
目录
http://www.icecast.org/
过程 147.2.
installation
$ sudo apt-get install icecast2
configure
/etc/default/icecast2
$ sudo vim /etc/default/icecast2 #ENABLE=false ENABLE=true
/etc/icecast2/icecast.xml
					
      <authentication>
          <!-- Sources log in with username 'source' -->
          <source-password>your-password</source-password>
          <!-- Relays log in username 'relay' -->
          <relay-password>your-password</relay-password>
 
          <!-- Admin logs in with the username given below -->
          <admin-user>admin</admin-user>
          <admin-password>your-password</admin-password>
      </authentication>
					
					
				starting
$ sudo /etc/init.d/icecast2 start
testing
http://localhost:8000/
过程 147.3. 配置步骤
安装lib库
netkiller@Linux-server:~/icecast-2.3.1$ sudo apt-get install libxslt1.1 netkiller@Linux-server:~/icecast-2.3.1$ sudo apt-get install libxslt1-dev netkiller@Linux-server:~/icecast-2.3.1$ sudo apt-get install libshout3 netkiller@Linux-server:~/icecast-2.3.1$ sudo apt-get install libshout3-dev
$ sudo ./configure --prefix=/usr/local/icecast
make;make install
netkiller@Linux-server:~/icecast-2.3.1$ ./configure --prefix=/usr/local/icecast netkiller@Linux-server:~/icecast-2.3.1$ make netkiller@Linux-server:~/icecast-2.3.1$ sudo make install netkiller@Linux-server:~/icecast-2.3.1$ cd /usr/local/icecast/ netkiller@Linux-server:/usr/local/icecast$ ls bin etc share
创建icecast2用户
修改所有者
netkiller@Linux-server:/usr/local/icecast$ cd .. netkiller@Linux-server:/usr/local$ adduser icecast2 netkiller@Linux-server:/usr/local$ sudo chown icecast2.icecast2 -R icecast/
运行icecast
netkiller@Linux-server:/usr/local$ su icecast2 netkiller@Linux-server:/usr/local$ /usr/local/icecast/bin/icecast -b -c /usr/local/icecast/etc/icecast.xml
配置icecast
管理员/密码
admin-user: 管理员用户名
admin-password: 管理员密码
icecast2@Linux-server:/usr/local/icecast$ vi etc/icecast.xml
    <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>chen</admin-password>
    </authentication>
				
			测试 http://netkiller.8800.org:8000/