<!-- This config file contains a minimal set of configurable parameters, and mostly just contains the things you need to change. We created this for those who got scared away from the rather large and heavily commented icecast.xml.dist file. --> <icecast> <limits> <sources>2</sources> </limits> <authentication> <source-password>hackme</source-password> <relay-password>hackme</relay-password> <admin-user>admin</admin-user> <admin-password>hackme</admin-password> </authentication> <hostname>localhost</hostname> <listen-socket> <port>9000</port> </listen-socket> <fileserve>1</fileserve> <paths> <logdir>./logs</logdir> <webroot>./web</webroot> <adminroot>./admin</adminroot> <alias source="/" dest="/status.xsl"/> </paths> <logging> <accesslog>access.log</accesslog> <errorlog>error.log</errorlog> <loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error --> </logging> </icecast>
[2011-09-18 18:53:42] INFO yp/yp.c YP thread down [2011-09-18 18:53:42] INFO stats/stats.c stats thread finished [2011-09-18 19:21:08] INFO main/main.c Icecast 2.3.2 server started [2011-09-18 19:21:08] INFO connection/connection.c No SSL capability [2011-09-18 19:21:08] WARN stats/stats.c seen non-UTF8 data, probably incorrect metadata (server_start, Sun, 18 Sep 2011 19:21:08 Московское время (лето)) [2011-09-18 19:21:08] INFO stats/stats.c stats thread started [2011-09-18 19:21:08] INFO fserve/fserve.c file serving thread started [2011-09-18 19:21:08] INFO yp/yp.c YP update thread started [2011-09-18 19:34:33] INFO fserve/fserve.c checking for file /corner_topleft.jpg (./web/corner_topleft.jpg) [2011-09-18 19:34:33] INFO fserve/fserve.c checking for file /favicon.ico (./web/favicon.ico) [2011-09-18 19:34:33] WARN fserve/fserve.c req for file "./web/favicon.ico" No such file or directory [2011-09-18 19:34:33] INFO fserve/fserve.c checking for file /style.css (./web/style.css) [2011-09-18 19:34:33] INFO fserve/fserve.c checking for file /corner_bottomleft.jpg (./web/corner_bottomleft.jpg) [2011-09-18 19:34:34] INFO fserve/fserve.c checking for file /icecast.png (./web/icecast.png) [2011-09-18 19:34:34] INFO fserve/fserve.c checking for file /corner_topright.jpg (./web/corner_topright.jpg) [2011-09-18 19:34:34] INFO fserve/fserve.c checking for file /corner_bottomright.jpg (./web/corner_bottomright.jpg) [2011-09-18 20:05:44] INFO main/main.c Shutting down [2011-09-18 20:05:44] INFO fserve/fserve.c file serving thread stopped [2011-09-18 20:05:45] INFO slave/slave.c shutting down current relays [2011-09-18 20:05:45] INFO slave/slave.c Slave thread shutdown complete [2011-09-18 20:05:45] INFO auth/auth.c Auth shutdown [2011-09-18 20:05:45] INFO yp/yp.c YP thread down [2011-09-18 20:05:46] INFO stats/stats.c stats thread finished
<icecast> <limits> <sources>2</sources> </limits> <authentication> <source-password>omgr124/source-password> <relay-password>omgr123</relay-password> <admin-user>omgr12</admin-user> <admin-password>ChtRd</admin-password> </authentication> <hostname>localhost</hostname> <listen-socket> <port>9000</port> </listen-socket> <mount> <mount-name>/live</mount-name> </mount> <fileserve>1</fileserve> <paths> <logdir>./logs</logdir> <webroot>./web</webroot> <adminroot>./admin</adminroot> <alias source="/" dest="/status.xsl"/> </paths> <logging> <accesslog>access.log</accesslog> <errorlog>error.log</errorlog> <loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error --> </logging> </icecast>
<icecast> <limits> <sources>2</sources> </limits> <authentication> <admin-user>user</admin-user> <admin-password>password</admin-password> </authentication> <!-- <directory> <yp-url-timeout>15</yp-url-timeout> <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url> </directory> <hostname>ip_adress</hostname> <!-- each shoutcast source clients require 2 ports, port and port+1 --> <listen-socket> <!-- define the base port that the shoutcast DSP will use --> <port>8080</port> <shoutcast-mount>/live</shoutcast-mount> <fallback-mount>/nonstop</fallback-mount <so-sndbuf>16386</so-sndbuf> --> </listen-socket> <fileserve>1</fileserve> <relay> <server>test.ru</server> <port>8000</port> <mount>/nonstop</mount> <local-mount>/nonstop</local-mount> <relay-shoutcast-metadata>1</relay-shoutcast-metadata> <on-demand>1</on-demand> </relay> <paths> <logdir>./logs</logdir> <webroot>./web</webroot> <adminroot>./admin</adminroot> <alias source="/" dest="/index.html"/> </paths> <logging> <accesslog>access.log</accesslog> <errorlog>error.log</errorlog> <loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error --> </logging> <security> <chroot>0</chroot> </security> </icecast>
CONFIGFILE="/путь/до/конфига/icecast.xml"
service icecast2 start
<source-password>ПАРОЛЬ</source-password>
Mount Point /live Current Listeners: 0 Current Song: