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

Linux Ï etc/ Ŀ¼ÎļþÏê½â

3. ÍøÂçÅäÖÃÎļþ
3.1 /etc/hosts
#/etc/hosts
#Îļþ¸ñʽ: IPaddress hostname aliases
#Îļþ¹¦ÄÜ: ÌṩÖ÷»úÃûµ½IPµØÖ·µÄ¶ÔÓ¦¹ØÏµ£¬½¨Ò齫×Ô¼º¾­³£Ê¹ÓõÄÖ÷»ú
# ¼ÓÈë´ËÎļþÖУ¬Ò²¿É½«Ã»ÓÐDNS¼Ç¼µÄ»úÆ÷¼ÓÈëµ½´ËÎļþÖУ¬
# ÕâÑù»á·½±ãÍøÂçÓ¦ÓÃ
127.0.0.1 localhost localhost.localdomain
202.118.66.81 helius.dlut.edu.cn helius
3.2 /etc/resolv.conf
Îļþ¹¦ÄÜ£ºDNS¿Í»§»úÅäÖÃÎļþ£¬ÉèÖÃDNS·þÎñÆ÷µÄIPµØÖ·¼°DNSÓòÃû
Ïà¹ØÎļþ£º/etc/host.conf
Îļþ¸ñʽ£º
domainname ÓòÃû
search ÓòÃû
nameserver Primary_DNS_Server_IP_address
nameserver Second_DNS_Server_IP_address
ÆäÖÐdomainnameºÍsearch¿Éͬʱ´æÔÚ£¬Ò²¿ÉÖ»ÓÐÒ»¸ö£»nameserver¿ÉÖ¸¶¨¶à¸ö
ʾÀýÎļþÄÚÈÝ£º
search dlut.edu.cn
nameserver 202.118.66.6
3.3 /etc/host.conf
¹¦ÄÜ£ºÖ¸¶¨Ö÷»úÃû²éÕÒ·½·¨£¬Í¨³£Ö¸ÏȲéÕÒÎļþ/etc/hosts,ÕÒ²»µ½Ê±ÔÙÏòDNS·þÎñÆ÷ÇëÇó¡£
¶ÔÓÚ´ó¶àÊýÓû§²»ÓøĶ¯´ËÎļþÄÚÈÝ¡£
Linux: /etc/host.confÎļþÄÚÈÝ
order hosts, bind
multi on
Soalris: /etc/nsswitch.conf ÖеÄhostsÏî
hosts files, dns
3.4 /etc/HOSTNAME ( Linux Redhat 5.x Distribution)
¹¦ÄÜ£ºÉèÖÃÖ÷»úÃû£¬²»Í¬LINUXÖ®¼ä¿ÉÄÜÓÐËù²î±ð£¬ÇëʹÓÃ
egrep hostname /etc/rc.d/init.d/*
»ò
egrep hostname /etc/init.d/*
²éÕÒÏàÓ¦°æ±¾ÉϵÄÖ÷»úÃûÉèÖÃÎļþ¼°·½·¨¡£
Linux Redhat 5.x¶ÔÓ¦Îļþ: /etc/sysconfig/networkµÄHOSTNAMEÏî¡£
3.5 /etc/inetd.conf
Internet ³¬¼¶·þÎñÆ÷, Ïà¹Ø³ÌÐò: /usr/sbin/inetd
ÏàÓ¦·þÎñ:
telnet
ftp
pop3
r* rsh rcp rlogin (½¨Òé×îºÃ¹Ø±Õr·þÎñ)
ÆäËû·þÎñ×îºÃ¹Øµô
#
# inetd.conf This file describes the services that will be available
# through the INETD TCP/IP super server. To re-configure
# the running INETD process, edit this file, then send the
# INETD process a SIGHUP signal.
#
# Version: @(#)/etc/inetd.conf 3.10 05/27/93
#
# Authors: Original taken from BSD UNIX 4.3/TAHOE.
# Fred N. van Kempen, 
#
# Modified for Debian Linux by Ian A. Murdock 
#
# Modified for RHS Linux by Marc Ewing 
#

#
# Echo, discard, daytime, and chargen are used primarily for testing.
#
# To re-read this file after changes, just do a 'killall -HUP inetd'
#
#ech


Ïà¹ØÎĵµ£º

linux Äں˰汾¼°²¹¶¡ËµÃ÷

ת×Ô£ºhttp://lkml.org/lkml/2005/8/2/242
--------------------------------------------------------------------------------------------
from
Jesper Juhl <>
Subject
Documentation - how to apply patches for various trees
Date
Tue, 2 Aug 2005 23:32:20 +0200
Hi,
How to apply the -rc, -git, ......

Linux ѧϰʹÓà iptables


ÔÚÕýʽ½éÉÜ iptables
µÄʹÓÃ
֮ǰ£¬ÎÒÃÇÏÈÀ´¿´Ò»ÏÂºÍ iptables

Ïà¹ØµÄһЩ»ù±¾¸ÅÄî¡£ÎÒÃÇÏÂÃæ½«»áƵ·±Ê¹ÓÃ
µ½
ËüÃÇ¡£
Æ¥Å䣨match£©£º·ûºÏÖ¸¶¨µÄÌõ¼þ£¬±ÈÈçÖ¸¶¨µÄ IP µØÖ·ºÍ¶Ë¿Ú¡£
¶ªÆú£¨drop£©£ºµ±Ò»¸ö°üµ½´ïʱ£¬¼òµ¥µØ¶ªÆú£¬²»×öÆäËüÈκδ¦Àí¡£
½ÓÊÜ£¨accept£©£ººÍ¶ªÆúÏà·´£¬½ÓÊÜÕâ¸ö°ü£¬ÈÃÕâ¸ö°üͨ¹ý¡£
¾ ......

LinuxÏÂMySQL5.1µÄ°²×°

×î½üÏëÔÚ·þÎñÆ÷ÉÏÊÔÊÔMySQL5.1µÄ·ÖÇø£¬ÓÚÊǾÍÏë×Å×°¸öMySQL5.1£¬¾­¹ýÍ´¿àµÄÒ»¶Î¾­Àúºó£¬ÖÕÓÚÕÒ¸öÏÂÃæ×°¸öºÜºÃµÄ½Ì³Ì£¬ÌûÉÏÀ´±¸Íü¡£
1¡¢MySQLÃâ°²×°°æ/¶þ½øÖưæÈí¼þ£¬²»ÓñàÒ룬ÏÂÔØµØÖ·£º
     http://dev.mysql.com/downloads/
     Îļþ¸ñʽ£ºMYSQL-VERSION-OS.tar.gz
2¡¢´ ......

linux shell½Å±¾Ö®ifÅжÏ

ÎÞÂÛʲô±à³ÌÓïÑÔ¶¼Àë²»¿ªÌõ¼þÅжϡ£SHELLÒ²²»ÀýÍâ¡£
 if list then
          do something here
      elif list then
          do another thing here
      ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ