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

Linux Ï patch µÄÖÆ×÷ºÍÓ¦ÓÃ

  Ê×ÏȽéÉÜһϠdiff ºÍ patch¡£ÔÚÕâÀï²»»á°Ñ man ÔÚÏßÎĵµÉÏËùÓеÄÑ¡Ï½éÉÜÒ»ÏÂ,ÄÇÑùҲû
ÓбØÒª¡£ÔÚ 99%µÄʱ¼äÀï,ÎÒÃÇÖ»»áÓõ½¼¸¸öÑ¡Ïî¡£ËùÒÔ±ØÐëѧ»áÕ⼸¸öÑ¡Ïî¡£
1¡¢diff
--------------------
NAME
   diff - find differences between two files
SYNOPSIS
   diff [options] from-file to-file
--------------------
¼òµ¥µÄ˵,diff µÄ¹¦ÄܾÍÊÇÓÃÀ´±È½ÏÁ½¸öÎļþµÄ²»Í¬,È»ºó¼Ç¼ÏÂÀ´,Ò²¾ÍÊÇËùνµÄ diff ²¹¶¡¡£Óï·¨
¸ñʽ:diff ¡¾Ñ¡Ïî¡¿ Ô´Îļþ(¼Ð) Ä¿µÄÎļþ(¼Ð),¾ÍÊÇÒª¸øÔ´Îļþ(¼Ð)´ò¸ö²¹¶¡,ʹ֮±ä³ÉÄ¿
µÄÎļþ(¼Ð),ÊõÓïÒ²¾ÍÊÇ“Éý¼¶”¡£ÏÂÃæ½éÉÜÈý¸ö×îΪ³£ÓÃÑ¡Ïî:
-r ÊÇÒ»¸öµÝ¹éÑ¡Ïî,ÉèÖÃÁËÕâ¸öÑ¡Ïî,diff »á½«Á½¸ö²»Í¬°æ±¾Ô´´úÂëĿ¼ÖеÄËùÓжÔÓ¦ÎļþÈ«²¿¶¼½ø
ÐÐÒ»´Î±È½Ï,°üÀ¨×ÓĿ¼Îļþ¡£
-N Ñ¡ÏîÈ·±£²¹¶¡Îļþ½«ÕýÈ·µØ´¦ÀíÒѾ­´´½¨»òɾ³ýÎļþµÄÇé¿ö¡£
-u Ñ¡ÏîÒÔͳһ¸ñʽ´´½¨²¹¶¡Îļþ,ÕâÖÖ¸ñʽ±Èȱʡ¸ñʽ¸ü½ô´ÕЩ¡£
2¡¢patch
------------------
NAME
     patch - apply a diff file to an original
SYNOPSIS
     patch [options] [originalfile [patchfile]]
     but usually just
     patch -pnum <patchfile>
------------------
¼òµ¥µÄ˵,patch ¾ÍÊÇÀûÓà diff ÖÆ×÷µÄ²¹¶¡À´ÊµÏÖÔ´Îļþ(¼Ð)ºÍÄ¿µÄÎļþ(¼Ð)µÄת»»¡£ÕâÑù˵
¾ÍÒâζ×ÅÄã¿ÉÒÔÓÐÔ´Îļþ(¼Ð)¨D¨D>Ä¿µÄÎļþ(¼Ð),Ò²¿ÉÒÔÄ¿µÄÎļþ(¼Ð)¨D¨D>Ô´Îļþ(¼Ð)¡£
ÏÂÃæ½éÉܼ¸¸ö×î³£ÓÃÑ¡Ïî:
-p0 Ñ¡ÏîÒª´Óµ±Ç°Ä¿Â¼²éÕÒÄ¿µÄÎļþ(¼Ð)
-p1 Ñ¡ÏîÒªºöÂÔµôµÚÒ»²ãĿ¼,´Óµ±Ç°Ä¿Â¼¿ªÊ¼²éÕÒ¡£
************************************************************
ÔÚÕâÀïÒÔʵÀý˵Ã÷:
--- old/modules/pcitable         Mon Sep 27 11:03:56 1999
+++ new/modules/pcitable           Tue Dec 19 20:05:41 2000
   Èç¹ûʹÓòÎÊý-p0,ÄǾͱíʾ´Óµ±Ç°Ä¿Â¼ÕÒÒ»¸ö½Ð×ö old µÄÎļþ¼Ð,ÔÚËüÏÂÃæÑ°ÕÒ modules ϵÄ
pcitable ÎļþÀ´Ö´ÐÐ patch ²Ù×÷¡£
   Èç¹ûʹÓòÎÊý-p1,ÄǾͱíʾºöÂÔµÚÒ»²ãĿ¼(¼´²»¹Ü old),´Óµ±Ç°Ä¿Â¼Ñ°ÕÒ modules µÄÎļþ
¼Ð,ÔÚËüÏÂÃæÕÒ pcitable¡£ÕâÑùµÄÇ°ÌáÊǵ±Ç°Ä¿ ¼±ØÐëΪ modules ËùÔÚµÄĿ¼¡£¶ø diff ²¹¶


Ïà¹ØÎĵµ£º

(Ò»)LinuxÍøÂç±à³Ì

http://blog.csdn.net/jenshy/archive/2006/04/18/667944.aspx
(Ò»)LinuxÍøÂç±à³Ì--ÍøÂç֪ʶ½éÉÜ
LinuxÍøÂç±à³Ì
--
ÍøÂç֪ʶ½éÉÜ
¿Í»§¶ËºÍ·þÎñ¶Ë

       
ÍøÂç³ÌÐòºÍÆÕͨµÄ³ÌÐòÓÐÒ»¸ö×î´óµÄÇø±ðÊÇÍøÂç³ÌÐòÊÇÓÉÁ½¸ö²¿·Ö×é³ÉµÄ
--
¿Í»§¶ËºÍ·þÎñÆ÷¶Ë
.
¿Í»§¶Ë
      &nbs ......

LinuxÍøÂç±à³ÌÈëÃÅ

(Ò»)LinuxÍøÂç±à³Ì--ÍøÂç֪ʶ½éÉÜ
LinuxÍøÂç±à³Ì--ÍøÂç֪ʶ½éÉÜ
¿Í»§¶ËºÍ·þÎñ¶Ë
        ÍøÂç³ÌÐòºÍÆÕͨµÄ³ÌÐòÓÐÒ»¸ö×î´óµÄÇø±ðÊÇÍøÂç³ÌÐòÊÇÓÉÁ½¸ö²¿·Ö×é³ÉµÄ--¿Í»§¶ËºÍ·þÎñÆ÷¶Ë.
¿Í»§¶Ë
        ÔÚÍøÂç³ÌÐòÖУ¬Èç¹ûÒ»¸ö³ÌÐòÖ÷¶¯ºÍÍâÃæµÄ³ÌÐòͨÐÅ£¬ÄÇôÎÒÃÇ°ÑÕâ¸ö³ÌÐò³ÆΪ¿ ......

linux·þÎñÆ÷°²×°£¨centos5.3 apache php mysql£©

 ×î½ü×°Á˼¸´Îlinux£¬Ñ§Á˺ܶ࣬°Ñ¹ý³ÌдÏÂÀ´ÁË£¬Ï£Íû¸ø¿´µÄÈË°ïÖú£¬Ò²¶à¸øЩ½¨Òé¡£
Ò»¡¢Ñ¡Ôñ×îС»¯°²×°£¨Ê²Ã´Ò²²»Ñ¡£¬µ«ÊÇ»¹ÊÇÑ¡ÁËvim£©
¶þ¡¢Ê¹ÓùâÅÌ×÷ΪԴ°²×°£¨ÏêÇé²Î¼û/etc/yum.repos.d/CentOS-Media.repo£©ËùÓÃÌ×¼þ£¨Ê¹ÓÃyumµÄÇ¿´ó¹¦ÄÜ£©
####²¢²»ÊǼòµ¥µÄÓÃyumÃüÁÐèÒªÔÚyumºóÃæ¼ÓһЩ¶«Î÷£¬/etc/yum.repo ......

linux mysql ¿ª·¢»·¾³

°²×°mysql
sudo apt-get install mysql-servel-5.0 mysql-client-5.0
ÏÂÔØ°²×°¹ý³ÌÖУ¬»áÌáʾÊäÈërootÃÜÂë
°²×°CÓïÑÔ±à³Ì½Ó¿Ú£º
 sudo apt-get install libmysqlclient15-dev
¸ü¶àapi ²é¿´£ºhttp://dev.mysql.com/doc/refman/5.0/en/c.html
Ïà¹ØmysqlÍ·ÎļþºÍ¿âÎļþ°²×°ÔÚ/usr/include/mysql/ºÍ/usr/lib/mysqlÄ¿ ......

Mysql for linux mysql×Ô¶¯±¸·Ý½Å±¾

¿ÉÒÔ½«Õâ¸ö½Å±¾·Å½øcrontab£¬ËûµÄÅäÖÆÎļþÔÚ /etc/crontabÖÐÿÌìÁ賿ִÐÐÒ»´Î£¬×Ô¶¯±¸·Ý Õâ¸ö½Å±¾Ã¿Ìì×î¶àÖ»Ö´ÐÐÒ»´Î£¬¶øÇÒÖ»±£Áô×î½üÎåÌìµÄ±¸·ÝÔÚ·þÎñÆ÷ÉÏ¡£
#!/bin/bash
#This is a ShellScript For Auto DB Backup
#Powered by aspbiz
#2004-09
#Setting
#ÉèÖÃÊý¾Ý¿âÃû£¬Êý¾Ý¿âµÇ¼Ãû£¬ÃÜÂ룬±¸·Ý·¾¶£¬ÈÕ־ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ