{"id":26367,"date":"2012-02-07T14:35:49","date_gmt":"2012-02-07T06:35:49","guid":{"rendered":"http:\/\/www.yankay.com\/?p=26367"},"modified":"2012-02-07T14:35:49","modified_gmt":"2012-02-07T06:35:49","slug":"linux%e5%a4%a7%e6%96%87%e4%bb%b6%e4%bc%a0%e8%be%93","status":"publish","type":"post","link":"http:\/\/yankay.com\/linux%e5%a4%a7%e6%96%87%e4%bb%b6%e4%bc%a0%e8%be%93\/","title":{"rendered":"Linux\u5927\u6587\u4ef6\u4f20\u8f93"},"content":{"rendered":"
\u6211\u4eec\u7ecf\u5e38\u9700\u8981\u5728\u673a\u5668\u4e4b\u95f4\u4f20\u8f93\u6587\u4ef6\u3002\u6bd4\u5982\u5907\u4efd\uff0c\u590d\u5236\u6570\u636e\u7b49\u7b49\u3002\u8fd9\u4e2a\u662f\u5f88\u5e38\u89c1\uff0c\u4e5f\u662f\u5f88\u7b80\u5355\u7684\u3002\u7528scp\u6216\u8005rsync\u5c31\u80fd\u5f88\u597d\u7684\u5b8c\u6210\u4efb\u52a1\u3002\u4f46\u662f\u5982\u679c\u6587\u4ef6\u5f88\u5927\uff0c\u9700\u8981\u5360\u7528\u4e00\u4e9b\u4f20\u8f93\u65f6\u95f4\u7684\u65f6\u5019\uff0c\u600e\u6837\u53c8\u5feb\u53c8\u597d\u5730\u5b8c\u6210\u4efb\u52a1\u5c31\u5f88\u91cd\u8981\u4e86\u3002\u5728\u6211\u7684\u6d4b\u8bd5\u7528\u4f8b\u4e2d\uff0c\u4e00\u4e2a\u6700\u4f73\u7684\u65b9\u6848\u6bd4\u6700\u5dee\u7684\u65b9\u6848\uff0c\u6027\u80fd\u63d0\u9ad8\u4e8610\u500d\u3002<\/div>\n

\u590d\u5236\u6587\u4ef6<\/strong><\/h3>\n
\u5982\u679c\u6211\u4eec\u662f\u590d\u5236\u4e00\u4e2a\u672a\u538b\u7f29<\/strong>\u7684\u6587\u4ef6\u3002\u8fd9\u91cc\u8d70\u5982\u4e0b\u6b65\u9aa4\uff1a<\/div>\n
\n
    \n
  1. \u538b\u7f29\u6570\u636e<\/span><\/li>\n
  2. \u53d1\u9001\u5230\u53e6\u5916\u4e00\u53f0\u673a\u5668\u4e0a<\/span><\/li>\n
  3. \u6570\u636e\u89e3\u538b\u7f29<\/span><\/li>\n
  4. \u6821\u9a8c\u6b63\u786e\u6027<\/span><\/li>\n<\/ol>\n
    \u8fd9\u6837\u505a\u4f1a\u5f88\u6709\u6548\u7387\uff0c\u6570\u636e\u538b\u7f29\u540e\u53ef\u4ee5\u66f4\u6709\u6548\u7684\u5229\u7528\u5e26\u5bbd<\/div>\n<\/div>\n

    \u4f7f\u7528ZIP+SCP<\/strong><\/h3>\n
    \u6211\u4eec\u53ef\u4ee5\u901a\u8fc7ZIP+SCP\u7684\u7ec4\u5408\u5b9e\u73b0\u8fd9\u4e2a\u529f\u80fd\u3002<\/div>\n
    \n
    gzip -c \/home\/yankay\/data | ssh yankay01 \"gunzip -c - > \/home\/yankay\/data\"<\/pre>\n

    \u8fd9\u6761\u547d\u4ee4\u662f\u5c06\/home\/yankay\/data\u7ecf\u8fc7GZIP\u538b\u7f29\uff0c\u901a\u8fc7ssh\u4f20\u8f93\u5230yankay01\u7684\u673a\u5668\u4e0a\u3002<\/p>\n<\/div>\n

    data\u6587\u4ef6\u7684\u5927\u5c0f\u662f1.1GB,\u7ecf\u8fc7Zip\u538b\u7f29\u540e\u662f183MB\uff0c\u6267\u884c\u4e0a\u9762\u7684\u547d\u4ee4\u9700\u898145.6s\u3002\u5e73\u5747\u541e\u5410\u91cf\u4e3a24.7MB\/s<\/div>\n
    \u6211\u4eec\u4f1a\u53d1\u73b0Scp\u4e5f\u6709\u538b\u7f29\u529f\u80fd\uff0c\u6240\u4ee5\u4e0a\u9762\u7684\u8bed\u53e5\u53ef\u4ee5\u5199\u6210<\/div>\n
    \n
    scp -C -c blowfish \/home\/yankay\/data yankay01:\/home\/yankay\/data<\/pre>\n

    \u8fd9\u6837\u8fd0\u884c\u6548\u679c\u662f\u76f8\u540c\u7684\uff0c\u4e0d\u901a\u4e4b\u5904\u5728\u4e8e\u6211\u4f7f\u7528\u4e86blowfish\u7b97\u6cd5\u4f5c\u4e3aScp\u7684\u5bc6\u5319\u7b97\u6cd5\uff0c\u4f7f\u7528\u8fd9\u4e2a\u7b97\u6cd5\u53ef\u4ee5\u6bd4\u9ed8\u8ba4\u7684\u60c5\u51b5\u5feb\u5f88\u591a\u3002\u5355\u5355\u5bf9\u4e0escp,\u4f7f\u7528\u4e86blowfish \u541e\u5410\u91cf\u662f62MB\/s,\u4e0d\u4f7f\u7528\u53ea\u670946MB\/s\u3002<\/p>\n<\/div>\n

    \u53ef\u662f\u6211\u6267\u884c\u4e0a\u9762\u4e00\u6761\u547d\u4ee4\u7684\u65f6\u5019\uff0c\u53d1\u73b0\u8fd8\u662f\u9700\u898145s\u3002\u5e73\u5747\u541e\u5410\u91cf\u8fd8\u4e3a24MB\/s\u3002\u6ca1\u6709\u4e1d\u6beb\u7684\u63d0\u5347\uff0c\u53ef\u89c1\u74f6\u9888\u4e0d\u5728\u7f51\u7edc\u4e0a\u3002<\/div>\n
    \u90a3\u74f6\u9888\u5728\u54ea\u91cc\u5462\uff1f<\/div>\n

    \u6027\u80fd\u5206\u6790<\/strong><\/h3>\n

    \u6211\u4eec\u5148\u5b9a\u4e49\u51e0\u4e2a\u53d8\u91cf<\/p>\n