linuxÏ scpÃüÁî²»ÐèÒªÊäÈëÓû§ÃÜÂë
ÔÚÁ½Ì¨»úÆ÷µÄÁ½¸öÓû§Ö®¼ä½¨Á¢°²È«µÄÐÅÈιØϵºó£¬¿ÉʵÏÖÖ´ÐÐscpÃüÁîʱ²»ÐèÒªÊäÈëÓû§ÃÜÂë¡£
1. ÔÚ»úÆ÷ClientÉÏrootÓû§Ö´ÐÐssh-keygenÃüÁÉú³É½¨Á¢°²È«ÐÅÈιØϵµÄÖ¤Êé¡£
[root@Client root]# ssh-keygen -b 1024 -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): <– Ö±½ÓÊäÈë»Ø³µ
Enter passphrase (empty for no passphrase): <– Ö±½ÓÊäÈë»Ø³µ
Enter same passphrase again: <– Ö±½ÓÊäÈë»Ø³µ
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is: ……
×¢Ò⣺ÔÚ³ÌÐòÌáʾÊäÈëpassphraseʱֱ½ÓÊäÈë»Ø³µ£¬±íʾÎÞÖ¤ÊéÃÜÂë¡£
ÉÏÊöÃüÁÉú³É˽Կ֤Êéid_rsaºÍ¹«Ô¿Ö¤Êéid_rsa.pub£¬´æ·ÅÔÚÓû§Ä¿Â¼µÄ.ssh×ÓĿ¼ÖС£
2. ½«¹«Ô¿Ö¤Êéid_rsa.pub¸´ÖƵ½»úÆ÷ServerµÄrootĿ¼µÄ.ssh×ÓĿ¼ÖУ¬Í¬Ê±½«ÎļþÃû¸ü»»Îªauthorized_keys¡£
[root@Client root]# scp -p .ssh/id_rsa.pub root@172.16.100.188:/root/.ssh/authorized_keys
root@192.168.3.206’s password: <– ÊäÈë»úÆ÷ServerµÄrootÓû§ÃÜÂë
ÔÚÖ´ÐÐÉÏÊöÃüÁîʱ£¬Á½Ì¨»úÆ÷µÄrootÓû§Ö®¼ä»¹Î´½¨Á¢°²È«ÐÅÈιØϵ£¬ËùÒÔ»¹ÐèÒªÊäÈë»úÆ÷ServerµÄrootÓû§ÃÜÂë¡£
¾¹ýÒÔÉÏ2²½£¬¾ÍÔÚ»úÆ÷ClientµÄrootºÍ»úÆ÷ServerµÄrootÖ®¼ä½¨Á¢°²È«ÐÅÈιØϵ¡£ÏÂÃæÎÒÃÇ¿´¿´Ð§¹û£º
[root@Client root]# scp -p text root@192.168.3.206:/root
³É¹¦ÁË£¡ÕæµÄ²»ÔÙÐèÒªÊäÈëÃÜÂëÁË¡£
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
¹ØÓÚread(...)·µ»ØÖµµÄÕýÈ·Åжϣºp30
File I/O µÄ read(...)º¯ÊýÓ÷¨£º
ÓÐÎÊÌâµÄ´úÂ룬ֻÅжϷµ»ØֵΪ-1µÄÇé¿ö¡£
unsigned long word;
ssize_t nr;
/* read a couple bytes into 'word' from 'fd' */
nr = read (fd, &word, sizeof (unsigned long));
if (nr == -1)
/* error */
Indeed, a call to read( ) ca ......
http://linux.vbird.org/linux_server/0140networkcommand.php
ʹÓ÷ÓÉ·½Ê½£¬Ê¹ÓÃrouteÃüÁî¡£
-- RouteÃüÁîµÄÕýÈ·Ó÷¨
ʹÓà Route ÃüÁîÐй¤¾ß²é¿´²¢±à¼¼ÆËã»úµÄ IP ·ÓÉ±í¡£Route ÃüÁîºÍÓï·¨ÈçÏÂËùʾ£º
route [-f] [-p] [Command [Destination] [mask Netmask] [Gateway] [metric Metric]] [if Interface]]
-f Ç ......
Á½Ì¨²âÊÔÐé»ú£¬ÏµÍ³ÎªREHL 5.3 x64£¬Õý³£°²×°×îа汾µÄJDK£¬ÕýÈ·ÉèÖÃSSHÎÞÃÜÂëµÇ¼¡£
·þÎñÆ÷Ò»£º192.168.56.101 dev1
·þÎñÆ÷¶þ£º192.168.56.102 dev2
´Óhttp://apache.freelamp.com/hadoop/core/hadoop-0.20.1/ÏÂÔØhadoop-0.20.1.tar.gz£¬°Ñhadoop-0.20.1.tar.gz¿½±´µ½dev1µÄ“/usr/software/hadoop”Ŀ¼Ï¡ ......
תÔØ×Ô£º http://soft.chinabyte.com/129/11092629.shtml
ÎļþĿ¼Àà
¡¡¡¡1.½¨Á¢Ä¿Â¼£ºmkdir Ŀ¼Ãû
¡¡¡¡2.ɾ³ý¿ÕĿ¼£ºrmdir Ŀ¼Ãû
¡¡¡¡3.ÎÞÌõ¼þɾ³ý×ÓĿ¼£º rm -rf Ŀ¼Ãû
¡¡¡¡4.¸Ä±äµ±Ç°Ä¿Â¼£ºcd Ŀ¼Ãû (½øÈëÓû§homeĿ¼£ºcd ~;½øÈëÉÏÒ»¼¶Ä¿Â¼£ºcd -)
¡¡¡¡5.²é¿´×Ô¼ºËùÔÚĿ¼£ºpwd
¡¡¡¡6.²é¿´µ±Ç°Ä¿Â¼´óС£ºd ......