ʵÏÖLinuxË«»úÎļþͬ²½rsync
rsync ÓÐʲôͻ³öÓŵãÄØ£¿Ê×ÏÈ£¬Ëü±»Éè¼Æ³ÉÖ»´«ËÍÎļþµÄ²»Í¬²¿·Ö£¬¶ø·Ç´«ËÍÕû¸öÎļþ£¬ÒÔ¼ÓËÙÎļþ´«Êä¡£±ÈÈ磬ÎÒÕýÔÚд×÷±¾ÎÄ£¬ÄÇÎҾͿÉÒÔÏÖÔÚʹÓÃ
rsync ¸´ÖÆÒ»´Î£¬¶øÖ®ºóÔÙ½øÐÐÒ»´Î´«Êä¡£µÚ¶þ´Î£¨µÚÈý´Î¡¢µÚËÄ´Î……£©¸¸×ÓÎļþµÄʱºò£¬rsync
Ö»´«ËÍÎļþµÄ²»Í¬²¿·Ö¡£Õ⽫¼«´óµØ½Úʡʱ¼ä£¬ÌرðÊÇÔÚÈÕ³£±¸·ÝµÄ¹ý³ÌÖи´ÖÆÕû¸öĿ¼µÄʱºò¡£µÚÒ»´Î¸´ÖÆ»áÏûºÄ½Ï³¤Ê±¼ä£¬¶øÏÂÒ»´ÎµÄ´«Êä¾ÍÉÙ¶àÁË£¨Èç¹ûÄãÿ
Ì춼²»´ó·ùÐÞ¸ÄĿ¼µÄÄÚÈݵĻ°£©¡£
rsyncµÄÁíÒ»¸öºÃ´¦ÊÇËü¿ÉÒÔ±£ÁôÎļþµØËùÓÐȨºÍ·ÃÎÊȨÏÞÐÅÏ¢ÒÔ¼°¸´ÖÆ·ûºÅÁ´½Ó£¬¼ò¶øÑÔÖ®£¬Ëü±»Éè¼Æ³ÉÁéÇɵØÕÆ¿ØÄãµÄÎļþ¡£
Òª°²×° rsync£¬ÄãÓ¦¸Ã²»ÐèÒª×öʲô --- Ò»°ãµÄ Linux distro ¶¼Ó¦¸Ãȱʡ°²×°ËüÁË¡£Èç¹ûûÓеĻ°£¬ÄãÓ¦¸ÃÄÜÔÚÄãµÄ distro µØÈí¼þ°ü²Ö¿âÀïÕÒµ½²¢°²×°Ëü¡£Èç¹ûÄãÒª°ÑÊý¾Ý¸´ÖƵ½Ô¶³ÌϵͳÉϵĻ°£¬Á½Ì¨»úÆ÷¶¼ÐèÒª rsync¡£
µ±ÄãʹÓà rsync °ÑÎļþ¸´ÖƵ½Áíһ̨Ö÷»úµØʱºò£¬rsync ͨ³£Ê¹ÓÃÒ»¸öÔ¶³Ì shell£¬Èç ssh »ò rsh
À´¹¤×÷¡£ÔÚÏÂÃæµÄÀý×ÓÖУ¬³öÓÚ°²È«ÐԵĿ¼ÂÇ£¬ÎÒÃǽ«Ö»Ê¹Óà ssh¡£µ±È»£¬ÎÒÃÇÒ²¿ÉÒÔ·ÃÎÊʹÓà rsync daemon µÄÔ¶³ÌÖ÷»ú£¬²»¹ý£¬¼ÈÈ»ÏÖÔÚ
ssh ¼¸ºõÊÇÎÞ´¦²»ÔÚµÄÁË£¬ÎÒÃÇҲûÓбØÒª·ÑÁ¦ÆøʹÓÃÒ»¸ö daemon ÁË¡£
Á˽â rsync
rsync µÄ»ù±¾Óï·¨·Ç³£¼òµ¥ --- Ö»ÒªÔËÐÐ rsync [options] source destination ¾Í¿ÉÒÔ°ÑÎļþ´Ó source ¸´ÖƵ½ destination¡£
ËùÒÔ£¬¾Ù¸öÀý×Ó£¬Èç¹ûÄãÒª°ÑÄã¹éÊôĿ¼ÀïµÄÎļþ¸´ÖƵ½USBÓ²ÅÌÉÏÈ¥£¬Äã¿ÉÒÔÕâô×ö£ºrsync -a /home/user/dir/
/media/disk/dir/ ¡£ÕâÀïÐèҪǿµ÷һϣ¬¶ÔÓÚ rsync À´Ëµ "/home/user/dir/" ºÍ
"/home/usr/dir" ÊǽØÈ»²»Í¬µØ¡£Èç¹ûûÓÐ×îºóµÄбÏߣ¬rsync »áÕû¸öµØ¸´ÖÆĿ¼£»¶øÓÐÁË×îºóµÄбÏߣ¬rsync
½«Ö»¸´ÖÆĿ¼ÖеÄÄÚÈÝ£¬¶ø²»´´½¨Ä¿Â¼±¾Éí¡£Èç¹ûÄãÏ븴ÖÆÒ»¸öĿ¼½á¹¹£¬ÄÇÄã¾ÍÓ¦¸ÃÈ¥µô½áβµÄбÏߣ¬±ÈÈçÔÚ¾µÏñ /var/www
µ½ÆäËû»úÆ÷µÄʱºò»òÀàËƵÄÇé¿ö¡£
ÔÚÕâ¸öÀý×ÓÖУ¬ÎÒ¼ÓÈëÁ˹鵵¿ª¹Ø (-a)£¬Õâʵ¼ÊÏ൱ÓÚͬʱʹÓü¸¸ö rsync
¿ª¹Ø¡£Ëü°üÀ¨µÝ¹éÓ븴ÖÆ·ûºÅÁ´½Ó¿ª¹Ø¡¢±£Áô×éÓëÊôÖ÷ÊôÐÔ¿ª¹Ø£¬×ÜÖ®¾ÍÊÇÈà rsync ÊÊÓÃÓÚ½øÐй鵵¿½±´¡£×¢Ò⣬-a
²»±£ÁôÓ²Á´½Ó£»Èç¹ûÄãÐèÒªµÄ»°£¬»¹Ó¦¸Ã¼ÓÉÏÓ²Á´½Ó¿ª¹Ø (-H)¡£
ÁíÒ»¸ö³£Óÿª¹ØÊÇ verbose (-v)£¬Õ⽫Èà rsync ±¨¸æ¸ü¶àÐÅÏ¢¡£Ä㻹¿ÉÒÔʹÓÃÁ½¸ö»òÈý¸ö -v ¿ª¹Ø --- -v ½«¸ø³öһЩÐÅÏ¢£¬-vv »á¸ø³ö¸ü¶àÐÅÏ¢£¬
Ïà¹ØÎĵµ£º
kernel.shmall = 268435456
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.ip_local_port_range = 1024 65000
net.ipv4.tcp_max_tw_buckets = 5000
net.ipv4.tcp_max_tw_buckets = 5000
net.ip ......
1.
¸ÅÊö
¸ù¾ÝÒÔǰѧϰÄÚºËÔ´ÂëµÄ¾Ñ飬ÔÚѧϰÎļþϵͳʵÏÖ֮ǰ£¬ÎÒ´ó¸Å¶¨Á˸öÄ¿±ê£º
1
¡¢
½¨Á¢Ò»¸öÇåÎúµÄÈ«¾Ö¸ÅÄΪ½«À´ÐèÒªÑо¿´úÂëϸ½Ú´òϼáʵ»ù´¡¡£
2
¡¢
Ö»Ñо¿ÐéÄâÎļþϵͳ VFS
µÄʵÏÖ£¬²»Ñо¿¾ßÌåÎļþϵͳ¡£
ΪʲôѡÔñ Linux 2.4.30
£¿ÒòΪ¿ÉÒԲο¼¡ ......
1.check ntp is installed or not
[root@myvm1 server-tar]# whereis npt
npt:
#:(..not install
2.get ntp from official website(http://psp2.ntp.org/bin/view/Main/SoftwareDownloads) and install.
[root@myvm1 server-tar]# wget http://archive.ntp.org/ntp4/ntp-4.2/ntp-4.2.6.tar.gz
[root@myvm1 server-tar ......
Èç½ñ£¬¼¸ºõËùÓеÄÖ÷Á÷²Ù×÷ϵͳ¡¢Ç¶Èëʽ²Ù×÷Ìṩϵͳ¶¼ÌṩÁ˶ÔIPv6ÐÒéÕ»µÄÖ§³Ö£¬ÔÚwindows XPÏÂÃ棬ʹÓÃipv6 installÃüÁî±ã¿ÉÒÔÆô¶¯IPv6ÐÒéÕ»£¬ÔÚĬÈÏ°²×°µÄlinuxÏ£¬ÀûÓÃmodprobe ipv6±ã¿ÉÒÔÒÔÄ£¿éµÄ·½Ê½¼ÓÔØIPv6ÐÒéÕ»¡£±¾Æª½ö½éÉÜlinuxÏÂÃæµÄIPv6ÐÒéÕ»µÄÅäÖÃÃüÁÒÔºó»á½ÐøÍƳö¸üΪÏ꾡µÄlinux¼ ......
ÐÞ¸ÄIPµØÖ·ºÍÍø¹ØÊǺܳ£¼ûµÄ²Ù×÷£¬ÔÚ×öÏà¹ØʵÑéµÄʱºò£¬Èç¹ûûÓÐÉèÖú㬻á´øÀ´ºÜ¶à²»±ØÒªµÄÂé·³..
1. ÐÞ¸ÄIPµØÖ·
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.1.255
IPADDR=192.168.1.33
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
USERCTL=no
P ......