linuxϽûÖ¹ÐÞ¸ÄDNS·þÎñÆ÷µØÖ·(DNS±»×Ô¶¯ÐÞ¸ÄÎÊÌâ)
´ó¼Ò¶¼ÖªµÀÐÞ¸ÄlinuxϵÄDNS¿ÉÒÔÖ±½ÓÐÞ¸Ä/etc/resolv.conf:
root@xuanfei-desktop:~#vim /etc/resolv.conf
nameserver ip //ÌîÉÏÄãµ±µØʹÓõÄ×î¿ìDNS·þÎñÆ÷IPµØÖ·
nameserver ip
µ±È»Ò²¿ÉÒÔÖ±½ÓʹÓÃÍøÂç¹ÜÀíÆ÷Ð޸ġ£
µ«ÊÇÈç¹ûÄãËùÔÚ»ú¹¹»òÕß¹¤×÷µÄµØ·½±ØÐëÒªÇóÄãÓÃDHCP»ñµÃ×Ô¼º·Ç¹Ì¶¨¶¯Ì¬IP£¬ÄÇôËæÖ®¶øÈ»Äã×Ô¼ºÒ»Ïòϲ»¶µÄ»òÕß×Ô¼º¾õµÃ×î¿ìµÄDNS·þÎñÆ÷ipÒ²½«×Ô¶¯¸ü¸ÄΪËûÃÇËùÖ¸¶¨µÄDNS·þÎñÆ÷¡£
ÄÇô£¬ÎªÁ˱ÜÃâDNSÔÚDHCP×Ô¶¯»ñÈ¡µØÖ·ºó±»¸²¸Ç£¬Äú»¹ÐèÒªÕâô×ö£º
root@xuanfei-desktop:~# cp /etc/resolv.conf /etc/resolv.conf.bak
root@xuanfei-desktop:~# vim /etc/dhcp3/dhclient.conf prepend domain-name-servers 202.96.128.86 192.168.10.11;//ÏȽ«¸ÃÐÐ×¢ÊÍÈ¥µô£¬È»ºóÌîÉÏ×Ô¼ºÏëÓõ½µÄDNS·þÎñÆ÷IP
»¹ÓÐÁíÍâÒ»ÖÖ·½·¨¾ÍÊǸøDNSÅäÖÃÎļþ¼ÏËø£ºroot@xuanfei-desktop:~# chattr +i /etc/resolv.conf //¼ÓËöroot@xuanfei-desktop:~# lsattr /etc/resolv.conf //²é¿´¼ÓËøÊÇ·ñ³É¹¦ ÓÐi±íʾ³É¹¦
----i------------- /etc/resolv.conf
ÖØÐÂ×Ô¶¯»ñÈ¡IPÒ»´Îroot@xuanfei-desktop:~# dhclient //×Ô¶¯»ñÈ¡ipÃüÁîroot@xuanfei-desktop:~# cat /etc/resolv.conf //²é¿´µ±Ç°Ê¹ÓÃDNSµÄipsearch localdomain
nameserver 202.96.128.86
nameserver 192.168.10.11
ÊDz»ÊǾÍËÒ²¸Ä²»ÁËÄãµÄDNSÁËÄØ£º£© ¶ÔÀ²»Òª½ÐÄã¼ÓËøºó¾Í²»»á½âËøÁËŶ£¬¼ÇµÃ½âËøÓÃ-i¾ÍÐÐÀ ºÇºÇ ¾ÍÊÇÕâô¼òµ¥£º£©
Ïà¹ØÎĵµ£º
ÓÉÓÚ Linux Á¼ºÃµÄÓû§È¨ÏÞ¹ÜÀíÌåϵ£¬²¡¶¾ÍùÍùÊÇ Linux ϵͳ¹ÜÀíÔ±×îºó²ÅÐèÒª¿¼ÂǵÄÎÊÌâ¡£ÒÔÍù£¬Linux ÉϵÄɱ¶¾Èí¼þÖ÷ÒªÊÇΪÆóÒµµÄÓʼþºÍÎļþ·þÎñÆ÷ËùÉè¼ÆµÄ¡£Èç½ñ£¬Ëæ×Å Linux ×ÀÃæÓû§ÊýÁ¿µÄÔö³¤£¬×ÀÃæÓû§ÔÚÊÜÒæÓÚ Linux ϵͳ¶Ô²¡¶¾½ÏÇ¿µÄÌìÈ»ÃâÒßÁ¦µÄͬʱ£¬Ò²ÐèҪɱ¶¾Èí¼þÇåÀí´ÓÍøÂç»òUÅÌ´øÀ´µÄWIndows²¡¶¾¡£¾¡¹ÜÄÇЩ ......
Linux MakefileÒѱ»¹ã·ºÓ¦Óõ«ÊÇÒ²ÔÚ²»¶ÏµÄ¸üУ¬ÕâÀï½éÉÜLinux Makefile°²×°ÉèÖÃʹÓ㬰ïÖú´ó¼Ò°²×°¸üÐÂLinux Makefileϵͳ¡£×÷ΪLinuxϵijÌÐò¿ª·¢ÈËÔ±£¬´ó¼ÒÒ»¶¨¶¼Óöµ½¹ýLinux Makefile£¬ÓÃmakeÃüÁîÀ´±àÒë×Ô¼ºÐ´µÄ³ÌÐòȷʵÊǺܷ½±ã¡£Ò»°ãÇé¿öÏ£¬´ó¼Ò¶¼ÊÇÊÖ¹¤Ð´Ò»¸ö¼òµ¥Linux Makefile£¬Èç¹ûÒªÏëд³öÒ»¸ö·ûºÏ×ÔÓÉÈí¼þ¹ßÀ ......
LINUX--ÐÞ¸ÄIPµØÖ·
A¡¢ÐÞ¸ÄipµØÖ·
¼´Ê±ÉúЧ:
# ifconfig eth0 192.168.0.20 netmask 255.255.255.0
Æô¶¯ÉúЧ:
ÐÞ¸Ä/etc/sysconfig/network-scripts/ifcfg-eth0
B¡¢ÐÞ¸Ädefault gateway
¼´Ê±ÉúЧ:
# route add default gw 192.168.0.254
Æô¶¯ÉúЧ:
ÐÞ¸Ä/etc/sysconfig/network-scripts/ifcfg-eth0
C¡¢ÐÞ¸Ädns
ÐÞ ......
ÏÂÔØÈñ½ÝÉÏÍø°ü,½âѹ,ÓÐĿ¼: libpcap.so.0.6.2, libstdc++.so.5,compat-libstdc%2B%2B-33_3.2.3-48_i386.deb,xrgsu
1½øÈëruijieĿ¼
sudo cd ./ruijie(½«¸ÃÎļþ¼Ð·ÅÔÚµ±Ç°Óû§Ä¿Â¼ÏÂ)
2¸´ÖÆÎļþ
sudo cp xrgsu /bin
sudo cp libpcap.so.0.6.2 /usr/lib
sudo cp libstdc++.so.5 /usr/lib
find /usr/lib -name " ......
ÔÚlinuxÏÂһЩ³£ÓõĹػú/ÖØÆôÃüÁîÓÐshutdown¡¢halt¡¢reboot¡¢¼°init£¬ËüÃǶ¼
¡¡¡¡¿ÉÒÔ´ïµ½ÖØÆôϵͳµÄÄ¿µÄ£¬µ«Ã¿¸öÃüÁîµÄÄÚ²¿¹¤×÷¹ý³ÌÊDz»Í¬µÄ£¬Í¨¹ý±¾ÎĵĽéÉÜ£¬Ï£
¡¡¡¡ÍûÄã¿ÉÒÔ¸ü¼ÓÁé»îµÄÔËÓø÷ÖֹػúÃüÁî¡£
¡¡¡¡1.shutdown
¡¡¡¡shutdownÃüÁȫµØ½«ÏµÍ³¹Ø»ú¡£ ÓÐЩÓû§»áʹÓÃÖ±½Ó¶ÏµôµçÔ´µÄ·½Ê½À´¹Ø±Õlinux£¬
¡¡¡¡ ......