查看單個文章
舊 2004-05-13, 07:42 PM   #3 (permalink)
psac
榮譽會員
 
psac 的頭像
榮譽勳章
UID - 3662
在線等級: 級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時級別:30 | 在線時長:1048小時 | 升級還需:37小時
註冊日期: 2002-12-07
住址: 木柵市立動物園
文章: 17381
現金: 5253 金幣
資產: 33853 金幣
預設

; SHOUTcast 分散式網路伺服器配置文件
; 1998-2002 Nullsoft公司版權所有
; 最後一次修改是在 Jan 16 2002
; Aska 漢化 *_^

; 如果您想使用多個配置文件,只需將這個文件複製成其它名稱,然後按下面的方式執行:
; sc_serv.exe 您的配置檔案名.ini

; ***************************
; 必須的設定
; ***************************

; 最多用戶. 虛擬聽眾的最大人數. 這個值可以根據您的帶寬計算得出 (例如, 如果您使
; 用上行為512kbps的ADSL,計劃播放碼率為24kbps的廣播, 您可以選項512kpbs/24kbps=21,
; 為您的最大用戶數.) 將這個值設定的過高只會浪費您的記憶體和帶寬.
MaxUser=32

; 密碼. SHOUTcast 伺服器決不會詢問聽眾密碼, 這個密碼是用來進行播放時使用, 在您對
; 伺服器進行管理時, 這個密碼也是必須的. 只執行數字和字母, 也是您通過 Winamp 插件
; 在伺服器上廣播資料所必須的. 當然, 不能使用空密碼.
Password=changeme

; 連接阜. 這時您伺服器將要使用的連接阜號. 這個值, 以及這個值 + 1 的連接阜都必須可用.
; 如果伺服器在啟動時通知您有致命錯誤發生, 請確定沒有其他任何程序佔用了這些連接阜 (
; 您可以嘗試使用 telnet 程序連接這個連接阜 -- 如果顯示拒絕連接, 則說明該連接阜可用.
; 在Unix及其類似系統上使用小於1024的連接阜可能需要root權限. 預設連接阜是8000.
PortBase=8000

; ***************************
; 附加參數
; ***************************

; ***************************
; 日誌配置
; ***************************

; 日誌文件: 用來記錄日誌的文件. 要想停止記錄可以填入 '/dev/null' 或者 'none' 或
; 者什麼都不填. 預設是在類Unix系統上為 ./sc_serv.log, win32系統上為 SHOUTcase 安
; 裝目錄下的sc_serv.log.
; 注意: 如果在 win32 系統上沒有指定路徑, 則預設路徑為程序的執行路徑, 在類Unix系
; 統上則是在當前目錄.
LogFile=sc_serv.log

; 既時顯示當前流的狀態, 每秒更新. (限於類Unix系統以及win32系統)
RealTime=1

; 控制是否在螢幕控制台上既時顯示程序狀態, 限於類Unix系統及win32系統. 當程序後台
; 執行時可取消該功能以節省資源. 預設為1 (開啟).
ScreenLog=1

; 確定歌曲歷史記錄中對多可以記錄的歌曲數量. 預設是10. 有效值為1到20.
ShowLastSongs=10

; 決定伺服器是否記錄在 yp.shoutcast.com 上的事件日誌 (即註冊主機以及登出主機).
; 預設是開啟
; TchLog=yes

; 決定是否記錄在伺服器網頁上的點擊事件. 由於 DSP 插件使用web方式重新整理標題以及計算
; 收聽人數, 所以出於節省空間的考慮, 大多數人都把這項關閉. 如果您想看看什麼人點擊
; 了您的網頁, 那就開啟這項 (先去掉前面的註釋) . 注意這個選項對 XML 的計數器沒有
; 影響.
; WebLog=no

; 開啟 W3C 日誌. W3C 包括以 http 形式對每個聽眾進行跟蹤記錄, 也記錄了沒個聽眾接
; 收的流量. 並且這項日誌資料可以用分析工具進行總結, 或者報告給調查系統.
; 預設是 Yes (開啟)
W3CEnable=Yes

; W3C 日誌的檔案名. 預設是 sc_w3c.log, 儲存於 SHOUTcase 程序目錄中
W3CLog=sc_w3c.log


; ***************************
; 網路配置
; ***************************

; 源 IP, 用來接收廣播源的 IP ( 如果允許中轉也用來接收外來的中轉). 一般是 ANY 也可
; 使用 127.0.0.1 ( 使用 127.0.0.1 的話則會禁止其他的機器使用您的廣播伺服器進行廣
; 播 )
SrcIP=ANY

; 目的 IP, 用來接受客戶端訪問的 IP ( 同時也用來聯繫 yp.shoutcast.com ) 一般是 ANY.
; 如果您的機器有多個 IP, 就填入您想用來接受客戶端的 IP.
DestIP=ANY

; Yport, 用來連接 yp.shoutcast.com 的連接阜. 對於在防火牆以後的用戶, 請把這個改成交
; 替連接阜 ( 一般是 666, 如果有問題發生請訪問 www.shoutcast.com ). 或者, 就寫成 80.
; 我們正在試突使其工作在 666 連接阜, 但是這個版本中僅有 80 連接阜可以工作.
Yport=80

; 域名查詢. 設定成 1 以實現 DNS 反向查詢. 如果您的伺服器比較慢,這個設定可能會延長
; 連線到伺服器的時間. 預設是 0 ( 關閉 )
NameLookups=0

; 當把本伺服器設定成中轉伺服器是必須制定中轉連接阜和中轉. 對於其他的伺服器來說, 中轉
; 伺服器處於客戶端的地位, 並把來自其他伺服器的廣播進行中轉重發.
; 要想關閉中轉模式, 只要把這兩項註釋掉, 或者把中轉連接阜設定為0, 中轉伺服器設定成空
; 即可.
; RelayPort=8000
; RelayServer=192.168.1.58

; ***************************
; 伺服器配置
; ***************************

; 管理密碼. 這個密碼設定以後即為訪問 web 管理頁面的管理密碼. 使用前面設定過的播放密
; 碼雖然仍可以訪問管理頁面, 但其權限僅為檢視各項統計資料, 不具備訪問控制的管理權力,
; 預設是不設定該密碼 ( 這樣以來使用前面的密碼就可以進行完全的控制)
; AdminPassword=adminpass

; 設定當廣播源丟失時是否中斷連線聽眾的連接. 預設為 0 .
AutoDumpUsers=0

; 設定廣播源與伺服器中斷聯繫後最大閒置時間. 預設是 30 .
AutoDumpSourceTime=30

; 設定內容目錄, 用來進行媒體點播時使用. 在這個版本可以很好的支持子目錄中的文件. 預設
; 是 ./content, 就是 sc_serv.exe 所在目錄裡面名為 content 的目錄.
; ContentDir=./content

; 設定前奏文件,前奏文件是指在聽眾連接上您的伺服器即將收聽直播之前要被播放的一個 mp3 文件.
; 注意該 mp3 文件必須和您播出廣播的碼率及聲道設定相同. 不過您可以使用以下方法指定多個
; 碼率的文件以待播放時自動選項: 在檔案名中使用 "%d" 作為萬用字元.
; ( 例如 IntroFile=C:\intro%d.mp3, 則當您播放 64kbps 碼率時則會選項 C:\intro64.mp3)
; 預設沒有前奏文件
; IntroFile=c:\intro%d.mp3

; 設定備份檔案, 當廣播源斷線時該檔案會被反覆播放直到重新連上為止. 必須把 AutoDumpUsers
; 設定成 0, 才能使用該項功能.
; 注意該 mp3 文件必須和您播出廣播的碼率及聲道設定相同. 不過您可以使用以下方法指定多個
; 碼率的文件以待播放時自動選項: 在檔案名中使用 "%d" 作為萬用字元.
; ( 例如 IntroFile=C:\intro%d.mp3, 則當您播放 64kbps 碼率時則會選項 C:\intro64.mp3)
; 預設沒有備份檔案
; BackupFile=C:\intro%d.mp3

; 標題格式指定您將要傳送到聽眾的廣播標題的格式. 例如, 加上 'Justin Radio' 會強制把標題
; 設定為 'Justin Radio'. 也可以使用 '%s' 引用廣播源的標題.
; 例如, 如果設定 'TitleFormat=Justin Radio: %s', 而廣播源的 DSP 插件中設定標題為
; 'Billy plays the blues', 則在聽眾的播放器中顯示的標題為:
; 'Justin Radio: Billy plays the blues'.
; 注意: 只在非中轉伺服器上生效.
; TitleFormat=Justin Radio: %s

; URL格式指定將要傳送到聽眾的網址格式. 用法與標題格式類似.
; 預設不設定格式.
; URLFormat=http://www.server.com/redirect.cgi?url=%s

; 設定是否公開伺服器, 可以使用 always, never, 或者 default. 如果您的伺服器不能連線到
; Internet, 或者您不想在 SHOUTcast 的列表上公開伺服器,請設定為 never.
PublicServer=default

; 設定是否允許中轉, 預設為 Yes.
AllowRelay=Yes

; 設定是否允許公開中轉, 當設定為 no 時, 伺服器會告訴其他的中轉伺服器不要把本伺服器的
; 標題在 SHOUTcast 的伺服器上公開. 預設是 Yes.
AllowPublicRelay=Yes

; 設定傳送 meatdata 的頻率, 請不要改動此項.
MetaInterval=8192

; *****************************
; 訪問控制
; *****************************

; 收聽時間限制是指一個聽眾可以收聽廣播的最大時長. 如果超過這個時長, 則該聽眾會被強制
; 踢出. 如果不定義這個數值, 則無限制. 預設是不定義.
; ListenerTimer=600

; 封禁列表存儲了禁止訪問伺服器的聽眾的列表. 其內容通過 web 界面自動產生.
; BanFile=sc_serv.ban

; 保留列表存儲了總是允許訪問伺服器的用戶的 IP 位址. 其內容通過 web 節目自動產生.
; 注意如果您的伺服器聽眾已滿, 而此時一個保留 IP 的用戶連接進來, 伺服器會自動踢掉一個
; 收聽時間最長的用戶, 然後讓這個保留 IP 的用戶加入聽眾行列.
; RipFile=sc_serv.rip

; 設定讓伺服器僅供保留列表中的用戶使用. 其他所有未知連接都不會被接受. 當設定為 Yes時,
; 也會讓伺服器進入私有模式. 預設是 No.
; RIPOnly=No

; *****************************
; 擴展日誌
; *****************************

; 本版本中已經取消此種日誌, 以 W3C 日誌替代.

; ***************************
; 其他配置 (進階用戶使用)
; ***************************

; Unique: assigns a variable name for use in any config item which points to a
; file. Useful for servers running lots of SHOUTcast servers that have similar
; configuration parameters, excepting logfile names, banfile names, etc. Any
; parameter that takes a pathname can include the character $, which will
; substitute $ for the variable assigned here. Keep in mind that the unique
; variable can only be used after it is defined, so don't try to use a unique
; variable substitution in a path before you define it. For example, you
; could set:
; Unique=my_server
; and then define Log=/usr/local/shoutcast/$.log in an included configuration
; file. Default is Unique=$, so that by default any file with $ in the name
; won't substitute anything at all.

; Include: instructs the sc_serv to read from the named configuration file,
; *at the point of insertion of the Include statement*, and process as though
; the included file was part of itself. Note that all configuration parameters
; in the DNAS config file are processed first to last, so if an item is defined
; twice in a configuration, the last item to process will be the one that takes
; effect. For this reason, it's usually a good idea to use the Includes first
; in a config file.
; example:
; Include=/usr/local/shoutcast/common.conf
; Default is not applicable.

; *****************************
; 效率調整 (偵錯用)
; *****************************
;
; 在進行以下的修改之前, 請確定您有十分的把握. 我們對您為此付出的損失不負任何責任!
; 僅供進階用戶偵錯使用!

; CpuCount is used to explicitly limit the DNAS to dominating a finite
; amount of processors in multiprocessor systems. By default,
; SHOUTcast creates one thread for every processor it detects in the
; host system, and assigns listeners equally across all the threads.
; In the event SHOUTcast doesn't correctly determine the number of
; CPUs in your host, or if you for whatever reason want to force
; the DNAS to not use other processors, you can say so here.
; Default behavior is to use as many processors as the DNAS detects on
; your system.
; CpuCount=1

; Sleep defines the granularity of the client threads for sending data.
; DNAS 1.7.0, per client thread, will send up to 1,024 bytes of data
; per socket (or less depending on the window available), and then
; sleep for the provided duration before repeating the whole process.
; Note that making this value smaller will vastly increase CPU usage on
; your machine. Increasing reduces CPU, but increasing this value too far
; will cause skips. The value which seems most optimal for 128kbps
; streaming is 833 (833 microseconds per client poll) on our test labs.
; We wouldn't recommend setting it any lower than 100, or any higher than
; 1,024. If you have a slower machine, set this number lower to fix
; skips.
; Default value is 833.
; Sleep=833

; CleanXML strips some whitespace and linefeeds from XML output which
; confuses some (poorly written) XML parsers. If you get XML rendering errors,
; try turning this on. Default is No (off).
; CleanXML=No
;
; TAG RULES
__________________
http://bbsimg.qianlong.com/upload/01/08/29/68/1082968_1136014649812.gif
psac 目前離線  
送花文章: 3, 收花文章: 1631 篇, 收花: 3205 次