ÇÉÓÃcfengine¹ÜÀílinux·þÎñÆ÷(ת)
cfengine£¨ÅäÖÃÒýÇ棩ÊÇÒ»ÖÖ UNIX ¹ÜÀí¹¤¾ß£¬ÆäÄ¿µÄÊÇʹ¼òµ¥µÄ¹ÜÀíµÄÈÎÎñ×Ô¶¯»¯£¬Ê¹À§ÄѵÄÈÎÎñ±äµÃ½ÏÈÝÒס£Cfengine
ÊÊÓÃÓÚ¹ÜÀí¸÷ÖÖ»·¾³£¬´Óһ̨Ö÷»úµ½ÉÏÍǫ̀Ö÷»úµÄ»úȺ¾ù¿ÉʹÓᣵ½2.2 °æ±¾ÎªÖ¹£¬ÎÒÃÇÏÖÔÚËùÖªµÄÓÃÓÚÒ»°ãÐÔ¹ÜÀíµÄ×î´ó°²×°»úȺԼΪ20£¬000 ̨¡£
ͼ-1 ÊÇCfengine µÄ×é³É²¿·ÖµÄ¹Øϵͼ ¡£
¡¡Í¼-1 Cfengine µÄ×é³É²¿·ÖµÄ¹Øϵͼ
»ù±¾°²×°
¡¡ÔÚÈκÎÒ»ÖÖÇé¿öÏ£¬Ä㶼ÐèÒªÁ½¸ö¿â£ºBerkeleyDB£¬ÓÃÓÚÄÚ²¿Êý¾Ý¿âµÄʹÓ㻺ÍOpenSSL£¬ÓÃÓÚ¼ÓÃÜ·½·¨¡£ÕâЩ¿â¶¼ÊÇ¿ª·Å×ÊÔ´£¬²¢ÇÒÈç
ͬcfengineÒ»Ñù¿ÉÒÔÃâ·ÑʹÓá£Ã»ÓÐÕâЩ¿â£¬Ä㽫ÎÞ·¨Ê¹ÓÃcfengine£¬ÄãÒ²²»ÄÜÓÃÆäËûµÄ¿âÀ´Ìæ´úÕâÁ½¸ö¿â¡£±¾ÎÄʹÓõÄRHEL
5.0ÒѾ°üÀ¨ÕâЩ¿â¡£
¡¡#wget
linux
/dag/redhat/el5/en/i386/dag/RPMS/cfengine-2.2.2-1.el5.rf.i386.rpm">ftp://fr.rpmfind.net/
linux
/dag/redhat/el5/en/i386/dag/RPMS/cfengine-2.2.2-1.el5.rf.i386.rpm
¡¡#rpm -ivh cfengine-2.2.2-1.el5.rf.i386.rpm
¡¡½ÓÏÂÀ´µÄÒ»²½Êǽ¨Á¢cfengine¹¤×÷Ŀ¼Ê÷µÄ»ù±¾½á¹¹£º
¡¡ÊÖ¶¯½¨Á¢CfengineµÄ¹¤×÷Ŀ¼
¡¡# mkdir /var/cfengine
¡¡# mkdir /var/cfengine/bin
¡¡# mkdir /var/cfengine/inputs
¡¡½ÓÏÂÀ´£¬ÔÚ¹¤×÷Ŀ¼binµÄ×ÓĿ¼Ï£¨ÀýÈ磺/var/cfengine/bin£©½¨Á¢cfengine¿ÉÖ´ÐгÌÐòµÄ±¾µØ¸±±¾¡£Êµ¼ÊÔËÐйý³ÌÖУ¬ÊÇÕâЩ¸±±¾±»Ö´ÐУ¬Òò´Ëµ±ÍøÂçÔÚÖ´ÐÐÈÎÎñÆÚ¼ä¶Ïµô£¬Ò²²»»á¶Ôϵͳ²úÉú·çÏÕ¡£
¡¡²½Öè3 ¸´ÖÆCfengine¶þ½øÖÆ´úÂëµ½¹¤×÷Ŀ¼
¡¡# cp /usr/local/sbin/cfagent /var/cfengine/bin
¡¡# cp /usr/local/sbin/cfexecd /var/cfengine/bin
¡¡# cp /usr/local/sbin/cfservd /var/cfengine/bin
¡¡# chown -R root:0 /var/cfengine
¡¡# chmod -R 755 /var/cfengine
3ÔËÐÐËùÐèµÄ½ø³Ì
¡¡ÔÚ×î¼òµ¥µÄ°²×°ÖУ¬¿ÉÒÔͨ¹ýÔÚÿ̨Ö÷»úÉÏÊÖ¶¯ÔËÐÐcfagentÀ´Ê¹ÓÃcfengine¡£µ«ÊÇ£¬Èç¹ûÔËÐÐÒ»¸ö»ò¶à¸öÊØ»¤½ø³Ì£¬Ôò»á»ñÒæÁ¼¶à¡£
¡¡(1)cfexecdÊØ»¤½ø³Ì
¡¡¾¡¹ÜÔÚÀíÂÛÉÏ¿ÉÒÔ°´ÐèËæʱÔËÐÐcfagent£¬µ«×îºÃ¶¨ÆÚ×Ô¶¯ÔËÐÐcfagent¡£ÕâÊÇʹÓÃcfexecd
¡¡µÄʱ¼ä£»cfexecdÒÔÊØ»¤½ø³ÌµÄ·½Ê½ÔËÐв¢°´¶¨Òå¡¢Ô¤¶¨ÒåµÄ¼Æ»®Ö´ÐÐcfagent¡£Í¨¹ý½«Ê±¼äÀàÌí¼Óµ½cfagent.confµÄ
control¿éµÄscheduleÉèÖÃÖжԴ˼ƻ®½øÐÐÐ޸ġ£Ä¬ÈÏÉèÖÃÊÇMin00_05£¬ÕâÒâζ×Åcfagent½«ÔÚÿ¸öСʱµÄÇ°5·ÖÖÓÔËÐС£ÒªÃ¿Ð¡Ê±
ÔËÐÐÁ½´Î£¬ÀýÈ磬¿ÉÒÔ½«ÏÂÃæµÄ´úÂë·ÅÈëcfa
Ïà¹ØÎĵµ£º
ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......
×î½üºÜÊÇÎÞÁÄ£¬°Ñ±¾±¾ÄóöÀ´»»¸öϵͳ»»¸öÐÄÇé¡£ÓÚÊǾö¶¨°ÑÔ½ÅÜÔ½ÂýµÄD°æXP»»µô¡£Õâ´ÎÏÂÔØÁËFEDORA 12 X64£¬×ÜÊÇÄÃË«ºË64λµÄCPUÀ´ÅÜ32λϵͳÒѾÈÃÎÒ²»Ë¬ºÜ¾ÃÁË¡£
ϵͳװºÃÁËÒÔºó·¢ÏÖÓе㲻¶Ô¾¢£¬£À £À
¶«Î÷ºÃ´ó¡£¿´À´ÊÇ·Ö±æÂʵÄÎÊÌ⣬ϵͳ£Ê×Ñ¡Ïî£ÏÔʾ......ºÃÏñ¸Ä²»ÁË.
PS:ÔÚlinuxÏÂÃæ²»×°ÏÔ¿¨ÊDz»ÄܸķֱæÂʵÄ
û° ......
At first you have to open a terminal/bash and then enter:
file /path/file.bin
for example file /home/user/file.bin (file is the command)
Now you should see a sentence including the word “executable” and not “non-executable, not executable,… or something completely differ ......
vi /etc/rc.d/rc.local
Ôö¼Ó£º/usr/local/httpd/bin/apachectl start
2£º[×¢²áΪService]
cp /usr/local/httpd/bin/apachectl /etc/rc.d/init.d/httpd
vi httpd
ÕÒµ½£º#!/bin/sh
ÁíÆðÒ»ÐУ¬Ôö¼Ó£º
# chkconfig: 35 70 30
ÆäÖÐËùÔö¼ÓµÄµÚ¶þÐÐÖÐÈý¸öÊý×ÖµÚÒ»¸ö±íʾÔÚÔËÐ춱ð3ºÍ5ÏÂÆô¶¯apache£¬µÚ¶þ¡¢ÈýÊǹØÓÚÆô¶¯ºÍÍ ......