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

Linux ʹÓÃBINDÅäÖÃDNS·½·¨

Ê×Ïȼì²ébindÊÇ·ñÕý³£°²×°£¨ÒÔÏÂÃüÁî½öÏÞÓÚrpm°üµÄ¼ì²é£©
rpm -qa|grep bind
Èç¹û³öÏÖÏàÓ¦µÄ°²×°°üÐÅÏ¢£¬Ôò¿ÉÒÔ½øÈëÏÂÒ»²½
½ÓÏÂÀ´ÊÇʹÓÃbindÅäÖÃDNSËùÐèÒªµÄϵͳÒÔ¼°¶ÔÓ¦Îļþ£¬´óÖÂÈçÏ£º
/etc/hosts --Ö÷»úipÓëÓòÃûÖ®¼äµÄÒ»¸ö¶ÔÓ¦Îļþ£¨ÏµÍ³×Ô´ø£©£¬¿ÉÒÔʵÏÖ¿ìËÙ½âÎöµÄ¹¦ÄÜ 
¸ÃÎļþµÄÅäÖÃÄÚÈÝ´óÖÂÈçÏ£º
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain   localhost
10.10.6.23      bubu.bubu.com           bubu
#192.168.0.2     test2.bubu.com          test2
#192.168.0.3     test3.bubu.com          test3
/etc/host.conf --¶¨ÒåÖ÷»úÈçºÎ½âÎö£¨¾ßÌå½éÉÜ£©
¸ÃÎļþµÄÅäÖÃÄÚÈÝ´óÖÂÈçÏ£º
order hosts,bind
multi on
/etc/resolv.conf --¶¨ÒåϵͳµÄDNSµØÖ·
¸ÃÎļþµÄÅäÖÃÄÚÈÝ´óÖÂÈçÏ£º
search localdomain
#nameserver 202.106.196.115
nameserver 10.10.6.23
/etc/named.conf --bindÅäÖÃDNSµÄÖ÷ÅäÖÃÎļþ£¬ÆäÖмǼ×ÅÓòÃû¼Ç¼ºÍipÖ®¼äµÄ¶ÔÓ¦¹Øϵ
¸ÃÎļþµÄÅäÖÃÄÚÈÝ´óÖÂÈçÏ£º
//
// named.conf for Red Hat caching-nameserver
//
options {
        directory "/var/named";
        dump-file "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        /*
         * If there is a firewall between you and nameservers you want
         * to talk to, you might need to uncomment the query-source
         * directive below.  Previous versions of BIND always asked
         * questions using port 53, but BIND 8.1 uses an unprivileged
         * port by default.
         */
         // query-source address * port 53;
};
//
// a caching only nameserver config
//
cont


Ïà¹ØÎĵµ£º

linux api±Ê¼Ç£¨1£©£ºÅжÏÎļþÊÇ·ñ´æÔÚ

Èç¹ûÔÚlinux C\C++»·¾³ÏÂÅжÏij¸öÎļþÊÇ·ñ´æÔÚ£¬¿ÉÒÔʹÓÃaccessº¯Êý£º
#include <unistd.h>
#include <stdio.h>
int main()
{
        const char* file1 = "access.cpp";
        const char* file2 = "access1.cpp";
       & ......

LinuxÏ»ñÈ¡»úÆ÷ÐÔÄÜ

×¢Òâ¸Ã·½·¨ÊǼÆËãµÄ×Ô¿ª»úÒÔÀ´µÄʹÓÃÂÊ£¬ÊÇÒ»¸öÈ«¾ÖµÄ£¬Ã»¶à´óÒâÒ壬ÿһ´Î¼ÆËãCPUÀûÓÃÂÊ = 100 *£¨user + nice + system£©/£¨user + nice + system + idle£© ÕâÀïÒª¼õÈ¥Ò»¶¨Ê±¼äÒÔÇ°·½¿É¼ÆËã³öÕâÒ»¶Îʱ¼äÄÚµÄcpuʹÓÃÂÊ¡£ "procÎļþϵͳÊÇÒ»¸öαÎļþϵͳ£¬ËüÖ»´æÔÚÄÚ´æµ±ÖУ¬¶ø²»Õ¼ÓÃÍâ´æ¿Õ¼ä¡£ËüÒÔÎļþϵͳµÄ·½Ê½Îª·ÃÎÊÏµÍ ......

LinuxÏÂÎļþµÄ²Ù×÷(zt)

 
1£®ÎļþµÄ´´½¨ºÍ¶Áд
¡¡¡¡µ±ÎÒÃÇÐèÒª´ò¿ªÒ»¸öÎļþ½øÐжÁд²Ù×÷µÄʱºò,ÎÒÃÇ¿ÉÒÔʹÓÃϵͳµ÷Óú¯Êýopen.ʹÓÃÍê³ÉÒÔºóÎÒÃǵ÷ÓÃÁíÍâÒ»¸öcloseº¯Êý½øÐйرղÙ×÷.
¡¡¡¡¡¡¡¡int open(const char *pathname,int flags);
¡¡¡¡¡¡¡¡int open(const char *pathname,int flags,mode_t mode);
¡¡¡¡¡¡¡¡int close(int fd); ......

linux¹Ø»úÃüÁîÏê½â

ÔÚlinuxÏÂһЩ³£ÓõĹػú/ÖØÆôÃüÁîÓÐshutdown¡¢halt¡¢reboot¡¢¼°init£¬ËüÃǶ¼¿ÉÒÔ´ïµ½ÖØÆôϵͳµÄÄ¿µÄ£¬µ«Ã¿¸öÃüÁîµÄÄÚ²¿¹¤×÷¹ý³ÌÊDz»Í¬µÄ£¬Í¨¹ý±¾ÎĵĽéÉÜ£¬Ï£ÍûÄã¿ÉÒÔ¸ü¼ÓÁé»îµÄÔËÓø÷ÖֹػúÃüÁî¡£
¡¡¡¡1.shutdown
¡¡¡¡shutdownÃüÁȫµØ½«ÏµÍ³¹Ø»ú¡£ÓÐЩÓû§»áʹÓÃÖ±½Ó¶ÏµôµçÔ´µÄ·½Ê½À´¹Ø±Õlinux£¬ÕâÊÇÊ®·ÖΣÏյġ£ÒòÎ ......

Linuxϵͳѧϰ·½·¨ÂÛ

Ê×ÏÈ,ÎÒÏëÒýÓÃһϱðÈË˵¹ýµÄÒ»¾ä»°:³ý·ÇÔÚ¹ýÈ¥µÄÊ®ÄêÄãÒ»Ö±Éú»îÔÚɽ¶´Àï,·ñÔòÄãÒ»¶¨Ìý˵¹ýlinux.
ÊǵÄ,ÏÖÔÚÌý˵¹ýlinux,
»áÒ»µãlinux»ù±¾²Ù×÷µÄÈ˶àÈçţë,È»¶øÕæÕýÄÜÓÃlinux×öÒ»µãÊÂÇéµÄÈ·ÉÙÖ®ÓÖÉÙ,Õâ¾ÍÔì³ÉÁËÏÖÔÚµÄ×´¿ö:¸÷´ó
linuxÂÛ̳ʮ·ÖÈÈÄÖ,µ«ÎÒ¹úlinuxÈ˲ÄÈ´»¹Ê®·Ö½ôȱ.µ½µ×ÊÇʲôԭÒòÔì³ÉÁËÕâÑùµÄ×´¿ö? ¾ÀÆäÔ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ