linuxÉÏʹÓÃBIND½¨Á¢DNS·þÎñÆ÷
ÔÚ±¾ÎÄÖÐÎÒÃÇÓÃRed Hat×÷ΪʾÀý£¬ËùÒÔÄãÒ²ÐíÏ£ÍûʹÓÃBINDµÄRPM°æ±¾£¬¿ÉÒÔͨ¹ýËÑË÷www.rpmfind.netÕÒµ½Ëü£¬ÒòΪʹÓÃRPMÐÎʽµÄ·¢ÐаüÊÇ°²×°BIND×î¼ò±ãµÄ·½·¨¡£
1.ÏÂÔØÁËBINDµÄRPMÖ®ºó£¬±ÈÈçbind-9.1.0-10.i386.rpm£¬ÐèÒªÒÔ³¬¼¶Óû§µÄÉí·ÝÖ´ÐÐrpm -ivh bind-9.1.0-10.i386.rpmÃüÁî¡£ÔÚRPM°²×°BINDʱҪעÒâ¼ì²éÈκÎÄܹ»µ¼Ö°²×°Ê§°ÜµÄȱʧµÄÒÀÀµ¹Øϵ¡£
Èç¹ûÄã¸üÔ¸Òâ´ÓÔ´Âë°ü°²×°µÄ»°£¬ÔÚÏÂÔØÈçbind-9.1.3.tar.gzÕâÑùµÄÎļþÖ®ºóÐèÒªÒÔ³¬¼¶Óû§Éí·ÝÔËÐÐtar xvfz bind-9.1.3.tar.gzÃüÁî¶ÔËü½øÐнâѹ¡£¾Í±¾Àý¶øÑÔ»áÉú³ÉÒ»¸öÃûΪbind-9.1.3µÄĿ¼£¬Ëü°üº¬Á˽øÐа²×°Ëù±ØÐèµÄËùÓÐÎļþ¡£
2.ÏÂÒ»²½£¬½øÈëÕâ¸öд´½¨µÄĿ¼ȻºóÖ´ÐÐ./configureÃüÁÔڽű¾³ÌÐòÍê³ÉËùÓÐÅäÖù¤×÷ºó£¬ÔËÐÐmake£¬½Ó×ÅÔËÐÐmake installÍê³É°²×°¹ý³Ì¡£ÏÖÔÚÔÚÄãµÄϵͳÖÐÓ¦¸ÃÒѾ°²×°ºÃÁË»ù±¾ÅäÖõÄBIND£¬½ÓÏÂÀ´Òª¸ù¾ÝÐèÒª¶ÔËü½øÐе÷Õû¡£
3.ÅäÖÃBIND
µ±ÏµÍ³Öа²×°ºÃBINDÖ®ºó£¬Äã¾Í¿ÉÒÔ°ÑËüÅäÖóɶàÖÖ·½Ê½¡£×î³£ÓõÄÁ½ÖÖÖ®Ò»ÊÇʹÓÃISPÀàÐ͵ÄÉèÖã¬DNS·þÎñÆ÷½ÓÊܲ¢½âÎöÀ´×ÔÈκÎÈ˵ÄÇëÇó(»òÕßÒ»×éÔ¤Ïȶ¨ÒåµÄÓû§);ÁíÒ»ÖÖÊÇWebÖ÷»ú·½Ê½£¬·þÎñÆ÷Ö»½âÎö¶Ô·þÎñÓòÃûµÄÇëÇó¡£µ±·þÎñÆ÷µÄÓÃ;¸Ä±äʱ£¬ÄãÒ²¿ÉÒÔËæʱ¸Ä±äÅäÖõÄÀàÐÍ¡£
DNS·þÎñÆ÷¼È¿ÉÒÔÊÇÖ÷¿Ø·þÎñÆ÷Ò²¿ÉÒÔÊǸ¨Öú·þÎñÆ÷¡£Ö÷¿Ø·þÎñÆ÷Ò²³ÆΪÖ÷·þÎñÆ÷£¬ÊÇÅж¨ÓòÃûµÄ×îÖÕÀ´Ô´¡£Ö÷¿Ø·þÎñÆ÷ͬʱҲÊÇ´«Ë͵½¸¨Öú·þÎñÆ÷µÄÇø´«ËÍ(zone transfer)µÄÔ´Í·¡£¸¨Öú·þÎñÆ÷½ÓÊÕËùÓÐÀ´×ÔÖ÷¿Ø·þÎñÆ÷µÄÇøÐÅÏ¢¡£Ò»¸ö³£¼ûµÄ´íÎóÊÇÊÔͼ¸Ä±ä¶þ¼¶·þÎñÆ÷ÉϵÄÇøÊý¾Ý¿âÎļþ¶øûÓиıäÖ÷¿Ø·þÎñÆ÷ÉϵÄÇøÊý¾Ý¿âÎļþ(zone file)¡£ÎªÊ²Ã´ÒªÁ½¸ö·þÎñÆ÷ÄØ?ÔÚÈκÎÅäÖÃÖÐʹÓÃÈßÓ඼ÊÇÒ»¸öºÃÖ÷Ò⣬ÕâÊÇBINDºÍDNSµÄÒ»¸öÔÉú²¿·Ö¡£ÐÒÔ˵ÄÊÇ£¬ÔÚ»ú·¿ÖÐÔö¼ÓµÚ¶þ̨Linux»úÆ÷×÷Ϊ¸¨ÖúDNS·þÎñÆ÷Ò»°ãÀ´Ëµ²»»áÓ°ÏìÄãµÄÔ¤Ëã¡£
Òª¼Çסµ±ÓÐÁ½ÖÖÀàÐ͵ķþÎñÆ÷ʱ£¬Ö÷¿Ø·þÎñÆ÷Ò²¿ÉÒÔͬʱµ£µ±ÆäËûÓòµÄ¸¨Öú·þÎñÆ÷¡£ÔÚ´ó¶àÊýISP»·¾³µ±Öж¼¿ÉÒÔ¿´µ½ÕâÖÖÇéÐΣ¬¿Í»§ÓµÓÐ×Ô¼ºµÄÖ÷¿ØDNS·þÎñÆ÷£¬Í¬Ê±ÓÖ³öÓÚ±¸·ÝµÄÄ¿µÄ°ÑISPµ±×÷¶þ¼¶·þÎñÆ÷¡£ÕâÖÖÀàÐ͵ÄÅäÖÃÒÔ¼°BINDÖм¸ºõËùÓеÄÆäËûÅäÖÃÏÊÇͨ¹ýnamed.confÎļþÍê³ÉµÄ¡£Õâ¸öÎļþÒÔ´¿Îı¾µÄÐÎʽ´æ·Å¸÷·þÎñÆ÷ÐÅÏ¢ºÍÇøÐÅÏ¢¡£Èç±íAËùʾ¡£
named.conf ÎļþʾÀý
options {
notify-source 10.0.0.2;
pid-file "/var/run/named.pid";
};
zone "." {
type master;
file "root.db";
};
zone "example.com" {
type master;
file "/var/named/sample.co
Ïà¹ØÎĵµ£º
ÓÃ;
´¦ÀíÃüÁîÐвÎÊý£¬²¢Ð£ÑéÓÐЧѡÏî¡£
Óï·¨
getopts
Ñ¡Ïî×Ö·û´®
Ãû³Æ
[
²ÎÊý
...]
ÃèÊö
getopts ÃüÁîÊÇ Korn/POSIX shell µÄÄÚÖÃÃüÁÓÃÀ´´Ó²ÎÊýÁбí¼ìË÷Ñ¡ÏîÒÔ¼°Ñ¡Ïî²ÎÊý¡£Ñ¡ÏîÓÉÒ»¸ö £¨¼ÓºÅ£©»òÕßÊÇÓÉÒ»¸ö-£¨¼õºÅ£©ºó¸úÒ»¸ö×Ö·û¿ªÊ¼¡£Ò»¸ö¼È²»ÊÇÒÔ £¬Ò²²»ÊÇÒÔ-¿ªÊ¼µÄÑ¡Ïî½áÊøÑ¡Ïî×Ö·û´®¡£Ã¿´Îµ÷Óà getopt ......
ÕâÀï¼Ç¼Redhat LinuxÖеÄһЩ³£Ó÷þÎñºÍÅäÖù¤¾ß¡£°æ±¾»ùÓÚAS4¡£
1.Firewall
ͨ¹ýÃüÁîÐÐÅäÖãºlokkit
ͼÐνçÃæÅäÖãºApplications->System Settings->Security Level
2.samba
/etc/init.d/smb start | /etc/init.d/smb stop | /etc/init.d/smb restart
»òÕß
service smb start | service smb stop | servic ......
²¥·ÅÎļþ
ʹÓà MPlayer ²¥·ÅýÌåÎļþ×î¼òµ¥µÄ·½Ê½ÊÇ£º
mplayer <somefile>
MPlayer »á×Ô¶¯¼ì²âÎļþµÄÀàÐͲ¢¼ÓÒÔ²¥·Å£¬Èç¹ûÊÇÒôƵÎļþ£¬Ôò»áÔÚÃüÁîÐÐÖÐÏÔʾ¸Ã²¥·ÅÎļþµÄ״̬ÐÅÏ¢£»¶ø¼ÙÈçÊÇÊÓƵÎļþµÄ»°£¬Ôò»á´ò¿ªÒ»¸öеIJ¥·Å´°¿Ú¡£
µ¹ÍËÓë¿ì½ø
ÔÚ²¥·ÅÎļþµÄʱºò£¬Äã¿ÉÒÔͨ¹ýÒÔÏÂÈý×é¿ì½Ý¼üÀ´¶Ô²¥·Å½ø³Ì½øÐе¹Í ......
ʵÀý)
ÏÖÔÚÎÒÃÇÀ´ÌÖÂÛ±àдһ¸ö½Å±¾µÄÒ»°ã²½Öè¡£ÈκÎÓÅÐãµÄ½Å±¾¶¼Ó¦¸Ã¾ßÓаïÖúºÍÊäÈë²ÎÊý¡£²¢ÇÒдһ¸öα½Å±¾£¨framework.sh£©£¬¸Ã½Å±¾°üº¬ÁË´ó¶àÊý½Å±¾¶¼ÐèÒªµÄ¿ò¼Ü½á¹¹£¬ÊÇÒ»¸ö·Ç³£²»´íµÄÖ÷Òâ¡£Õâʱºò£¬ÔÚдһ¸öеĽű¾Ê±ÎÒÃÇÖ»ÐèÒªÖ´ÐÐÒ»ÏÂcopyÃüÁ
cp framework.sh myscript
È»ºóÔÙ²åÈë×Ô¼ºµÄº¯Êý¡£
ÈÃÎÒÃÇÔÙ¿´Á½ ......
LinuxÃüÁîÐÐϳ£ÓÃsvnÃüÁî
1¡¢LinuxÃüÁîÐÐϽ«Îļþcheckoutµ½±¾µØĿ¼
¡¡¡¡svn checkout path£¨pathÊÇ·þÎñÆ÷ÉϵÄĿ¼£©
¡¡¡¡ÀýÈ磺svn checkout svn://192.168.1.1/pro/domain
¡¡¡¡¼òд£ºsvn co
¡¡¡¡2¡¢LinuxÃüÁîÐÐÏÂÍù°æ±¾¿âÖÐÌí¼ÓеÄÎļþ
¡¡¡¡svn add fi ......