| 订阅 | 在线投稿
分享
 
 
当前位置: 王朝网络 >> perl >> gong neng feng fu de Perl:xinetd cheng xu yong yu xi tong guan li

gong neng feng fu de Perl:xinetd cheng xu yong yu xi tong guan li

2008-05-19 06:25:54 编辑來源:互联网 评论
 
 
 
本文为【功能丰富的Perl:xinetd程序用于系统管理】的拼音翻译版
  kai shi zhi qian
  wei shi xian ben wen de mu de , nin de xi tong zui hao an zhuang le zui jin de zhu liu (2000 huo geng xin )UNIX(Linux、Solaris、BSD)。 zhe xie shi li zai Perl he UNIX( yi ji qi ta cao zuo xi tong ) de zao qi ban ben shang ye ke yi yun xing , dan shi ta men gong neng fang mian de zhang ai ying gai you du zhe zuo wei lian xi lai jie jue 。 gei ding de te ding shi li shi yong yu Red Hat Linux de , dan shi ta men zai qi ta xi tong shang ying gai ye ke yi yun xing ( chu chkconfig yi wai )。
  inetd dao di shi shen me
  dui yu UNIX xi tong guan li yuan ,inetd he cp/rm/mv ming ling yi yang ji ben 。 ta zong shi cun zai , bing zhun bei zhe chu li ru zhan lian jie 。 dan ta dao di shi shen me ? ta yong lai zuo shen me ?
  shou xian cong TCP/IP ( ta ye bao kuo UDP, dan wo men mu qian huan bu kao lv ) kai shi hui da 。 dang nin jian li yu yi tai zhu ji de lian jie shi , shi ji shang shi chuang jian le yi ge TCP/IP lian jie ( tong chang shi yi ge tao jie zi ) ― zhe hao xiang shi zai nin he zhu ji zhi jian da le yi ge dian hua 。TCP/IP lian jie you qi shi zhu ji he jie shou zhu ji wei yi di ding yi , dan huan you qi ta biao shi 。 ru guo wo men dou lian jie dao yi tai fu wu qi , ta ru he qu fen webserver、telnet、SSH、FTP he qi ta lian jie ne ? tao jie zi ye tong guo jian li lian jie suo shi yong de duan kou lai ding yi 。 li ru , duan kou 21 shi ru zhan FTP、 duan kou 22 shi SSH、 duan kou 23 shi TELNET( you guan qi ta da duo shu duan kou , ke yi cha kan UNIX xi tong shang de /etc/services)。
  yi dan jian li le lian jie , mou ren jiu zai ling yi duan na qi le dian hua 。 zhe ke yi shi jie xian yuan huo zhi xian 。 zhi xian biao shi nin zhi jie lian jie dao le fu wu qi , er jie xian yuan shi she ji inetd de fang fa 。 jie xian yuan shi ji shang chu li yi zu ru zhan zhi xian ( zhu ji shang de duan kou ), bing qin zi jiang ta men jiao gei fu ze de cheng xu ( fu wu qi )。
  UDP shi ling yi zhong lian jie fang fa 。 xiang TCP yi yang ,UDP ji ben shang shi he mou ren de dui hua , dan shi bu bao zheng ta shi ke kao de 。UDP( ji xu shi yong dian hua de bi yu ) jiu xiang jiang xiao xi reng dao chuan song dai shang , rang jie shou zhe zhan dao ling yi duan 。 nin ke yi cong chuan song dai de dao xu duo xiao xi , dan shi ru guo xiao xi tai duo ( wang luo liu liang gao ) huo zhe du qu xiao xi fei shi tai jiu ( fu wu qi mang ), ze jie shou zhe ke neng hui diu shi yi xie xiao xi 。
  ru guo shi yong inetd, zai zhi xing yi xie jian cha hou , nin bei chong ding xiang dao te ding fu wu qi 。 zhi you yi ge pei zhi wen jian ― inetd.conf, guan li suo you ru zhan lian jie 。 yin er zai xi tong shang tian jia 、 shan chu 、 geng gai huo fu cha fu wu bian de geng wei jian dan 。 li ru , zai Solaris xi tong shang shi yong TCP feng zhuang qi jiang ftp ding yi ru xia :
  qing dan 1,FTP fu wu de inetd.conf ding yi ftp
  stream
  tcp
  nowait
  root
  /usr/sbin/tcpd
  in.ftpd
  zhe xie shi chuang jian yi ge FTP lian jie suo xu de quan bu shen shu 。 jian dan di shuo , wo men yi mian xiang liu (stream) de fang shi shi yong TCP/IP(tcp) shi , tong shi yuan xu duo ge FTP lian jie (nowait)、 zuo wei root yun xing yi ji tiao yong FTP( jie xia lai ,TCP feng zhuang qi jiang tiao yong FTP shou hu cheng xu )。
  yong yi shang wu de shi jian jie xi hen kun nan ma ? jue dui kun nan 。 you bi yao zhe me fu duo ma ? bu 。xinetd ji cheng le inetd de she ji bing jiang ta mo kuai hua , zhe yi wei zhe mei ge fu wu dou ke yi cun zai yu ta zi ji de pei zhi wen jian zhong 。xinetd huan tian jia le yi xie xiang TCP feng zhuang qi zhi lei de gong neng bu jian , shi de pei zhi geng jia jian dan 。
  xinetd bao chi le zhong yang pei zhi ( jie xian yuan ) fang fa , jiang suo you pei zhi wen jian cun chu dao dan yi wei zhi , tong chang shi /etc/xinetd.conf he /etc/xinetd.d/*, shi xi tong guan li yuan ke yi geng rong yi di huo de 。 mo kuai hua pei zhi yi wei zhe , nin ke yi tong guo jiang fu wu fu zhi dao xinetd.d mu lu lai xiang duo tai ji qi shang fen fa gai fu wu , ye ke yi yong tong lei de shou duan chu qu ta 。 shen zhi ke yi zhi ding e wai de bao han mu lu 。
  zui hou ,xinetd FAQ( qing shen yue ben wen hou mian de shen kao zi liao ) sheng ming le RPC cheng xu zai xinetd xia yun xing de bu tai hao 。 bu guo mei wen ti , dui RPC shi yong inetd, bing dui qi ta suo you fu wu shi yong xinetd。 zhe jiu xiang gu le liang ge jie xian yuan , yi ge shuo xi ban ya yu , ling yi ge shuo suo you qi ta yu yan 。
  xinetd jian jie
  na me xinetd shi shen me ? yi ju hua , ta jiu shi ge cheng xu 。 chu li ru zhan wang luo lian jie mei shen me shen qi 。 ke yi shi yong Perl、Python huo Java lai chu li 。Xinetd shi yong C bian xie de , er qie ta he ta de qian bei inetd yi yang kuai , ru guo bu shi geng kuai de hua ( li ru ,TCP feng zhuang qi bu bi wei mei ge ru zhan lian jie er zhi xing ; ta men zai qi dong shi zhuang ru nei cun )。
  xinetd zheng zai kai fa zhong 。( nin de ban ben ke neng guo shi le , suo yi qing wu bi dao zhu ye shang cha zhao zui xin de ban ben ; qing shen yue shen kao zi liao 。) yin wei ta zheng zai kai fa zhong , suo yi xinetd de an quan lou dong de yi xun su mi bu , er bu xiang inetd na yang bo ruo , tong chang yao hen chang shi jian cai neng mi bu 。 dang ran ,xinetd shi sui yuan dai ma yi qi jiao fu de , suo yi nin ke yi fu cha yuan dai ma bing zi ji zhao dao ke neng cun zai ruo dian de di fang 。
  ru he shi yong xinetd ding yi fu wu ne ? bian xie yi ge fu wu wen jian , ta chu le zhi ding /etc/xinetd.conf zhong suo zhi ding de yi ban shen shu zhi wai , huan zhi ding te ding pei zhi 。 suo yi , ru guo /etc/xinetd.conf shi zhe yang de :
  qing dan 2, yang ben xinetd.conf( biao zhun de Red Hat 7.1) defaults
  {
  instances
  = 60
  log_type
  = SYSLOG authpriv
  log_on_success
  = HOST PID
  log_on_failure
  = HOST
  cps
  = 25 30
  }
  service telnet
  {
  flags
  = REUSE
  socket_type
  = stream
  wait
  = no
  user
  = root
  server
  = /usr/sbin/in.telnetd
  log_on_failure
  += USERID
  disable
  = yes
  }
  includedir /etc/xinetd.d
  nin fang dao /etc/xinetd.d zhong de mei ge fu wu wen jian dou hui ji cheng zhe xie que sheng zhi , bing zhi ding ta zi ji de shen shu 。 zhe li ,telnet fu wu zai ding ji ding yi , er bu shi zai zi mu lu zhong ding yi 。 zhe tai bang le , zhe zhong mo kuai xing yuan xu fu duo de pei zhi 。
  yao shi xinetd chong xin du qu pei zhi wen jian , bu bi chong xin qi dong ta 。 zhi yao xiang ta fa song USR2 xin hao ji ke 。
  na xie shen shu biao shi shen me yi si ? rang wo men tong du zheng ge qing dan 。 nin ye ke yi zai ming ling xing xia shi yong man xinetd.conf lai cha kan lie biao ( ru guo na ge bang zhu ye mian zheng que an zhuang de hua ), dan zhe ge gai shu shi tu yong geng jian dan de shu yu lai jie shi shen shu , bing bu jia ding nin yi jing zhi dao guan yu tao jie zi he fu wu de suo you xin xi 。 yi xie shen shu (rpc_version、rpc_number) bei tiao guo 。
  chang gui shen shu
  id
  gai fu wu de wei yi ming cheng 。 fu wu ming cheng zai hua kuo hao zhi qian zhi ding , dan shi ID shi luo ji shang xiang tong de fu wu ke neng yong you duo ge xie yi 。 zhe shi dui yu lin shi yong hu de shou xian shi yong 。 li ru ,NFS fu wu ke yi zai UDP huo TCP chuan shu xie yi shang yun xing 。 zai Red Hat Linux 7.1 shang ,TCP ban ben ( zai /etc/xinetd.d/time zhong ) he UDP ban ben ( zai /etc/xinetd.d/time-udp zhong ) zhong ti gong le dui yu xinetd lai shuo nei bu de shi jian fu wu 。
  type
  zhe shi ji shang ying gai cheng wei “ te shu lei xing ”, yin wei ta zhi shi yong yu te shu fu wu 。 ta ke yi shi yi xia ji zhong lei xing de zu he :“RPC”, yong yu RPC fu wu ( you SUN yin ru de yuan cheng guo cheng tiao yong , dao zhi le hen duo an quan xing wen ti , zui hao bi mian shi yong );“INTERNAL”, yong yu gou jian dao xinetd nei bu de fu wu , pi ru shi jian fu wu ;“UNLISTED”, yong yu zai xi tong lie biao (/etc/services huo yong yu RPC fu wu de /etc/rpc) zhong zhao bu dao de fei biao zhun fu wu 。
  flags
  zhe li fang zhi zhe suo you e wai biao zhi 。 lie biao hen chang bing qie ji shu xing hen qiang ; wo men gan xing qu de biao zhi bao kuo REUSE( yong yu tao jie zi chong yong , pi ru telnet)、NAMEINARGS/NOLIBWRAP( ru guo nin xi wang shou gong tiao yong TCP feng zhuang qi huo zhe wan quan di bi mian shi yong feng zhuang qi )、NODELAY/KEEPALIVE( yong yu tiao zheng TCP tao jie zi )、DISABLE( fu gai ding ji “disable” shen shu ) yi ji SENSOR( yong yu jian ce he fang zhi mou xie lei xing de “ ju jue fu wu (denial-of-service)” wang luo gong ji )。
  disable
  chu fei nin xi wang jin yong mou xiang fu wu , fou ze zong shi ba ta she cheng “no”。Red Hat Linux de chkconfig cheng xu jiang wei nin da kai huo guan bi “disable” shen shu ; zai Red Hat shang , yong chkconfig qi yong he jin yong te ding fu wu ke neng bi shou gong fang shi jian dan xie 。 qing zhu yi ,chkconfig yu qi zai /etc/xinetd.d/SERVICE zhong zhao dao fu wu wen jian 。 suo yi dui yu shang mian qing dan 2 zhong de shi li ,chkconfig jiang bu hui zai qing qiu shi da kai huo guan bi telnet。 ke yi jiang ta ren wei shi yi ge cuo wu huo te xing , qu jue yu nin de guan dian 。
  socket_type
  tong chang nin xi wang zhe ge shen shu she zhi cheng “stream”, chu fei shi yong UDP fu wu , ci shi she zhi cheng “dgram”。 gai shen shu ye ke yi she zhi cheng “raw” he “seqpacket”, dan ji shao jian 。
  protocol
  zhe shi lian jie suo yong de xie yi , tong chang shi “tcp” huo “udp”, dan shi zai li lun shang nin ke yi shi yong lai zi /etc/protocols de ren he zhi 。
  wait
  ru guo she zhi cheng “no”,xinetd jiang wei mei ge lian jie shang de fu wu qi dong yi ge xin de chu li cheng xu 。 ru guo shi “yes”,xinetd yu qi gai chu li cheng xu chu li suo you hou xu lian jie zhi dao ta si wang 。 zai da duo shu qing kuang xia , zhe ge shen shu shi “no”。
  server, server_args
  chu li cheng xu de cheng xu ming , yi ji ta ying dang huo de de shen shu 。 chu li cheng xu ming bu ying gai xiang zai inetd huan jing xia na yang , chu xian zai shen shu zhong 。
  port
  fu wu de duan kou 。 tong chang bu xu yao , yin wei duan kou tong guo /etc/services wen jian lai yang she dao fu wu 。
  redirect
  yuan xu xinetd jiang suo you fu wu de liu liang fa song gei ling yi tai zhu ji 。 yin ci , shou fang huo qiang bao hu de zhu ji ke yi tong guo zhong yang xinetd zhuan fa qi jie shou an quan liu liang , er bu bi jian li yu wai bu wang luo de lian jie 。 zai mou xie gong zuo zhong , ke yi cai yong zhe ge te zheng lai zai liang tai zhu ji jian zhi xing gu zhang zhuan yi fu wu 。
  banner, banner_success, banner_fail
  yi ge jiang yao zai “ ren yi / yi ge cheng gong / yi ge bu cheng gong ” lian jie shang da yin de lai zi wen jian de ding zhi wen ben kuai 。
  enabled
  zai quan ju ji bie shang bu chong “disabled” shen shu he DISABLE biao zhi 。
  include, includedir
  gao su xinetd yao bao han wen jian huo mu lu 。
  huan jing shen shu
  user, group, umask, groups
  dang qi dong fu wu chu li cheng xu shi ,xinetd ying gai ban yan de UNIX shu xing 。 zhe zhu yao yong yu fei an quan fu wu 。
  nice
  que ding gai fu wu dui yu xi tong you duo chong yao de UNIX you xian ji ji bie 。 ke yi zhen dui nin de xi tong tiao zheng ta , qing cha kan “nice” de man ye mian 。
  env
  yong yu fu wu chu li cheng xu de huan jing bian liang 。
  passenv
  ying gai xiang xia chuan di dao fu wu chu li cheng xu de xinetd zhong de huan jing bian liang 。
  zi yuan guan li shen shu
  instanc
  【原文】【汉音对照
 
 
 
 
 
 
 
 
 
日版宠物情人插曲《Winding Road》歌词

日版宠物情人2017的插曲,很带节奏感,日语的,女生唱的。 最后听见是在第8集的时候女主手割伤了,然后男主用嘴帮她吸了一下,插曲就出来了。 歌手:Def...

兄弟共妻,我成了他们夜里的美食

老钟家的两个儿子很特别,就是跟其他的人不太一样,魔一般的执着。兄弟俩都到了要结婚的年龄了,不管自家老爹怎么磨破嘴皮子,兄弟俩说不娶就不娶,老父母为兄弟两操碎了心...

如何磨出破洞牛仔裤?牛仔裤怎么剪破洞?

把牛仔裤磨出有线的破洞 1、具体工具就是磨脚石,下面垫一个硬物,然后用磨脚石一直磨一直磨,到把那块磨薄了,用手撕开就好了。出来的洞啊很自然的。需要猫须的话调几...

我就是扫描下图得到了敬业福和爱国福

先来看下敬业福和爱国福 今年春节,支付宝再次推出了“五福红包”活动,表示要“把欠大家的敬业福都还给大家”。 今天该活动正式启动,和去年一样,需要收集“五福”...

冰箱异味产生的原因和臭味去除的方法

有时候我们打开冰箱就会闻到一股异味,冰箱里的这种异味是因为一些物质发出的气味的混合体,闻起来让人恶心。 产生这些异味的主要原因有以下几点。 1、很多人有这种习...

 
 
   kai shi zhi qian    wei shi xian ben wen de mu de , nin de xi tong zui hao an zhuang le zui jin de zhu liu (2000 huo geng xin )UNIX(Linux、Solaris、BSD)。 zhe xie shi li zai Perl he UNIX( yi ji qi ta cao zuo xi tong ) de zao qi ban ben shang ye ke yi yun xing , dan shi ta men gong neng fang mian de zhang ai ying gai you du zhe zuo wei lian xi lai jie jue 。 gei ding de te ding shi li shi yong yu Red Hat Linux de , dan shi ta men zai qi ta xi tong shang ying gai ye ke yi yun xing ( chu chkconfig yi wai )。   inetd dao di shi shen me    dui yu UNIX xi tong guan li yuan ,inetd he cp/rm/mv ming ling yi yang ji ben 。 ta zong shi cun zai , bing zhun bei zhe chu li ru zhan lian jie 。 dan ta dao di shi shen me ? ta yong lai zuo shen me ?    shou xian cong TCP/IP ( ta ye bao kuo UDP, dan wo men mu qian huan bu kao lv ) kai shi hui da 。 dang nin jian li yu yi tai zhu ji de lian jie shi , shi ji shang shi chuang jian le yi ge TCP/IP lian jie ( tong chang shi yi ge tao jie zi ) ― zhe hao xiang shi zai nin he zhu ji zhi jian da le yi ge dian hua 。TCP/IP lian jie you qi shi zhu ji he jie shou zhu ji wei yi di ding yi , dan huan you qi ta biao shi 。 ru guo wo men dou lian jie dao yi tai fu wu qi , ta ru he qu fen webserver、telnet、SSH、FTP he qi ta lian jie ne ? tao jie zi ye tong guo jian li lian jie suo shi yong de duan kou lai ding yi 。 li ru , duan kou 21 shi ru zhan FTP、 duan kou 22 shi SSH、 duan kou 23 shi TELNET( you guan qi ta da duo shu duan kou , ke yi cha kan UNIX xi tong shang de /etc/services)。    yi dan jian li le lian jie , mou ren jiu zai ling yi duan na qi le dian hua 。 zhe ke yi shi jie xian yuan huo zhi xian 。 zhi xian biao shi nin zhi jie lian jie dao le fu wu qi , er jie xian yuan shi she ji inetd de fang fa 。 jie xian yuan shi ji shang chu li yi zu ru zhan zhi xian ( zhu ji shang de duan kou ), bing qin zi jiang ta men jiao gei fu ze de cheng xu ( fu wu qi )。   UDP shi ling yi zhong lian jie fang fa 。 xiang TCP yi yang ,UDP ji ben shang shi he mou ren de dui hua , dan shi bu bao zheng ta shi ke kao de 。UDP( ji xu shi yong dian hua de bi yu ) jiu xiang jiang xiao xi reng dao chuan song dai shang , rang jie shou zhe zhan dao ling yi duan 。 nin ke yi cong chuan song dai de dao xu duo xiao xi , dan shi ru guo xiao xi tai duo ( wang luo liu liang gao ) huo zhe du qu xiao xi fei shi tai jiu ( fu wu qi mang ), ze jie shou zhe ke neng hui diu shi yi xie xiao xi 。    ru guo shi yong inetd, zai zhi xing yi xie jian cha hou , nin bei chong ding xiang dao te ding fu wu qi 。 zhi you yi ge pei zhi wen jian ― inetd.conf, guan li suo you ru zhan lian jie 。 yin er zai xi tong shang tian jia 、 shan chu 、 geng gai huo fu cha fu wu bian de geng wei jian dan 。 li ru , zai Solaris xi tong shang shi yong TCP feng zhuang qi jiang ftp ding yi ru xia :    qing dan 1,FTP fu wu de inetd.conf ding yi ftp   stream   tcp   nowait   root   /usr/sbin/tcpd   in.ftpd    zhe xie shi chuang jian yi ge FTP lian jie suo xu de quan bu shen shu 。 jian dan di shuo , wo men yi mian xiang liu (stream) de fang shi shi yong TCP/IP(tcp) shi , tong shi yuan xu duo ge FTP lian jie (nowait)、 zuo wei root yun xing yi ji tiao yong FTP( jie xia lai ,TCP feng zhuang qi jiang tiao yong FTP shou hu cheng xu )。    yong yi shang wu de shi jian jie xi hen kun nan ma ? jue dui kun nan 。 you bi yao zhe me fu duo ma ? bu 。xinetd ji cheng le inetd de she ji bing jiang ta mo kuai hua , zhe yi wei zhe mei ge fu wu dou ke yi cun zai yu ta zi ji de pei zhi wen jian zhong 。xinetd huan tian jia le yi xie xiang TCP feng zhuang qi zhi lei de gong neng bu jian , shi de pei zhi geng jia jian dan 。   xinetd bao chi le zhong yang pei zhi ( jie xian yuan ) fang fa , jiang suo you pei zhi wen jian cun chu dao dan yi wei zhi , tong chang shi /etc/xinetd.conf he /etc/xinetd.d/*, shi xi tong guan li yuan ke yi geng rong yi di huo de 。 mo kuai hua pei zhi yi wei zhe , nin ke yi tong guo jiang fu wu fu zhi dao xinetd.d mu lu lai xiang duo tai ji qi shang fen fa gai fu wu , ye ke yi yong tong lei de shou duan chu qu ta 。 shen zhi ke yi zhi ding e wai de bao han mu lu 。    zui hou ,xinetd FAQ( qing shen yue ben wen hou mian de shen kao zi liao ) sheng ming le RPC cheng xu zai xinetd xia yun xing de bu tai hao 。 bu guo mei wen ti , dui RPC shi yong inetd, bing dui qi ta suo you fu wu shi yong xinetd。 zhe jiu xiang gu le liang ge jie xian yuan , yi ge shuo xi ban ya yu , ling yi ge shuo suo you qi ta yu yan 。   xinetd jian jie    na me xinetd shi shen me ? yi ju hua , ta jiu shi ge cheng xu 。 chu li ru zhan wang luo lian jie mei shen me shen qi 。 ke yi shi yong Perl、Python huo Java lai chu li 。Xinetd shi yong C bian xie de , er qie ta he ta de qian bei inetd yi yang kuai , ru guo bu shi geng kuai de hua ( li ru ,TCP feng zhuang qi bu bi wei mei ge ru zhan lian jie er zhi xing ; ta men zai qi dong shi zhuang ru nei cun )。   xinetd zheng zai kai fa zhong 。( nin de ban ben ke neng guo shi le , suo yi qing wu bi dao zhu ye shang cha zhao zui xin de ban ben ; qing shen yue shen kao zi liao 。) yin wei ta zheng zai kai fa zhong , suo yi xinetd de an quan lou dong de yi xun su mi bu , er bu xiang inetd na yang bo ruo , tong chang yao hen chang shi jian cai neng mi bu 。 dang ran ,xinetd shi sui yuan dai ma yi qi jiao fu de , suo yi nin ke yi fu cha yuan dai ma bing zi ji zhao dao ke neng cun zai ruo dian de di fang 。    ru he shi yong xinetd ding yi fu wu ne ? bian xie yi ge fu wu wen jian , ta chu le zhi ding /etc/xinetd.conf zhong suo zhi ding de yi ban shen shu zhi wai , huan zhi ding te ding pei zhi 。 suo yi , ru guo /etc/xinetd.conf shi zhe yang de :    qing dan 2, yang ben xinetd.conf( biao zhun de Red Hat 7.1) defaults   {   instances   = 60   log_type   = SYSLOG authpriv   log_on_success   = HOST PID   log_on_failure   = HOST   cps   = 25 30   }   service telnet   {   flags   = REUSE   socket_type   = stream   wait   = no   user   = root   server   = /usr/sbin/in.telnetd   log_on_failure   += USERID   disable   = yes   }   includedir /etc/xinetd.d    nin fang dao /etc/xinetd.d zhong de mei ge fu wu wen jian dou hui ji cheng zhe xie que sheng zhi , bing zhi ding ta zi ji de shen shu 。 zhe li ,telnet fu wu zai ding ji ding yi , er bu shi zai zi mu lu zhong ding yi 。 zhe tai bang le , zhe zhong mo kuai xing yuan xu fu duo de pei zhi 。    yao shi xinetd chong xin du qu pei zhi wen jian , bu bi chong xin qi dong ta 。 zhi yao xiang ta fa song USR2 xin hao ji ke 。    na xie shen shu biao shi shen me yi si ? rang wo men tong du zheng ge qing dan 。 nin ye ke yi zai ming ling xing xia shi yong man xinetd.conf lai cha kan lie biao ( ru guo na ge bang zhu ye mian zheng que an zhuang de hua ), dan zhe ge gai shu shi tu yong geng jian dan de shu yu lai jie shi shen shu , bing bu jia ding nin yi jing zhi dao guan yu tao jie zi he fu wu de suo you xin xi 。 yi xie shen shu (rpc_version、rpc_number) bei tiao guo 。    chang gui shen shu   id    gai fu wu de wei yi ming cheng 。 fu wu ming cheng zai hua kuo hao zhi qian zhi ding , dan shi ID shi luo ji shang xiang tong de fu wu ke neng yong you duo ge xie yi 。 zhe shi dui yu lin shi yong hu de shou xian shi yong 。 li ru ,NFS fu wu ke yi zai UDP huo TCP chuan shu xie yi shang yun xing 。 zai Red Hat Linux 7.1 shang ,TCP ban ben ( zai /etc/xinetd.d/time zhong ) he UDP ban ben ( zai /etc/xinetd.d/time-udp zhong ) zhong ti gong le dui yu xinetd lai shuo nei bu de shi jian fu wu 。   type    zhe shi ji shang ying gai cheng wei “ te shu lei xing ”, yin wei ta zhi shi yong yu te shu fu wu 。 ta ke yi shi yi xia ji zhong lei xing de zu he :“RPC”, yong yu RPC fu wu ( you SUN yin ru de yuan cheng guo cheng tiao yong , dao zhi le hen duo an quan xing wen ti , zui hao bi mian shi yong );“INTERNAL”, yong yu gou jian dao xinetd nei bu de fu wu , pi ru shi jian fu wu ;“UNLISTED”, yong yu zai xi tong lie biao (/etc/services huo yong yu RPC fu wu de /etc/rpc) zhong zhao bu dao de fei biao zhun fu wu 。   flags    zhe li fang zhi zhe suo you e wai biao zhi 。 lie biao hen chang bing qie ji shu xing hen qiang ; wo men gan xing qu de biao zhi bao kuo REUSE( yong yu tao jie zi chong yong , pi ru telnet)、NAMEINARGS/NOLIBWRAP( ru guo nin xi wang shou gong tiao yong TCP feng zhuang qi huo zhe wan quan di bi mian shi yong feng zhuang qi )、NODELAY/KEEPALIVE( yong yu tiao zheng TCP tao jie zi )、DISABLE( fu gai ding ji “disable” shen shu ) yi ji SENSOR( yong yu jian ce he fang zhi mou xie lei xing de “ ju jue fu wu (denial-of-service)” wang luo gong ji )。   disable    chu fei nin xi wang jin yong mou xiang fu wu , fou ze zong shi ba ta she cheng “no”。Red Hat Linux de chkconfig cheng xu jiang wei nin da kai huo guan bi “disable” shen shu ; zai Red Hat shang , yong chkconfig qi yong he jin yong te ding fu wu ke neng bi shou gong fang shi jian dan xie 。 qing zhu yi ,chkconfig yu qi zai /etc/xinetd.d/SERVICE zhong zhao dao fu wu wen jian 。 suo yi dui yu shang mian qing dan 2 zhong de shi li ,chkconfig jiang bu hui zai qing qiu shi da kai huo guan bi telnet。 ke yi jiang ta ren wei shi yi ge cuo wu huo te xing , qu jue yu nin de guan dian 。   socket_type    tong chang nin xi wang zhe ge shen shu she zhi cheng “stream”, chu fei shi yong UDP fu wu , ci shi she zhi cheng “dgram”。 gai shen shu ye ke yi she zhi cheng “raw” he “seqpacket”, dan ji shao jian 。   protocol    zhe shi lian jie suo yong de xie yi , tong chang shi “tcp” huo “udp”, dan shi zai li lun shang nin ke yi shi yong lai zi /etc/protocols de ren he zhi 。   wait    ru guo she zhi cheng “no”,xinetd jiang wei mei ge lian jie shang de fu wu qi dong yi ge xin de chu li cheng xu 。 ru guo shi “yes”,xinetd yu qi gai chu li cheng xu chu li suo you hou xu lian jie zhi dao ta si wang 。 zai da duo shu qing kuang xia , zhe ge shen shu shi “no”。   server, server_args    chu li cheng xu de cheng xu ming , yi ji ta ying dang huo de de shen shu 。 chu li cheng xu ming bu ying gai xiang zai inetd huan jing xia na yang , chu xian zai shen shu zhong 。   port    fu wu de duan kou 。 tong chang bu xu yao , yin wei duan kou tong guo /etc/services wen jian lai yang she dao fu wu 。   redirect    yuan xu xinetd jiang suo you fu wu de liu liang fa song gei ling yi tai zhu ji 。 yin ci , shou fang huo qiang bao hu de zhu ji ke yi tong guo zhong yang xinetd zhuan fa qi jie shou an quan liu liang , er bu bi jian li yu wai bu wang luo de lian jie 。 zai mou xie gong zuo zhong , ke yi cai yong zhe ge te zheng lai zai liang tai zhu ji jian zhi xing gu zhang zhuan yi fu wu 。   banner, banner_success, banner_fail    yi ge jiang yao zai “ ren yi / yi ge cheng gong / yi ge bu cheng gong ” lian jie shang da yin de lai zi wen jian de ding zhi wen ben kuai 。   enabled    zai quan ju ji bie shang bu chong “disabled” shen shu he DISABLE biao zhi 。   include, includedir    gao su xinetd yao bao han wen jian huo mu lu 。    huan jing shen shu   user, group, umask, groups    dang qi dong fu wu chu li cheng xu shi ,xinetd ying gai ban yan de UNIX shu xing 。 zhe zhu yao yong yu fei an quan fu wu 。   nice    que ding gai fu wu dui yu xi tong you duo chong yao de UNIX you xian ji ji bie 。 ke yi zhen dui nin de xi tong tiao zheng ta , qing cha kan “nice” de man ye mian 。   env    yong yu fu wu chu li cheng xu de huan jing bian liang 。   passenv    ying gai xiang xia chuan di dao fu wu chu li cheng xu de xinetd zhong de huan jing bian liang 。    zi yuan guan li shen shu   instanc   
󰈣󰈤
  免责声明:本文仅代表作者个人观点,与王朝网络无关。王朝网络登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
时尚秀气模特裴裴(8)
时尚秀气模特裴裴(7)
时尚秀气模特裴裴(6)
时尚秀气模特裴裴(5)
白墙黑瓦
广州东郊[原创]
八美至丹巴的东谷天然盆景
不一样的
 
>>返回首页<<
 
 
 为你推荐
 
 
 
 转载本文
 UBB代码 HTML代码
复制到剪贴板...
 
 热帖排行
 
 
 
 
 
©2005- 王朝网络 版权所有