ÓÃ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
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ 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 ......
ÕâÀï¼Ù¶¨Òª»ñÈ¡µ±Ç°µÇ¼Óû§Æô¶¯µÄ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
......
“Sudo” ÊÇUnix/Linuxƽ̨ÉϵÄÒ»¸ö·Ç³£ÓÐÓõŤ¾ß£¬ËüÔÊÐíϵͳ¹ÜÀíÔ±·ÖÅä¸øÆÕͨÓû§Ò»Ð©ºÏÀíµÄ“ȨÀû”£¬ÈÃËûÃÇÖ´ÐÐһЩֻÓг¬¼¶Óû§»òÆä
ËûÌØÐíÓû§²ÅÄÜÍê³ÉµÄÈÎÎñ£¬±ÈÈ磺ÔËÐÐһЩÏñmount£¬halt£¬suÖ®ÀàµÄÃüÁ»òÕß±à¼Ò»Ð©ÏµÍ³ÅäÖÃÎļþ£¬Ïñ/etc/mtab£¬ /etc
/samba/smb.confµÈ¡£ÕâÑùÒ ......