资源描述:
《redhat系统服务控制机制详解》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、RedHat系统服务控制机制详解DetailedexplanationofRedHatsystemservicecontrolmechanismRedHatLinuxinaccesscontrolservice,inadditiontoFirewallbythemechanismofNetfilter,theprogramaccessmanagementtooliptablessystemservices,suchasaccesstodenyservices,iscertainlythemostsimplewaytoclosetheservice,asforaccesscontr
2、olservicesinadditiontothemechanismofxinetd,mainlyliesin:theuseoftheservicetheexistingaccesscontrolapplicationssuchas:ntsysv,serviceconf,chkconfigandothermeanstoachievethecontro1.Ntsysv"Ntsysv"isaRedHatapplicationdevelopmenttextinterface,operationinterfaceisinteractive,lookatfirstglancelikeins
3、tallationscreentextmode,isusedtoseteachrunlevelinthesystemistobeactivatedwhentheserviceactivation,whichisnotbasicallyusedforserviceactivation,stopandREactivatedifyouwanttomaketheserviceactivation,stopandREactivatedunderservicedaemonstop(startorrestart),forexample:serviceipchainsrestartissetto
4、changeit;anddonottakeeffectimmediately,mustwaituntilreactivatedbeginning.Wecanusentsysvtoturnonorofftheservicesmanagedbyxinetd,oryoucanusentsysvtoturnonorofftheservicesunderthe/etc/rc・ddirectoryschema・Itssyntaxisasfollows(refertomanpage):Ntsysv[--level]codeInputundersystempr
5、omptsign:#ntsysv(commandwithoutanyarguments,onbehalfofthesetatthislayerrunlevel)Ntsysv-levels35(#ordersandnumbersinthe3and5representativesetrunlevel)#ntsysv--back(whichshowsthe"Back"button,insteadofthe"Cancel"buttonintheoperationinterface)Serviceconf"Serviceconf"isanapplicationofgraphicalinte
6、rfacesdevelopedbyanRedHat・IthasaninteractiveoperationinterfacethatcanbeusedtosetupSysVandxinetdservicesthatrunlevel3,4,5wantstoactivatewhenthesystemisactivated・Itallowsyoutoactivate,stop,andreactivatetheSysVserviceandreactivatethexinetdservice・Thosewhoneedtopayattentionatthetimeofsettingare:1
7、.,ifaservicebelongingtoxinetd,suchasSwat,isactivated,stoppedandreactivated,thexinetdshouldbereactivated・2.inserviceconf,youcansetdifferentrunlevel,soindifferentrunlevelforservicechanges,ifyouwanttotakeeffectimmediately,youcanentertelinit