LinuxµÄȨÏÞ
Ò»¸öÓû§¡¢Ò»¸ö×é
ÎÒÃÇÀ´¿´Ò»¿´ LinuxȨÏÞºÍËùÓÐȨģÐÍ¡£ÎÒÃÇÒѾ¿´µ½Ã¿¸öÎļþÊôÓÚÒ»¸öÓû§ºÍÒ»¸ö×é¡£ÕâÕýÊÇLinux ÖÐȨÏÞÄ£Ð͵ĺËÐÄ¡£Äú¿ÉÒÔÔÚ ls -lÇåµ¥Öв鿴Óû§ºÍ×飺
$ ls -l /bin/bash
-rwxr-xr-x 1 root wheel 430540 Dec 23 18:27 /bin/bash
ÔÚÕâ¸öÌØÊâµÄʾÀýÖУ¬/bin/bash ¿ÉÖ´ÐÐÎļþÊôÓÚroot Óû§£¬²¢ÇÒÔÚwheel ×éÖС£LinuxȨÏÞÄ£ÐÍͨ¹ýÔÊÐí¸øÿ¸öÎļþϵͳ¶ÔÏóÉèÖÃÈýÖÖ¶ÀÁ¢µÄȨÏÞ¼¶±ðÀ´¹¤×÷ —ËüÃÇΪÎļþµÄËùÓÐÕß¡¢ÎļþµÄ×éÒÔ¼°ËùÓÐÆäËûÓû§¡£
Àí½â¡°ls -l¡±
ÎÒÃÇÀ´¿´Ò»¿´ÎÒÃÇµÄ ls -lÊä³ö£¬¼ì²éÒ»ÏÂÕâ¸öÇåµ¥µÄµÚÒ»À¸£º
$ ls -l /bin/bash
-rwxr-xr-x 1 root wheel 430540 Dec 23 18:27 /bin/bash
µÚÒ»¸ö×ֶΠ-rwxr-xr-x°üº¬¸ÃÌØÊâÎļþµÄȨÏ޵ķûºÅ±íʾ¡£¸Ã×Ö¶ÎÖеÄÊ××Ö·û£¨-£©Ö¸¶¨¸ÃÎļþµÄÀàÐÍ£¬±¾ÀýÖÐËüÊÇÒ»¸ö³£¹æÎļþ¡£ÆäËü¿ÉÄܵÄÊ××Ö·û»¹ÓУº
¡°d¡±Ä¿Â¼
¡°l¡±·ûºÅÁ´½Ó
¡°c¡±×Ö·ûרÃÅÉ豸Îļþ
¡°b¡±¿éרÃÅÉ豸Îļþ
¡°p¡±ÏȽøÏȳö
¡°s¡±Ì×½Ó×Ö
Èý¸öÈýÔª×é
$ ls -l /bin/bash
-rwxr-xr-x 1 root wheel 430540 Dec 23 18:27 /bin/bash
¸Ã×ֶεÄÆäÓಿ·ÖÓÉÈý¸öÈýÔª×é×Ö·û×é³É¡£µÚÒ»¸öÈýÔª×Ö·û×é´ú±íÎļþËùÓÐÕßµÄȨÏÞ£¬µÚ¶þ¸ö´ú±íÎļþµÄ×éµÄȨÏÞ£¬µÚÈý¸ö´ú±íËùÓÐÆäËûÓû§µÄȨÏÞ£º
"rwx"
"r-x"
"r-x"
ÉÏÃ棬r±íʾÔÊÐí¶Á£¨²é¿´ÎļþÖеÄÊý¾Ý£©£¬w±íʾÔÊÐíд£¨ÐÞ¸ÄÎļþÒÔ¼°É¾³ý£©£¬x±íʾÔÊÐí¡°Ö´ÐС±£¨ÔËÐгÌÐò£©¡£½«ËùÓÐÕâЩÐÅÏ¢·ÅÔÚÒ»Æð£¬ÎÒÃÇ¿ÉÒÔ·¢ÏÖÿ¸öÈ˶¼Äܹ»¶Á¸ÃÎļþµÄÄÚÈݺÍÖ´ÐиÃÎļþ£¬µ«ÊÇÖ»ÔÊÐíÎļþËùÓÐÕߣ¨rootÓû§£©¿ÉÒÔÒÔÈκη½Ê½Ð޸ĸÃÎļþ¡£Òò´Ë£¬ËäȻһ°ãÓû§¿ÉÒÔ¸´ÖƸÃÎļþ£¬µ«ÊÇÖ»ÔÊÐíroot Óû§¸üлòɾ³ýËü¡£
ÎÒÊÇË£¿
ÔÚÎÒÃÇ¿´ÔõÑù¸Ä±äÎļþµÄÓû§ËùÓÐȨºÍ×éËùÓÐȨ֮ǰ£¬ÎÒÃÇÊ×ÏÈÀ´¿´Ò»¿´ÔõÑùµÃÖªÄúµ±Ç°µÄÓû§±êʶºÍ×é³ÉÔ±×ʸñ¡£³ý·Ç×î½üÄúʹÓùý su ÃüÁ·ñÔòÄúµ±Ç°µÄÓû§±êʶÊÇÄúÓÃÀ´µÇ¼ϵͳµÄÓû§±êʶ¡£µ«ÊÇ£¬Èç¹ûÄú¾³£Ê¹Óà su£¬Äú¿ÉÄܲ»¼ÇµÃÄúµ±Ç°ÓÐЧµÄÓû§±êʶ¡£Òª²é¿´Óû§±êʶ£¬ÊäÈë whoami£º
# whoami
root
# su drobbins
$ whoami
drobbins
ÎÒÔÚÄÄÒ»×飿
Òª¿´¿´ÄúÊôÓÚÄÄÒ»×飬ʹÓà group ÃüÁ
$ groups
drobbins wheel audio
ÔÚÉÏÃæµÄʾÀýÖУ¬ÎÒÊÇdrobbins¡¢wheel ºÍ audio×éµÄ³ÉÔ±¡£Èç¹ûÄúÏë¿´¿´ÆäËûÓû§ÔÚʲô×飬ָ¶¨ËûÃǵÄÓû§Ãû×÷Ϊ²ÎÊý£º
$ groups root daemon
root : root bin daemon sys adm disk wheel floppy
Ïà¹ØÎĵµ£º
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
ÔÚwindowXPÏ°²×°ÁËRedhat linux AS4£¬ÔÚvmwareÏÂÑ¡ÔñÁËhost-only·½Ê½ÓëÖ÷»úͨÐÅ¡£
ʹÓÃhost-only·½Ê½ÓëÖ÷»úͨÐÅ£¬vmwareʹÓõÄÊÇVMware Network Adapter VMnet1ÐéÄâÍø¿¨£¬²é¿´¸ÃÍø¿¨µÄIPÊÇ 192.168.75.1¡£
ÔÚÐéÄâ»úÏÂÃæµÄlinuxÏÂÓöµ½ÁËһϼ¸¸öÎÊÌ⣺
1¡¢Äܹ»ÕÒµ½ eth0Íø¿¨£¬Ò²¾ÍÁ¬²»ÉÏÍøÂç¡£Ö¢×´ÊÇifconfigÒÔºóÄÜÏÖÊ ......
ÔÎÄ£ºhttp://www.cnitblog.com/201/archive/2009/08/20/60887.html
ÊìϤʹÓÃifconfig »á·Ç³£·½±ã¡£¡¡
¡¡ifconfig eth0 ÐÂip
¡¡¡¡È»ºó±à¼/etc/sysconfig/network-scripts/ifcfg-eth0£¬ÐÞ¸Äip
¡¡¡¡Ò»¡¢ÐÞ¸ÄIPµØÖ·
¡¡¡¡[aeolus@db1 network-scripts]$ vi ifcfg-eth0
¡¡¡¡DEVICE=eth0
¡¡¡¡ONBOOT=yes
¡¡¡¡BOOTPROTO=s ......
½ñÌìÔÚÔËÐÐsphinxµÄʱºò£¬Ìáʾ˵
./searchd: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
ÎÒ±àÒë°²×°µÄʱºòÃ÷Ã÷ÓÐÖ¸¶¨mysqlµÄlib¿â°¡£¬ÉÏÍø²éµ½ÊÇÒòΪmysqlµÄlib²»ÔÚϵͳµÄlib·¾¶ÖУ¬½â¾ö°ì·¨ÈçÏ£º
ÔÚ/etc/ld.so.confÏÂÃæ¼ÓÒ»ÐÐ/usr/loc ......
1.´Ó80386¿ªÊ¼£¬Intel´¦ÀíÆ÷µÄÏßÐÔ32±»·ÖΪ3¸öÓò£¬×î¸ßʮλΪ´ËÏßÐÔµØÖ·ÔÚҳĿ¼µÄË÷Òý£»ÖмäʮλΪ´ËÏßÐÔµØÖ·ÔÚÒ³±íÖеÄË÷Òý£»×îµÍ12ΪÎïÀíµØÖ·µÄµÍ12루Ҳ¿ÉÒÔ˵ÊÇÒ³ÄÚÆ«ÒÆÁ¿£©¡£Ã¿¸ö½ø³ÌÒ»¶¨Óи÷×Ô¶ÀÁ¢µÄÒ³±í£¨×¢Ò⣺ÕâÀï˵µÄÊǽø³Ì£¬¶ø²»ÊÇÏ̡߳£ÔÚlinuxÀïÏß³ÌÆäʵ¾ÍÊÇÇáÁ¿¼¶µÄ½ø³Ì£¬ËûÃÇÊÇÁ¬Ò³Ä¿Â¼¶¼ÏàͬµÄ½ø³Ì£¬Ö»ÊÇ ......