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

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

2008-05-19 06:25:45 编辑來源:互联网 评论
 
 
 
本文为【功能丰富的Perl:用于系统管理】的拼音翻译版
  cfengine( pei zhi yin qing ) shi yi zhong UNIX guan li gong ju , qi mu de shi shi jian dan de guan li de ren wu zi dong hua , shi kun nan de ren wu bian de jiao rong yi 。 ta de mu biao shi shi xi tong cong ren he zhuang tai shou lian (convergence) dao yi zhong li xiang zhuang tai 。 yi zhao ta de zuo zhe Mark Burgess suo shuo ,cfengine zong shi shi nin de xi tong geng jie jin yu nin suo ding yi de pei zhi ; ta jue bu hui shi xi tong bian de geng zao 。 zai ben wen zhong ,Ted tong guo yan shi yi xie jian dan de cfengine shi yong , shi nin shu xi zhe yi du te de xi tong guan li gong ju 。
  chu xue zhe he zhong ji xi tong guan li yuan jiang cong ben wen huo yi zui duo ; jie shuo he shi li jia she nin ke yi yun yong da bu fen chu xue zhe ji bie de xi tong guan li gai nian 。
  yao shi yong ben wen zhong de shi li , nin de xi tong ying gai shi yi ge zui jin de (2000 huo geng xin ) zhu liu UNIX(Linux、Solaris、BSD) an zhuang 。 shi li ke yi yu zao qi ban ben de Perl he UNIX yi ji qi ta cao zuo xi tong yi qi shi yong , ru guo ta men bu neng gong zuo , dui nin lai shuo , ke yi ba ta dang cheng lian xi lai jie jue 。
  cfengine zheng chu yu kai fa zhong 。 ban ben 1.6.3 shi wen ding de , ta shi ben wen de ji chu 。 dang qian zheng zai jin xing a er fa ce shi de ban ben 2.0 de ji hua bao kuo chong xie ti xi jie gou 、 tian jia xu duo hen bang de xin gong neng bu jian yi ji shi yu fa ji ben shang bao chi bu bian 。 yao le jie cfengine de suo you gong neng yi ji ban ben 2.0 zhong de zeng qiang gong neng , qing fang wen cfengine zhu ye ( qing shen yue ben wen hou mian de shen kao zi liao )。
  cfengine de yao dian
  cfengine jiang gai bian nin de xi tong guan li fang fa 。 nin jiang yun xing yi ge ming ling bing guan cha xi tong jiang shou lian dao yi zhong wen ding zhuang tai 。 wo bao zheng zhe kan qi lai xiang zai bian mo shu 。 zai nin he cha de shi hou ,cfengine jiang bian ji wen jian 、 yun xing ming ling bing chuang jian fu hao lian jie 。
  ran er ,cfengine bing bu neng dai ti nin si kao 。 zai jiang pei zhi wen jian fang ru chan pin zhi qian , nin reng xu yao bian xie ta bing dui ta jin xing ce shi 。 er ling yi fang mian ,cfengine suo zuo de shi qing ji hu hen shao hui zao cheng sun hai 。
  cfengine shi xi tong shou lian cheng wei ke neng 。 dan shi , wei shen me xu yao shou lian ne ? wo ren wei xi tong guan li yuan shou xian xu yao bao chi nei xin ning jing , qi yu de shi qing dou shi ci yao de 。 wen ding xing 、 ke kao xing he ke yu ce xing shi da dao nei xin ning jing de fang fa 。 zhe kan si guo fen jian dan , dan xun wen ren he yi ming hao de xi tong guan li yuan , mei ci nin dou hui de dao zhe ge da an 。 shou lian ke yi bang zhu guan li yuan da dao wen ding xing 、 ke kao xing he ke yu ce xing 。 sui ran ta bu shi da dao na xie mu biao de wei yi fang fa , dan zai wo de jing li zhong ta suo dai lai de tong ku zui shao 。
  wen ding xing ke ding yi wei fang zhi wu yi de geng gai 。 dang cfengine shi xian shou lian shi , ta tong guo gui ze ji zuo dao zhe yi dian 。 liang hao she ji de gui ze ( qing fang xin ,cfengine shi liang hao de she ji bian de rong yi ) zhi shi shi xi tong da dao yi zhong li xiang zhuang tai ( ru zai cfengine gui ze zhong ding yi de na yang li xiang )。 li ru , mei ci yun xing cfengine shi , dou ke yi chong xin chuang jian guan jian de xi tong fu hao lian jie 。 huo zhe , zhi yao xiu gai le ben di fu ben , dou ke yi cong ke xin zi yuan ku fu zhi init.d qi dong jiao ben 。 ru guo cfengine mei you fa jiao jin cheng zai yun xing , na me ke yi chong xin qi dong ta men 。
  ke kao xing shi shi ji qi xing mian yu wen ti de neng li 。 wang luo chu gu zhang huo ci pan chu gu zhang shi zhu yao de ke kao xing kao yan 。 nin de xi tong neng xing mian yu na xie wen ti ma ? tong guo shou lian dao yi zhong li xiang zhuang tai , nin ke yi qi wang xi tong chu yu huo jie jin na yi li xiang zhuang tai 。 sui ran ke kao xing bu dan you cfengine wan cheng , dan shou lian ke shi zhi geng jia rong yi 。 yin wei wen ding de xi tong bu tai ke neng shou wen ti ying xiang , suo yi wen ding xing ye shi ke kao xing de zhu yao zi chan 。 zui hou ,cfengine de shou lian shi huo de “ kong bai ” xi tong bing shi ta da dao qi wang de zhuang tai cheng wei ke neng , bing neng gou dui guan jian xi tong jin xing kuai su lin shi ti huan 。
  zhe li , you bi yao duo jiang jiang qi wang he li xiang de zhuang tai 。 mu qian wei zhi , wo men jia she jin you yi zhong li xiang zhuang tai , ta jiu shi na ge qi wang de zhuang tai 。 shi shi shang , dui yu suo you ji qi lai shuo bing mei you li xiang zhuang tai 。 ji qi an ren wu 、 wei zhi 、 lian tong xing 、 yong hu 、 cao zuo xi tong lei xing he ban ben deng fen lei 。 mei ge xi tong guan li yuan dou yong mou xie fang fa lai dui ta de ji qi fen lei , tong chang gen ju shang shu ge xiang yi ji geng duo xiang ( wo men shao hou jiang xiang xi tao lun lei )。 sui ran dui yu suo you ji qi lai shuo mei you yi zhong li xiang zhuang tai , dan dui yu gei ding de ji qi lei you yi ge yao da dao de li xiang zhuang tai 。 zhe shi cfengine de she ji mu biao 。cfengine shi xun zhao li xiang zhuang tai bian de ke xing , bing qie yi yu shou lian dao gai zhuang tai 。
  ke yu ce xing shi ji qi an zhao qi wang de na yang lai yun zhuan de neng li 。 shou lian tong guo shi xi tong bian de wen ding qie ke kao lai da dao ke yu ce xing 。 er qie , yi dan xin ji qi shou lian dao yi zhong li xiang zhuang tai , jiu ke yi qi wang ta xiang ta suo ti huan de jiu ji qi na yang gong zuo 。 dang ji qi jiang hen kuai shou lian dao yi ge yi zhi zhuang tai shi , jiu ke yi hen rong yi di gu ji tian jia xi tong huo ti huan ta men de tiao du cheng ben 。 zui hou , wei nin xi tong bian xie de ruan jian ke yi qi wang xi tong chu yu yi zhong jie jin li xiang de zhuang tai 。 ran hou , xi tong zi yuan chu yu yi zhong ke yu ce de zhuang tai , zhe yang , ruan jian jiu ke yi geng duo di ji zhong zai gong neng shang , er geng shao di jiang mei ge xi tong zuo wei fu you di yi de wei zhi ling yu dui dai 。
  cfengine de gai shu
  Cfengine you ji ge cheng xu zu cheng 。 zai ban ben 1.6.3 zhong , zhu cheng xu jiao zuo cfengine。cfengine cheng xu jie shi wen jian zhong de gui ze ji , bing zhi xing na xie gui ze qing qiu de cao zuo 。 yan ge lai shuo ,cfengine cheng xu zhi shi cfengine yu yan de jie shi qi , bing qie ren he cfengine cheng xu dou zhi shi na ge jie shi qi de jiao ben 。
  zai ban ben 1.6.3 zhong , huan you yi ge ming wei cfd de shou hu cheng xu ji qi tong ban cfrun。cfd jiang zai ban ben 2.0 de dao jia qiang , er zai 1.6.3 ban ben zhong you xu duo wei wan shan de di fang 。 xing yun de shi , bu yong cfd, jiu ke yi wan cheng wo suo xu yao de ren wu ( yong xin hao tong zhi yun xing cfengine bing yuan cheng fu zhi wen jian )。 wo ning yuan zai ssh shang tong guo xian shi jiao ben qi dong cfengine。 ta zhi bi cfd shao xu man yi dian , dan geng yi yu jian kong 。 dang tong guo cfd qi dong shi ,cfengine fa chu de cuo wu he yuan cheng ding yi de lei mei you ke kao di xian shi chu lai 。 dui yu yuan cheng wen jian fu zhi , wo fa xian cfd shi bu ke kao de er qie ke neng hui wei hai an quan xing , suo yi wo shi yong rsync。cfengine de zuo zhe Mark Burgess sheng ming cfd zai ban ben 2.0 zhong jiang you hen da gai jin , er rsync jiang bu zai shi bi xu de , dan zai ban ben 2.0 tui chu zhi qian , wo jian yi bi mian cfd。
  zai kai shi shi yong cfengine zhi qian , ying gai bian yi he an zhuang ta 。 dui yu ke yi shi yong ta men de xi tong ,RPM dou you ke yong de ban ben , er qie huan you yi ge ke yong de Solaris bao ( qing shen yue shen kao zi liao )。 ru guo yao cun chu wen jian de yong jiu xiao yan he ( lei si yu Tripwire suo zuo de shi qing ), ze ying gai dai you Berkeley DB zhi chi jin xing bian yi 。 ran hou , ying gai kai shi chuang jian pei zhi wen jian 。 zhu yao de pei zhi wen jian shi /etc/cfengine/cfengine.conf, ta shi zai bu dai wen jian ming tiao yong cfengine shi yun xing de ( dang zai 1.6.3 zhong bian yi shi , ke yi zhi ding yi ge bu tong de que sheng pei zhi mu lu , dan zai 2.0 ji geng gao ban ben zhong ,/etc/cfengine jiang shi jian cha de wei yi wei zhi , suo yi nin ying gai yan ge zun shou zhe yi dian )。
  xia mian shi cfengine de qi shi pei zhi 。 ta bu shi cheng pin , zai yun xing ta zhi qian , ying gai zai xi di yue du cfengine shen kao da quan he jiao cheng ( qing shen yue shen kao zi liao )。 qing dai -v -n( xiang xi de yu yan ) xuan xiang chang shi yun xing cfengine, kan yi xia zhe ge pei zhi jiang zuo xie shen me 。 dang shi yong -n( yu yan ) xuan xiang shi , bu hui ying xiang xi tong 。
  qing dan 1. cfengine de qi shi pei zhi wen jian /etc/cfengine/cfengine.conf
  # note that only some of the possible sections are used here;
  # refer to the cfengine documentation for the full list of sections
  # you can have.
  Comments, as you can see, are like shell or Perl
  # comments.
  # see the tutorial and reference for any unexplained phenomena
  import:
  any::
  cf.groups
  groups:
  # all groups are defined in cf.groups, imported above, but you can
  # define extras here.
  The format is simple:
  class = ( machine1 machine2 )
  # and then any machine named machine1 or machine2 will have that class
  # defined.
  # the control section sets up how cfengine will behave
  control:
  any::
  # you have to state in AddInstallable what classes unknown to cfengine
  # by default you will be using.
  Run cfengine as "cfengine -v" to see
  # the built-in classes you don't have to define.
  Here we divide
  # machines into the ones that run inetd and the ones that run xinetd,
  # as an example.
  AddInstallable = ( inetd xinetd )
  editfilesize
  = ( 300000 )
  moduledirectory = ( /etc/cfengine/modules )
  domain
  = ( yourdomain.com )
  any::
  LogDirectory
  = ( /etc/cfengine/log )
  netmask
  = ( 255.255.255.0 )
  Repository
  = ( /etc/cfengine/repository )
  sysadm
  = ( "tzz@iglou.com" )
  # Bug in cfengine: actionsequence must follow LogDirectory and Repository
  actionsequence = ( directories files editfiles copy links processes disable
  shellcommands )
  directories:
  # this ensures that these directories will be created when cfengine runs
  /etc/cfengine/log
  /etc/cfengine/repository
  /etc/cfengine/cfcollector
  files:
  any::
  # set the permissions for these files
  /etc/sudoers mode=0440 owner=root group=root action=fixall
  /etc/hosts.allow mode=0644 owner=root group=root action=fixall
  /etc/hosts.deny mode=0644 owner=root group=root action=fixall
  # just warn if this file's permissions are wrong
  /etc/shadow mode=0400 owner=root action=warnall inform=true
  # CERT advisory CA-2001-05, for Solaris only
  solaris::
  /usr/lib/dmi/snmpXdmid mode=0000 owner=root group=root action=fixall
  # example of setting permissions differently for different OS types
  # (not Linux and Linux), and negating classes
  !linux::
  /.ssh mode=0700 owner=root action=fixall inform=true
  linux::
  /root/.ssh mode=0700 owner=root action=fixall inform=true
  editfiles:
  any::
  # add the rsync service to /etc/services and /etc/inetd.conf
  { /etc/services
  SetLine "rsync
  873/tcp # rsync"
  【原文】【汉音对照
 
 
 
 
 
 
 
 
 
日版宠物情人插曲《Winding Road》歌词

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

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

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

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

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

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

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

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

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

 
 
  cfengine( pei zhi yin qing ) shi yi zhong UNIX guan li gong ju , qi mu de shi shi jian dan de guan li de ren wu zi dong hua , shi kun nan de ren wu bian de jiao rong yi 。 ta de mu biao shi shi xi tong cong ren he zhuang tai shou lian (convergence) dao yi zhong li xiang zhuang tai 。 yi zhao ta de zuo zhe Mark Burgess suo shuo ,cfengine zong shi shi nin de xi tong geng jie jin yu nin suo ding yi de pei zhi ; ta jue bu hui shi xi tong bian de geng zao 。 zai ben wen zhong ,Ted tong guo yan shi yi xie jian dan de cfengine shi yong , shi nin shu xi zhe yi du te de xi tong guan li gong ju 。    chu xue zhe he zhong ji xi tong guan li yuan jiang cong ben wen huo yi zui duo ; jie shuo he shi li jia she nin ke yi yun yong da bu fen chu xue zhe ji bie de xi tong guan li gai nian 。    yao shi yong ben wen zhong de shi li , nin de xi tong ying gai shi yi ge zui jin de (2000 huo geng xin ) zhu liu UNIX(Linux、Solaris、BSD) an zhuang 。 shi li ke yi yu zao qi ban ben de Perl he UNIX yi ji qi ta cao zuo xi tong yi qi shi yong , ru guo ta men bu neng gong zuo , dui nin lai shuo , ke yi ba ta dang cheng lian xi lai jie jue 。   cfengine zheng chu yu kai fa zhong 。 ban ben 1.6.3 shi wen ding de , ta shi ben wen de ji chu 。 dang qian zheng zai jin xing a er fa ce shi de ban ben 2.0 de ji hua bao kuo chong xie ti xi jie gou 、 tian jia xu duo hen bang de xin gong neng bu jian yi ji shi yu fa ji ben shang bao chi bu bian 。 yao le jie cfengine de suo you gong neng yi ji ban ben 2.0 zhong de zeng qiang gong neng , qing fang wen cfengine zhu ye ( qing shen yue ben wen hou mian de shen kao zi liao )。   cfengine de yao dian   cfengine jiang gai bian nin de xi tong guan li fang fa 。 nin jiang yun xing yi ge ming ling bing guan cha xi tong jiang shou lian dao yi zhong wen ding zhuang tai 。 wo bao zheng zhe kan qi lai xiang zai bian mo shu 。 zai nin he cha de shi hou ,cfengine jiang bian ji wen jian 、 yun xing ming ling bing chuang jian fu hao lian jie 。    ran er ,cfengine bing bu neng dai ti nin si kao 。 zai jiang pei zhi wen jian fang ru chan pin zhi qian , nin reng xu yao bian xie ta bing dui ta jin xing ce shi 。 er ling yi fang mian ,cfengine suo zuo de shi qing ji hu hen shao hui zao cheng sun hai 。   cfengine shi xi tong shou lian cheng wei ke neng 。 dan shi , wei shen me xu yao shou lian ne ? wo ren wei xi tong guan li yuan shou xian xu yao bao chi nei xin ning jing , qi yu de shi qing dou shi ci yao de 。 wen ding xing 、 ke kao xing he ke yu ce xing shi da dao nei xin ning jing de fang fa 。 zhe kan si guo fen jian dan , dan xun wen ren he yi ming hao de xi tong guan li yuan , mei ci nin dou hui de dao zhe ge da an 。 shou lian ke yi bang zhu guan li yuan da dao wen ding xing 、 ke kao xing he ke yu ce xing 。 sui ran ta bu shi da dao na xie mu biao de wei yi fang fa , dan zai wo de jing li zhong ta suo dai lai de tong ku zui shao 。    wen ding xing ke ding yi wei fang zhi wu yi de geng gai 。 dang cfengine shi xian shou lian shi , ta tong guo gui ze ji zuo dao zhe yi dian 。 liang hao she ji de gui ze ( qing fang xin ,cfengine shi liang hao de she ji bian de rong yi ) zhi shi shi xi tong da dao yi zhong li xiang zhuang tai ( ru zai cfengine gui ze zhong ding yi de na yang li xiang )。 li ru , mei ci yun xing cfengine shi , dou ke yi chong xin chuang jian guan jian de xi tong fu hao lian jie 。 huo zhe , zhi yao xiu gai le ben di fu ben , dou ke yi cong ke xin zi yuan ku fu zhi init.d qi dong jiao ben 。 ru guo cfengine mei you fa jiao jin cheng zai yun xing , na me ke yi chong xin qi dong ta men 。    ke kao xing shi shi ji qi xing mian yu wen ti de neng li 。 wang luo chu gu zhang huo ci pan chu gu zhang shi zhu yao de ke kao xing kao yan 。 nin de xi tong neng xing mian yu na xie wen ti ma ? tong guo shou lian dao yi zhong li xiang zhuang tai , nin ke yi qi wang xi tong chu yu huo jie jin na yi li xiang zhuang tai 。 sui ran ke kao xing bu dan you cfengine wan cheng , dan shou lian ke shi zhi geng jia rong yi 。 yin wei wen ding de xi tong bu tai ke neng shou wen ti ying xiang , suo yi wen ding xing ye shi ke kao xing de zhu yao zi chan 。 zui hou ,cfengine de shou lian shi huo de “ kong bai ” xi tong bing shi ta da dao qi wang de zhuang tai cheng wei ke neng , bing neng gou dui guan jian xi tong jin xing kuai su lin shi ti huan 。    zhe li , you bi yao duo jiang jiang qi wang he li xiang de zhuang tai 。 mu qian wei zhi , wo men jia she jin you yi zhong li xiang zhuang tai , ta jiu shi na ge qi wang de zhuang tai 。 shi shi shang , dui yu suo you ji qi lai shuo bing mei you li xiang zhuang tai 。 ji qi an ren wu 、 wei zhi 、 lian tong xing 、 yong hu 、 cao zuo xi tong lei xing he ban ben deng fen lei 。 mei ge xi tong guan li yuan dou yong mou xie fang fa lai dui ta de ji qi fen lei , tong chang gen ju shang shu ge xiang yi ji geng duo xiang ( wo men shao hou jiang xiang xi tao lun lei )。 sui ran dui yu suo you ji qi lai shuo mei you yi zhong li xiang zhuang tai , dan dui yu gei ding de ji qi lei you yi ge yao da dao de li xiang zhuang tai 。 zhe shi cfengine de she ji mu biao 。cfengine shi xun zhao li xiang zhuang tai bian de ke xing , bing qie yi yu shou lian dao gai zhuang tai 。    ke yu ce xing shi ji qi an zhao qi wang de na yang lai yun zhuan de neng li 。 shou lian tong guo shi xi tong bian de wen ding qie ke kao lai da dao ke yu ce xing 。 er qie , yi dan xin ji qi shou lian dao yi zhong li xiang zhuang tai , jiu ke yi qi wang ta xiang ta suo ti huan de jiu ji qi na yang gong zuo 。 dang ji qi jiang hen kuai shou lian dao yi ge yi zhi zhuang tai shi , jiu ke yi hen rong yi di gu ji tian jia xi tong huo ti huan ta men de tiao du cheng ben 。 zui hou , wei nin xi tong bian xie de ruan jian ke yi qi wang xi tong chu yu yi zhong jie jin li xiang de zhuang tai 。 ran hou , xi tong zi yuan chu yu yi zhong ke yu ce de zhuang tai , zhe yang , ruan jian jiu ke yi geng duo di ji zhong zai gong neng shang , er geng shao di jiang mei ge xi tong zuo wei fu you di yi de wei zhi ling yu dui dai 。   cfengine de gai shu   Cfengine you ji ge cheng xu zu cheng 。 zai ban ben 1.6.3 zhong , zhu cheng xu jiao zuo cfengine。cfengine cheng xu jie shi wen jian zhong de gui ze ji , bing zhi xing na xie gui ze qing qiu de cao zuo 。 yan ge lai shuo ,cfengine cheng xu zhi shi cfengine yu yan de jie shi qi , bing qie ren he cfengine cheng xu dou zhi shi na ge jie shi qi de jiao ben 。    zai ban ben 1.6.3 zhong , huan you yi ge ming wei cfd de shou hu cheng xu ji qi tong ban cfrun。cfd jiang zai ban ben 2.0 de dao jia qiang , er zai 1.6.3 ban ben zhong you xu duo wei wan shan de di fang 。 xing yun de shi , bu yong cfd, jiu ke yi wan cheng wo suo xu yao de ren wu ( yong xin hao tong zhi yun xing cfengine bing yuan cheng fu zhi wen jian )。 wo ning yuan zai ssh shang tong guo xian shi jiao ben qi dong cfengine。 ta zhi bi cfd shao xu man yi dian , dan geng yi yu jian kong 。 dang tong guo cfd qi dong shi ,cfengine fa chu de cuo wu he yuan cheng ding yi de lei mei you ke kao di xian shi chu lai 。 dui yu yuan cheng wen jian fu zhi , wo fa xian cfd shi bu ke kao de er qie ke neng hui wei hai an quan xing , suo yi wo shi yong rsync。cfengine de zuo zhe Mark Burgess sheng ming cfd zai ban ben 2.0 zhong jiang you hen da gai jin , er rsync jiang bu zai shi bi xu de , dan zai ban ben 2.0 tui chu zhi qian , wo jian yi bi mian cfd。    zai kai shi shi yong cfengine zhi qian , ying gai bian yi he an zhuang ta 。 dui yu ke yi shi yong ta men de xi tong ,RPM dou you ke yong de ban ben , er qie huan you yi ge ke yong de Solaris bao ( qing shen yue shen kao zi liao )。 ru guo yao cun chu wen jian de yong jiu xiao yan he ( lei si yu Tripwire suo zuo de shi qing ), ze ying gai dai you Berkeley DB zhi chi jin xing bian yi 。 ran hou , ying gai kai shi chuang jian pei zhi wen jian 。 zhu yao de pei zhi wen jian shi /etc/cfengine/cfengine.conf, ta shi zai bu dai wen jian ming tiao yong cfengine shi yun xing de ( dang zai 1.6.3 zhong bian yi shi , ke yi zhi ding yi ge bu tong de que sheng pei zhi mu lu , dan zai 2.0 ji geng gao ban ben zhong ,/etc/cfengine jiang shi jian cha de wei yi wei zhi , suo yi nin ying gai yan ge zun shou zhe yi dian )。    xia mian shi cfengine de qi shi pei zhi 。 ta bu shi cheng pin , zai yun xing ta zhi qian , ying gai zai xi di yue du cfengine shen kao da quan he jiao cheng ( qing shen yue shen kao zi liao )。 qing dai -v -n( xiang xi de yu yan ) xuan xiang chang shi yun xing cfengine, kan yi xia zhe ge pei zhi jiang zuo xie shen me 。 dang shi yong -n( yu yan ) xuan xiang shi , bu hui ying xiang xi tong 。    qing dan 1. cfengine de qi shi pei zhi wen jian /etc/cfengine/cfengine.conf   # note that only some of the possible sections are used here;   # refer to the cfengine documentation for the full list of sections   # you can have.   Comments, as you can see, are like shell or Perl   # comments.   # see the tutorial and reference for any unexplained phenomena   import:   any::   cf.groups   groups:   # all groups are defined in cf.groups, imported above, but you can   # define extras here.   The format is simple:   class = ( machine1 machine2 )   # and then any machine named machine1 or machine2 will have that class   # defined.   # the control section sets up how cfengine will behave   control:   any::   # you have to state in AddInstallable what classes unknown to cfengine   # by default you will be using.   Run cfengine as "cfengine -v" to see   # the built-in classes you don't have to define.   Here we divide   # machines into the ones that run inetd and the ones that run xinetd,   # as an example.   AddInstallable = ( inetd xinetd )   editfilesize   = ( 300000 )   moduledirectory = ( /etc/cfengine/modules )   domain   = ( yourdomain.com )   any::   LogDirectory   = ( /etc/cfengine/log )   netmask   = ( 255.255.255.0 )   Repository   = ( /etc/cfengine/repository )   sysadm   = ( "tzz@iglou.com" )   # Bug in cfengine: actionsequence must follow LogDirectory and Repository   actionsequence = ( directories files editfiles copy links processes disable   shellcommands )   directories:   # this ensures that these directories will be created when cfengine runs   /etc/cfengine/log   /etc/cfengine/repository   /etc/cfengine/cfcollector   files:   any::   # set the permissions for these files   /etc/sudoers mode=0440 owner=root group=root action=fixall   /etc/hosts.allow mode=0644 owner=root group=root action=fixall   /etc/hosts.deny mode=0644 owner=root group=root action=fixall   # just warn if this file's permissions are wrong   /etc/shadow mode=0400 owner=root action=warnall inform=true   # CERT advisory CA-2001-05, for Solaris only   solaris::   /usr/lib/dmi/snmpXdmid mode=0000 owner=root group=root action=fixall   # example of setting permissions differently for different OS types   # (not Linux and Linux), and negating classes   !linux::   /.ssh mode=0700 owner=root action=fixall inform=true   linux::   /root/.ssh mode=0700 owner=root action=fixall inform=true   editfiles:   any::   # add the rsync service to /etc/services and /etc/inetd.conf   { /etc/services   SetLine "rsync   873/tcp # rsync"   
󰈣󰈤
  免责声明:本文仅代表作者个人观点,与王朝网络无关。王朝网络登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
华丽的模特拍摄(8)
华丽的模特拍摄(7)
华丽的模特拍摄(6)
华丽的模特拍摄(5)
八里沟
朝阳宫
天下峨眉 云上金顶
老家(四)
 
>>返回首页<<
 
 
 为你推荐
 
 
 
 转载本文
 UBB代码 HTML代码
复制到剪贴板...
 
 热帖排行
 
 
 
 
 
©2005- 王朝网络 版权所有