在线不卡日本ⅴ一区v二区_精品一区二区中文字幕_天堂v在线视频_亚洲五月天婷婷中文网站

  • <menu id="lky3g"></menu>
  • <style id="lky3g"></style>
    <pre id="lky3g"><tt id="lky3g"></tt></pre>

    第二章 DNS和BIND

    1.7 xinetd守護進程(二)

    1. 最高級的配置文件

    /etc/xinetd.conf

    最高級的配置文件/etc/xinetd.conf設有全局配置選項共享給所有管理服務。它也提供特殊服務配置的辦法。以下是默認安裝最高級配置文件的另一個版本。

    defaults

    # maximum number of requests the service may handle

    instances = 60 (xinetd可以同時運行的最大進程數(shù))

    # type of logging this logs to a file that is specified

    # or here sysloG syslog —facility [syslog —level]

    log_type = SYSLOG authpriv (在log_type的設置中指定使用syslogd進行服務登記)

    # when the connection succeeds what xinetd logs

    # PID logs the pid of the server processing the request

    # Host logs the remote host’s ip address

    # DURATTON logs the duration of the sesslon

    log_on_success = HOST PID (指定成功時,登記客戶機的IP地址和進程的PID。

    # when the connection fails options as above

    log_on_failure = HOST(當連接失敗時,登記客戶機IP地址和附加的客戶機信息)

    # if there are over 25 connection requests second stop

    # accepting connections for 30 seconds

    cps = 25 30

    # All files within the /etc/xinetd.d director

    # are also included in this configuration includedir /etc/xinetd.d

    1.8 xinetd守護進程(三)

    1. 特殊服務的配置

    /etc/xinetd.d/

    以下是telnet的默認特殊服務配置文件,注意第一行(出現(xiàn)“注釋”的)此值確定此服務是否被激活,兩個服務配置實用程序,ntsysv和chkconfig,將編輯適當?shù)膞inetd服務配置文件為一個給定的運行級別。

    # default:on (設定值為yes,表示當前不允許這項服務)

    # descriptioa:the telnet server server telnet sessions;it uses

    # unencrypted username /passworn pairs for authentication

    service telnet

    # set to reuse options on the service socket

    flags =REUSE (設置值為REUSE,表示當中斷或重啟xinetd時,TCP/IP Socket可重用)

    # service socket characteristics stream dgram etc

    socket type =stream (設置值為stream,表示使用TCP的Socket類型)

    # service socket characteristics single or multi —threaded

    whail =no (設置值為no,表示為該項服務提供多線程功能)

    # determine the owner of the server process

    user =root (設置值為root,表示設置進程的UID)

    # set the path of the service specific server process

    server =/usr/sbin/in.telnetd (設置值為/usr/sbin/in.telnetd,這是該項服務程序的完整路徑

    # logs the user id (RFC 1413) multi —threaded streams only

    log_on_failure +=USERID (使用+=USERID,表示將失敗的UID添加到系統(tǒng)登記表中)

    # used by ntsysv or chkconfig to ehable or disable service

    disable =yes (設定值為yes,表示當前不允許這項服務,可以使用ntsysv和chkconfig命令打開或關閉這項服務)

    鄭重聲明:本文內(nèi)容及圖片均整理自互聯(lián)網(wǎng),不代表本站立場,版權(quán)歸原作者所有,如有侵權(quán)請聯(lián)系管理員(admin#wlmqw.com)刪除。
    上一篇 2022年6月21日 06:42
    下一篇 2022年6月21日 06:42

    相關推薦

    聯(lián)系我們

    聯(lián)系郵箱:admin#wlmqw.com
    工作時間:周一至周五,10:30-18:30,節(jié)假日休息