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

ÓÃcygwin ssh rsyncͬ²½windowsÓëlinuxÎļþ

Ò»£º°²×°cygwin
       ÏÂÔصØÖ·£ºwww.cygwin.com/setup.exe;°²×°·½·¨¿É²Î¿¼www.cygwin.cn,¿ÉÒÔÑ¡Ôñinternet°²×°£¬Èç¹û°²×°ÎļþÒѾ­ÏÂÔØ£¬¿ÉÒÔÔÚ±¾µØ°²×°;
1.       Ð޸Ļ·¾³±äÁ¿£ºÏµÍ³ºÍÓû§pathÖÐÔö¼Ó£ºÅÌ·û\cygwin\bin£»ÅÌ·ûÊǾßÌåÒª°²×°µÄ´ÅÅÌ£»
2.       cygwinÁ½¸öÌ×¼þ±ØÐë°²×°£ºopenssh,cygrunsrv;
3.       °²×°Ê±¼ÇסҪѡÔñ Rsync from the +Net package list, ºÍa suitable Editor (ÒòΪÕâ¸öϵͳ²»»áĬÈÏ°²×°). ÒªÓõ½Ò»Ð©±à¼­Æ÷  Pico (ÔÚ +Mail֮ϵÄpart of Pine living ) ºÍ Nano (living under +Editors).(ÎÒÖ»°²×°ÁËnetÈ«²¿Ì×¼þ)
4.       ÔÚcygwinÖзÃÎÊwindowsÎļþϵͳ£ºcd /cygdrive/   lsÃüÁî¾Í¿ÉÒÔ´ò³öwindowsϵÄÅÌ·ûÁË;
¶þ£º½áºÏsshʹÓÃrsync
5.       °ÑwindowsÎļþ¼Ðͬ²½µ½linux,ÓÃÃÜÔ¿:
rsync -vzrtopg -e "ssh -i /home/Administrator/.ssh/id_dsa.42"  --progress  --delete /cygdrive/d/myself/xbb/  root@192.168.0.23:/root/test/
-e²ÎÊýÖ¸¶¨ÃÜԿλÖÃ"ssh -i /home/Administrator/.ssh/id_dsa.42";
/cygdrive/d/myself/xbb/ÊÇwindowsĿ¼
root@IP:/root/test/ÊÇlinuxĿ¼
6.       Èç¹ûÃÜÔ¿³öÏÖȨÏÞÎÊÌ⣬¶øÁ¬½Ó²»µ½Ô¶³Ì·þÎñÆ÷£¬¾Í½«ÃÜԿȨÏÞÉèÖÃΪ600
7.       ÕâÊÇÓÃssh½áºÏrsyncµÄÒ»¸öʵÀý£¬µ«Ã»Óгɹ¦£¬ÒòΪÎļþÊýÁ¿Ì«´ó£¡£ºrsync -vzrtopg -e "ssh -i /home/id_dsa.42"  --progress  --delete /cygdrive/e/Tomcat\ 5.5/webapps/resource/stat/ root@IP:/usr/local/tomcat/webapps/resource/
8.       windows´øÓпոñµÄĿ¼ҪÓÔ”À¨ÆðÀ´cygwin²ÅÄÜʶ±ð
Èý£ºrsyncÒ²¿ÉÒÔ²»ÓÃssh¶ÀÁ¢Ê¹ÓÃ;ÐèÒªÅäÖÃÄ£¿é£¨²»ÅäÖÃÄ£¿éÊÇ·ñ¿ÉÐÐûÓвâÊÔ£©
       ·þÎñ¶Ë:
1.rsyncd.confÅäÖÃÏê½â
¸ÃÎļþÒª·ÅÔÚ/etcĿ¼ÏÂ
rsyncd.confµÄÅäÖÃʵÀý:
      
       uid = nobody
gid = nobody
use chroot = no
list = false
ignore errors = yes
ignore nonreadabl


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

ʵս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ÉÏ»ñÈ¡Ö¸¶¨½ø³ÌµÄcpuʹÓÃÇé¿ö

ÕâÀï¼Ù¶¨Òª»ñÈ¡µ±Ç°µÇ¼Óû§Æô¶¯µÄtomcat½ø³ÌµÄcpuʹÓÃÇé¿ö
#!/bin/sh
_USER=`whoami`
_PS=`ps -ef | grep $_USER | grep catalina | grep tomcat`
_PID=`echo $_PS | awk '{print $2}'`
_CPUINFO=`top -b -n 1 -p $_PID | sed '$d' | sed -n '$p' | awk '{print $9}'`
echo $_CPUINFO
  ......

LinuxϵͳSudoÃüÁîµÄʹÓÃ˵Ã÷

“Sudo” ÊÇUnix/Linuxƽ̨ÉϵÄÒ»¸ö·Ç³£ÓÐÓõŤ¾ß£¬ËüÔÊÐíϵͳ¹ÜÀíÔ±·ÖÅä¸øÆÕͨÓû§Ò»Ð©ºÏÀíµÄ“ȨÀû”£¬ÈÃËûÃÇÖ´ÐÐһЩֻÓг¬¼¶Óû§»òÆä
ËûÌØÐíÓû§²ÅÄÜÍê³ÉµÄÈÎÎñ£¬±ÈÈ磺ÔËÐÐһЩÏñmount£¬halt£¬suÖ®ÀàµÄÃüÁ»òÕ߱༭һЩϵͳÅäÖÃÎļþ£¬Ïñ/etc/mtab£¬ /etc
/samba/smb.confµÈ¡£ÕâÑùÒ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ