找回密码
 注册
查看: 599|回复: 1

icecast运行错误

[复制链接]
发表于 2004-8-24 22:50:56 | 显示全部楼层 |阅读模式
运行icecast的时候出现错误:

[root@McArthor bin]# ./icecast -c /usr/local/etc/icecast.xml
Changed root successfully to "/usr/local/share/icecast".
Changed groupid to 500.
Changed userid to 500.
FATAL: could not open error logging
FATAL: could not open access logging
FATAL: Could not start logging

使用root运行,系统中有mcarthor用户/用户组,PID为500

下边是我的/usr/local/etc/icecast.xml文件

请问应该如何做才能正确运行

我使用root,请勿告诉我使用普通用户云云

多谢!!!



<icecast>
    <limits>
        <clients>5</clients>
        <sources>2</sources>
        <threadpool>5</threadpool>
        <queue-size>10</queue-size>
        <client-timeout>30</client-timeout>
        <header-timeout>15</header-timeout>
        <source-timeout>10</source-timeout>
    </limits>

    <authentication>
        <!-- Sources log in with uname 'source' -->
        <source-password>hackme</source-password>
        <!-- Relays log in uname 'relay' -->
        <relay-password>hackme</relay-password>

        <!-- Admin logs in with the uname given below -->
        <admin-user>admin</admin-user>
        <admin-password>hackmeadmin</admin-password>
    </authentication>

    <!-- Uncomment this if you want directory listings -->
    <!--
    <directory>
        <yp-url-timeout>15</yp-url-timeout>
        <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
    </directory>
    <directory>
        <yp-url-timeout>15</yp-url-timeout>
        <yp-url>http://www.oddsock.org/cgi-bin/yp-cgi</yp-url>
    </directory>
     -->

    <hostname>localhost</hostname>

    <!-- You can use these two if you only want a single listener -->
    <!--<port>8000</port> -->
    <!--<bind-address>127.0.0.1</bind-address>-->

    <!-- You may have multiple <listener> elements -->
    <listen-socket>
        <port>8000</port>
        <!-- <bind-address>127.0.0.1</bind-address> -->
    </listen-socket>
    <!--
    <listen-socket>
        <port>8001</port>
    </listen-socket>
    -->

    <!--<master-server>127.0.0.1</master-server>-->
    <!--<master-server-port>8001</master-server-port>-->
    <!--<master-update-interval>120</master-update-interval>-->
    <!--<master-password>hackme</master-password>-->
    <!--
    <relay>
        <server>127.0.0.1</server>
        <port>8001</port>
        <mount>/example.ogg</mount>
        <local-mount>/different.ogg</local-mount>

        <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
    </relay>
    -->

    <!-- Only define a <mount> section if you want to use advanced options,
         like alternative unames or passwords
    <mount>
        <mount-name>/example-complex.ogg</mount-name>

        <username>othersource</username>
        <password>hackmemore</password>

        <max-listeners>1</max-listeners>
        <dump-file>/tmp/dump-example1.ogg</dump-file>
        <fallback-mount>/example2.ogg</fallback-mount>
    </mount>
    -->

    <fileserve>1</fileserve>

    <paths>
                <!-- basedir is only used if chroot is enabled -->
        <basedir>/usr/local/share/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>/home/mcarthor/icecast/log</logdir>
        <!-- <webroot>/usr/local/share/icecast/web</webroot> -->
        <webroot>/mnt/happy/music</webroot>
        <adminroot>/usr/local/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" dest="/bar"/>
          -->
    </paths>

    <logging>
        <accesslog>/home/mcarthor/icecast/log/access.log</accesslog>
        <errorlog>/home/mcarthor/icecast/log/error.log</errorlog>
              <loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
    </logging>

    <security>
        <chroot>1</chroot>
        <changeowner>
            <user>mcarthor</user>
            <group>mcarthor</group>
        </changeowner>
    </security>
</icecast>
发表于 2004-8-25 22:40:20 | 显示全部楼层
PID为500的用户没有/home/mcarthor/icecast/log的必须权限。如果没这个目录就自己建一个
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2026-1-31 22:28 , Processed in 0.023643 second(s), 16 queries .

© 2001-2026 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表