Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linuxϵͳ¹ÜÀíʵ¼ù(12)£ºSyslogϵͳÈÕÖ¾ÅäÖÃ

    Linux±£´æÁËϵͳÖÐËù·¢ÉúʼþµÄÏêϸ¼Ç¼£¬ÕâЩ¼Ç¼³Æ×÷ÈÕÖ¾Îļþ»òÏûÏ¢Îļþ¡£¿ÉÒÔ²éÔÄÈÕÖ¾ÎļþÀ´È·¶¨ÏµÍ³µ±Ç°×´Ì¬£¬¹Û²ìÈëÇÖÕß×Ù¼££¬Ñ°ÕÒijÌض¨³ÌÐò(»òʼþ)Ïà¹ØµÄÊý¾Ý¡£syslogdÓëklogd(¼à¿ØlinuxÄÚºËÌá½»µÄÏûÏ¢)ÊØ»¤½ø³Ì¸ºÔð¼Ç¼£¬·¢ËÍϵͳ»ò¹¤¾ß²úÉúµÄÐÅÏ¢£¬¶þÕßµÄÅäÖÃÎļþ¶¼ÊÇ/etc/syslog.conf¡£µ±ÏµÍ³Äں˻ò¹¤¾ß²úÉúÐÅϢʱ£¬Í¨¹ýµ÷ÓÃÏà¹Øº¯Êý½«ÐÅÏ¢·¢Ë͵½syslogd»òklogdÊØ»¤½ø³Ì¡£syslogdÓëklogdÊØ»¤½ø³Ì»á¸ù¾Ý/etc/syslog.confÖеÄÅäÖÃÐÅÏ¢£¬¶ÔÏûÏ¢µÄÈ¥Ïò×÷³ö´¦Àí¡£syslogЭÒéµÄÏêϸÃèÊöÔÚRFC3164ÖС£
    logrotate¹¤¾ßÓÃÀ´¶¨ÆÚÖØÃüÃû¡¢Ñ¹Ëõ¡¢ÓʵÝϵͳÈÕÖ¾Îļþ£¬Ëü¿ÉÒÔ±£Ö¤ÈÕÖ¾Îļþ²»»áÕ¼ÓÃÌ«´óµÄ´ÅÅ̿ռ䡣
    1¡¢ÅäÖÃÎļþ/etc/syslog.conf£º
syslog.confÊÇsyslogd½ø³ÌµÄÅäÖÃÎļþ£¬½«ÔÚ³ÌÐòÆô¶¯Ê±¶ÁÈ¡£¬Ä¬ÈÏλÖÃÊÇ/etc/syslog.conf¡£Õâ¸öÅäÖÃÎļþÖеĿհ×ÐкÍÒÔ"#"¿ªÍ·µÄÐн«±»ºöÂÔ¡£"facility.level"²¿·ÖÒ²±»³ÆΪѡÔñ·û(seletor)¡£ seletorºÍactionÖ®¼äʹÓÃÒ»¸ö»ò¶à¸ö¿Õ°×·Ö¸ô¡£ËüÖ¸¶¨ÁËһϵÁÐÈÕÖ¾¼Ç¼¹æÔò¡£¹æÔòµÄ¸ñʽÈçÏÂ:
    facility.level    action
    Ñ¡Ôñ·û(seletor)ÓÉfacilityºÍlevelÁ½²¿·Ö×é³É£¬Ö®¼äÓÃÒ»¸ö¾äµã(.)Á¬½Ó¡£
    £¨1£©facility£ºÖ¸¶¨Á˲úÉúÈÕÖ¾µÄÉ豸£¬¿ÉÒÔÊÇÏÂÃæµÄ¹Ø¼ü×ÖÖ®Ò»:
¹Ø¼ü×Ö                   Öµ            ½âÊÍ
kern                0          ÄÚºËÐÅÏ¢£¬Ê×ÏÈͨ¹ýklogd´«µÝ
user                1          ÓÉÓû§³ÌÐòÉú³ÉµÄÐÅÏ¢
mail                2          Óëµç×ÓÓʼþÓйصÄÐÅÏ¢
daemon              3    &nb


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì(Áù) L2CAP±à³ÌʵÀý

ÀýÒ»£º·¢ËÍ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 ......

Linux VI±à¼­ÃüÁî

Linux VI±à¼­ÃüÁîʹÓÃÆÊÎö
2010Äê01ÔÂ15ÈÕ ÐÇÆÚÎå 00:35
1¡¢viµÄ»ù±¾¸ÅÄî
¡¡¡¡»ù±¾ÉÏvi¿ÉÒÔ·ÖΪÈýÖÖ״̬£¬·Ö±ðÊÇÃüÁîģʽ£¨command mode£©¡¢²åÈëģʽ£¨Insert mode£©ºÍµ×ÐÐģʽ£¨last line mode£©£¬¸÷ģʽµÄ¹¦ÄÜÇø·ÖÈçÏ£º
1) ÃüÁîÐÐģʽcommand mode£©
¡¡¡¡¿ØÖÆÆÁÄ»¹â±êµÄÒƶ¯£¬×Ö·û¡¢×Ö»òÐеÄɾ³ý£¬Òƶ¯¸´ÖÆijÇø¶Î¼° ......

LinuxÓû§Óë×é¹ÜÀí

1. Ôö¼ÓÓû§Õʺŗ—useradd / adduser
ÔÚÃüÁîÐÐÏÂʹÓà useradd ÃüÁ 
useradd Óû§Ãû 
¸ÃÃüÁî×öÁËÏÂÃ漸¼þÊ£º
1£©ÔÚ /etc/passwd ÎļþÖÐÔöÌíÁËÒ»ÐмǼ£»
2£©ÔÚ /home Ŀ¼Ï´´½¨ÐÂÓû§µÄÖ÷Ŀ¼£¬²¢½« /etc/skel Ŀ¼(skeleton:.bashrc, .bash_history, etc.)ÖеÄÎļþ¿½±´µ½¸ÃĿ¼ÖÐÈ¥£»µ«ÊÇÊ ......

LinuxÏÂgrepʹÓÃÏêϸ½éÉÜ


1. grep¼ò½é
grep £¨global search regular expression(RE) and print out the line,È«ÃæËÑË÷ÕýÔò±í´ïʽ²¢°ÑÐдòÓ¡³öÀ´£©ÊÇÒ»ÖÖÇ¿´óµÄÎı¾ËÑË÷¹¤¾ß£¬ËüÄÜʹÓÃÕýÔò±í´ïʽËÑË÷Îı¾£¬²¢°ÑÆ¥ÅäµÄÐдòÓ¡³öÀ´¡£UnixµÄgrep¼Ò×å°ü À¨grep¡¢egrepºÍfgrep¡£egrepºÍfgrepµÄÃüÁîÖ»¸úgrepÓкÜС²»Í¬¡£egrepÊÇgrepµÄÀ©Õ¹£¬Ö§³Ö¸ü¶ ......

Linuxϵͳ¹ÜÀíʵ¼ù(11)£ºÍøÂçÕï¶ÏµÄ»ù±¾¼¼ÇÉ

    1¡¢ÍøÂçÂýµÄÔ­Òò£ºÍøÂçÎÊÌâ¾­³£ÒÔÁ½ÖÖÐÎʽ³öÏÖ¡£µÚÒ»ÖÖÊÇÀ´×ÔÔ¶³Ì·þÎñÆ÷µÄÂýËÙÏìÓ¦£¬µÚ¶þÖÖÊÇÍêȫʧȥÁ¬½Ó¡£ÍøÂçÂýµÄ¸ùÔ´Ö÷ÒªÓÐÍø¿¨µÄË«¹¤ºÍËٶȵIJ»¼æÈÝ¡¢ÍøÂçÓµÈû¡¢²»Á¼µÄ·ÓÉ¡¢ÏßÀÂÎÊÌâ¡¢µç×è»òµç²¨¸ÉÈÅ¡¢Ô¶¶Ë·þÎñÆ÷¸ºÔعýÖØ¡¢DNSÅäÖò»µ±¡£Á¬½Ó¶ªÊ§µÄ¸ùÔ´Ö÷ÒªÓеçÔ´ÎÊÌâ¡¢Ô¶¶ËµÄ·þÎñÆ÷»ò³ÌÐò±»¹Øµô¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ