linuxÖпìËÙ²éÕÒÎļþ
Ö÷ÒªÓÐÏÂÃæÈýÖÖ·½Ê½£º
1.whereis ÎļþÃû
Ìصã:¿ìËÙ, Ö´ÐÐ׼ȷ²éÕÒ¡£
2.find / -name ÎļþÃû
²é³öºÜ¶à¶«Î÷£¬Óкܶà
“Permission Denied".
#find / -name php.ini
3.locate ÎļþÃû
×î¿ìµÄ·½·¨.Ö´ÐÐÄ£ºý²éÕÒ¡£
×¢Òâ:µÚÒ»´ÎʹÓøÃÃüÁî,¿ÉÄÜÐèÒª¸üÐÂÊý¾Ý¿â,°´ÕÕÌáʾµÄÃüÁîÖ´ÐÐһϾͺÃÁË.
ÕâÀï¾ÍҪ˵˵locateÃüÁîÁË£º
locateÃüÁî¿ÉÒÔÔÚËÑÑ°Êý¾Ý¿âʱ¿ìËÙÕÒµ½µµ°¸£¬Êý¾Ý¿âÓÉupdatedb³ÌÐòÀ´¸ü
У¬updatedbÊÇÓÉcron
daemonÖÜÆÚÐÔ½¨Á¢µÄ£¬locateÃüÁîÔÚËÑÑ°Êý¾Ý¿âʱ±ÈÓÉÕû¸öÓÉÓ²ÅÌ×ÊÁÏÀ´ËÑÑ°×ÊÁÏÀ´µÃ¿ì£¬µ«½Ï²î¾¢µÄÊÇlocateËùÕÒµ½µÄµµ°¸ÈôÊÇ×î½ü²Å½¨Á¢»ò
¸Õ¸üÃûµÄ£¬¿ÉÄÜ»áÕÒ²»µ½£¬ÔÚÄÚ¶¨ÖµÖУ¬updatedbÿÌì»áÅÜÒ»´Î£¬¿ÉÒÔÓÉÐÞ¸ÄcrontabÀ´¸üÐÂÉ趨ֵ¡£(etc/crontab)
locateÖ¸¶¨ÓÃÔÚËÑÑ°·ûºÏÌõ¼þµÄµµ°¸£¬Ëü»áÈ¥´¢´æµµ°¸ÓëĿ¼Ãû³ÆµÄÊý¾Ý¿âÄÚ£¬Ñ°ÕҺϺõ·¶±¾ÑùʽÌõ¼þµÄµµ°¸»òĿ¼¼£¬¿ÉÒÔʹÓÃÌØÊâ×ÖÔª£¨Èç
”*”»ò”?”µÈ£©À´Ö¸¶¨·¶±¾Ñùʽ£¬ÈçÖ¸¶¨·¶±¾Îªkcpa*ner,
locate»áÕÒ³öËùÓÐÆðʼ×Ö´®ÎªkcpaÇÒ½áβΪnerµÄµµ°¸»òĿ¼£¬ÈçÃû³ÆΪkcpartnerÈôĿ¼¼Ãû³ÆΪkcpa_nerÔò»áÁгö¸ÃĿ¼Ï°üÀ¨
×ÓĿ¼ÔÚÄÚµÄËùÓеµ°¸¡£
locateÖ¸ÁîºÍfindÕÒÑ°µµ°¸µÄ¹¦ÄÜÀàËÆ£¬µ«locateÊÇ͸¹ýupdate³ÌÐò½«Ó²ÅÌÖеÄËùÓеµ°¸ºÍĿ¼×ÊÁÏÏȽ¨Á¢Ò»¸öË÷ÒýÊý¾Ý¿â£¬ÔÚÖ´ÐÐ
loacteʱֱ½ÓÕÒ¸ÃË÷Òý£¬²éѯËٶȻá½Ï¿ì£¬Ë÷ÒýÊý¾Ý¿âÒ»°ãÊÇÓɲÙ×÷ϵͳ¹ÜÀí£¬µ«Ò²¿ÉÒÔÖ±½ÓÏ´ïupdateÇ¿ÆÈϵͳÁ¢¼´ÐÞ¸ÄË÷ÒýÊý¾Ý¿â¡£
²»¹ýµÚÒ»´ÎÔÚÖ´ÐÐupdateááÔÙʹÓÃlocateÑ°ÕÒµµ°¸³£»áʧ°Ü£¬´Ëʱ¾ÍÒªÖ´ÐÐslocate
ˉu¸ÃÃüÁҲ¿ÉÖ´ÐÐupdatedbÖ¸ÁÆäЧ¹ûÏàͬ£©À´¸üÐÂslocateÊý¾Ý¿â£¬¸ÃÃüÁî»áÔÚ/usr/sbinϲúÉúslocateÖ´Ðеµ£¬ÔÙÓÉ
locateµ½´ËÊý¾Ý¿âÑ°ÕÒËùÒªÕÒµÄ×ÊÁÏ¡£
locate£º¸ÃÃüÁîÔÚÔËÐÐʱÐèÒªºǫ́Ë÷ÒýµÄÊý¾Ý¿â×÷Ϊ֧³Å£¬ÔÚ Ubuntu ÖÐÕâ¸öÊý¾Ý¿âÎļþλÓÚ
/var/cache/locate/locatedb¡£Ò»°ãÀ´Ëµ£¬Õâ¸öÊý¾Ý¿âÎļþÿÌìÊÇͨ¹ý cron
×Ô¶¯¸üеġ£Èç¹û²»ÐÒûÓеõ½¸üУ¬ÄÇô¿ÉÒÔÖ´ÐÐ sudo updatedb À´ÊÖ¶¯¸üС£
Ïà¹ØÎĵµ£º
LinuxͼÐνçÃæºÍÎÄ×Ö½çÃæÆô¶¯ÏµÍ³·½Ê½µÄÇл»
ת×Ô:http://www.webisok.com/46/t-1346.html
ÒÔrootµÄÉí·ÝµÇ½£¬È»ºóÖ´ÐУº
#cd /etc
#vi inittab
¸ü¸Ä"id:5:initdefault:"Óï¾ä¼´¿É¡£
ÆäÖÐ5±íʾĬÈÏͼÐÎÆô¶¯½çÃæ
3±íʾĬÈÏÎÄ×ÖÆô¶¯½çÃæ
×¢£ºÔÚÆô¶¯Ö®ºó£¬»¹¿ÉÒÔͨ¹ýÏÂÃæµÄÓï¾ä½øÐÐÇл»£º
#init n
Èç¹ûÔÚͼÐνçÃæÏ ......
TOM-Skype×Ô½ñÄê³õÍƳö¹úÄÚ¿¨³¤»°Í¨·þÎñ£¬ÒÔÆä¸üΪÓÅÖʺ͵ͼ۵ĹúÄÚ³¤Í¾µç»°·þÎñÊÕµ½SkypeÓû§µÄ»¶Ó¡£µ«Òò³¤»°Í¨·þÎñ±ØÐëÓÃTOM-
SkypeÇÒ°æ±¾ÔÚ3.2ÒÔÉϲÅÄÜʹÓ㬶øTOM-Skype½öÓÐWindows°æ±¾£¬Ã»ÓÐMac¡¢Linux¡¢Windows
MobileµÈ°æ±¾£¬ËùÒԺܶ಻Ը°²×°TOM-SkypeµÄÓû§ÎÞ·¨Ê¹Ó󤻰ͨ·þÎñ¡£
ʵ¼Ê·ÇTOM-SkypeÒ²¿ÉÒÔʹÓùúÄ ......
Linux ¹ÒÔØÎļþϵͳ
×÷Õߣºlilleo 2005-01-24 11:19:55 À´×Ô£ºLinux¹«Éç
1¡¢¹ÒÔصã±ØÐëÊÇÒ»¸öĿ¼¡£
2¡¢Ò»¸ö·ÖÇø¹ÒÔØÔÚÒ»¸öÒÑ´æÔÚµÄĿ¼ÉÏ£¬Õâ¸öĿ¼¿ÉÒÔ²»Îª¿Õ£¬µ«¹ÒÔغóÕâ¸öĿ¼ÏÂÒÔÇ°µÄÄÚÈݽ«²»¿ÉÓá£
¶ÔÓÚÆäËû²Ù×÷ϵͳ½¨Á¢µÄÎļþϵͳµÄ¹ÒÔØÒ²ÊÇÕâÑù¡£µ«ÊÇÐèÒªÀí½âµÄÊÇ£º¹âÅÌ¡¢ÈíÅÌ¡¢Æä ......
ÏÂÔØSmartFoxServerPro£¬µØÖ·£ºhttp://www.smartfoxserver.com/products/pro.php
½âѹ£º
gzip -d filename.tar.gz
tar xf filename.tar
½øÈë½âѹºóµÄÎļþ¼Ð£¬Ö´Ðа²×°£º
./install
°²×°¹ý³ÌÖÐÒªÊäÈ밲װ·¾¶¡£
°²×°Íê³Éºó£¬½øÈ밲װĿ¼ÏµÄServerÎļþ¼Ð£¬Ö´ÐÐ./sfs start¿ªÆô·þÎñÆ÷¡£
ÃüÁ
./sfs start &n ......
ÏÈÀ´Á˽âÒ»ÏÂÎļþÊôÐÔ£¬
ÔÚshell»·¾³ÀïÊäÈ룺ls -l ¿ÉÒԲ鿴µ±Ç°Ä¿Â¼Îļþ¡£È磺
drwxr-xr-x 2 nsf users 1024 12-10 17:37 ÏÂÔØÎļþ±¸·Ý
·Ö±ð¶ÔÓ¦µÄÊÇ£º
ÎļþÊôÐÔ Á¬½ÓÊý ÎļþÓµÓÐÕß ËùÊôȺ×é Îļþ´óС ÎļþÐÞ¸Äʱ¼ä ÎļþÃû
ÕâÀïrÊǿɶÁ£¬w¿Éд,x ¿ÉÖ´ÐУ¬ÆäÖÐÎļþÊôÐÔ·ÖΪËĶΣ¬---- --- --- 10¸öλÖÃ
ÀýÈ磺
¡¡¡¡d ......