yum for linux update
http://linux.duke.edu/yum/ ÏÂÔØyum°²×°Îļþ
http://mirror-status.centos.org ÍøÕ¾²éÕÒÀë×Ô¼º×î½üµÄ¾µÏñÕ¾µã£¬Ìæ»»ÏÂÃæÎļþÖеÄÏàÓ¦µØÖ·
Èí¼þ°²×°·Ç³£¼òµ¥£ºrpm –ivh yum*.rpm
È»ºóÐÞ¸Ä/etc/yum.repos.d/rhel-debuginfo.repo
[base]
name=Red Hat Enterprise Linux $releasever -Base
baseurl=http://mirror.be10.com/centos/5.0/os/$basearch/
gpgcheck=1
[update]
name=Red Hat Enterprise Linux $releasever -Updates
baseurl=http://mirror.be10.com/centos/5.0/updates/$basearch/
gpgcheck=1
[extras]
name=Red Hat Enterprise Linux $releasever -Extras
baseurl=http://mirror.be10.com/centos/5.0/extras/$basearch/
gpgcheck=1
[addons]
name=Red Hat Enterprise Linux $releasever -Addons
baseurl=http://mirror.be10.com/centos/5.0/addons/$basearch/
gpgcheck=1
2.ÏÂÔز¢µ¼ÈëKEY
¸ù¾ÝÑ¡ÔñµÄ¾µÏñÕ¾µãÏÂÔØkeyÎļþ£¬²¢°²×°
cd /etc/pki/rpm-gpg
wget http://mirror.be10.com/centos/RPM-GPG-KEY-CentOS-5
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
³£ÓÃÃüÁî
Yum check-update #²é¿´¸üÐÂ
Yum update pack #¸üв¹¶¡¡£
±à¼/etc/yum.conf ÔÚ[main] ÖмÓÈë exclude=kernel kernel-source ÕâÑù¿ÉÒÔ²»Éý¼¶kernel
Ïà¹ØÎĵµ£º
1. ѧ»áд¼òµ¥µÄmakefile
2. ±àһЩӦÓÃ
³ÌÐò
£¬¿ÉÒÔÓÃmakefileÅÜÆðÀ´
3. ѧ»áдÇý¶¯
µÄmakefile
4. дһ¼òµ¥charÇý¶¯£¬makefile±àÒëͨ¹ý£¬¿ÉÒÔinsmod£¬ lsmod£¬ rmmod. ÔÚÇý¶¯µÄinitº¯ÊýÀï´òÓ¡hello world£¬insmodºóÓ¦¸ÃÄܹ»Í¨¹ýdmesg¿´µ½Êä³ö
¡£
5. дһÍêÕûÇý¶¯£¬ ¼ÓÉÏread£¬ write£¬ ioctl£¬ pollingµÈ¸ ......
½ñÌìΪÁ˸ø¶¥Ç¶±×ö×¼±¸Óֻص½linuxÏ¿ªÊ¼c±à³ÌÁË¡£¸Õ¿ªÊ¼ÊÇÁ·Ï°Ð´Ò»¸öÓë¾ØÕó±ä»»ÓйصijÌÐò£¬ÎªÁ˽Úʡʱ¼äÓÐÒ»¸öº¯ÊýÄ£¿éÊÇÖ±½ÓÓõÄÒÔÇ°ÔÚwindowsϱà³ÌʱËùʹÓõġ£½á¹ûÔÚlinuxϱàÒëÍêÔËÐÐÖ®ºóºÜ¿ì¾Í±ÀÀ£ÁË£¬ÓÉÓÚµ÷ÊÔˮƽ²»¸ßŪÁ˺ܾÃÒ²²»Öªµ½ÎÊÌâ³öÔÚÄÄÀï¡£ÕýÔÚ°Ù˼²»µÃÆä½âʱºöÈ»×¢Òâµ½£¨µ±È»²»ÊÇ×Ô¼ºµ÷ÊÔ³öÀ´µÄ ......
http://blog.chinaunix.net/u1/53398/showart_478990.html
ÓÉÓÚfind¾ßÓÐÇ¿´óµÄ¹¦ÄÜ£¬ËùÒÔËüµÄÑ¡ÏîÒ²ºÜ¶à£¬ÆäÖд󲿷ÖÑ¡ÏֵµÃÎÒÃÇ»¨Ê±¼äÀ´Á˽âһϡ£¼´Ê¹ÏµÍ³Öк¬ÓÐÍøÂçÎļþϵͳ( NFS)£¬findÃüÁîÔÚ¸ÃÎļþϵͳÖÐͬÑùÓÐЧ£¬Ö»Äã¾ßÓÐÏàÓ¦µÄȨÏÞ¡£
ÔÚÔËÐÐÒ»¸ö·Ç³£ÏûºÄ×ÊÔ´µÄfindÃüÁîʱ£¬ºÜ¶àÈ˶¼ÇãÏòÓÚ°ÑËü·ÅÔÚºǫִ́ÐУ¬Òò ......
¹Ù·½ÍøÕ¾£ºhttp://www.isc.org
Ò»£ºÔ´Âë°üµÄ°²×°ºÍÅäÖÃ
ÏÂÔØÔ´Âë°üÎļþ£ºhttp://ftp.isc.org/isc/bind9/9.4.2/bind-9.4.2.tar.gz
½âѹ²¢°²×°bind
Tar –zxvf bind-9.4.2.tar.gz
ÅäÖÃÔ´Âë°ü£º
./configure --prefix=/usr/local/named --enable-threads #--enable-threads¿ªÆô¶àÏ̴߳¦ÀíÄÜÁ¦
......
Q:
I
keep getting
errors due to library functions being undefined,
but I'm #including all
the right header files.
A:
In the general case of calling code in an
external library,
using #include
to pull in
the right header file(s) is only half
of the story; you also have to tell th ......