Linuxѧϰ֮——redhat5ÖÐÎÄÂÒÂëÎÊÌâ½â¾ö
ǰЩÌìÔÚ×Ô¼ºµÄ±¾±¾ÉÏ×°ÁËÐéÄâ»ú£¬²¢°²×°ÁËredhat5£¬Ò»Çи㶨֮ºó·¢ÏÖ´ò¿ªÖÐÎÄÍøÒ³²»ÄÜÕý³£ÏÔʾ¡£Æô³õÒÔΪÊÇϵͳ±àÂëÎÊÌ⣬¿É¸ü¸ÄÁËϵͳ±àÂëºóÎÊÌâÒÀÈ»´æÔÚ£¬¶øÇÒϵͳµÄÎÄ×ÖÒ²±ä³ÉÂÒÂë¡£¿´À´²»ÊǼòµ¥µÄȱʡ±àÂëÎÊÌ⣬һ¶¨ÊÇϵͳûÓÐÖÐÎÄ°üµÄÔÒò¡£ÓÚÊǺõÅܵ½ÍøÉÏËÑÑ°ÖÐÎÄ°üµØÖ·£¬·¢ÏÖredhat5¹âÅÌÖдøÓÐÕâЩ°ü¡£ºÃÁË£¬·Ï»°²»¶à˵ÁË£¬ÏÂÃæ˵һÏÂÎҵݲװ¹ý³Ì£º
1¡¢ÏÈÕÒµ½ÐèÒªµÄrpm°ü£º
ÖÐÎÄÖ§³Ö
fonts-chinese-3.02-12.el5.noarch.rpm
m17n-db-common-cjk-1.3.3-46.el5.noarch.rpm
m17n-db-chinese-1.3.3-46.el5.noarch.rpm
£¨×¢£ºÕâЩ°ü°²×°Íêºó¾Í¿ÉÒÔÏÔʾÖÐÎÄÁË£©
ÖÐÎÄÊäÈë·¨
scim-libs-1.4.4-39.el5.i386.rpm
scim-1.4.4-39.el5.i386.rpm
scim-chinese-standard-0.0.2-1.el5.i386.rpm
scim-tables-0.5.6-7.i386.rpm
scim-tables-chinese-0.5.6-7.i386.rpm
scim-pinyin-0.5.91-15.el5.i386.rpm
2¡¢¹ÒÔعâÇý£º
1¡·ÔÚ/mntĿ¼ÏÂн¨Ä¿Â¼£¬ÓÃÓÚ¹ÒÔعâÇý£»ÃüÁmkdir /mnt/cdrom (н¨Ä¿Â¼ÃûΪcdrom)£»
2¡·¹ÒÔعâÇýÃüÁmount -t auto /dev/cdrom /mnt/cdrom
ÏÔʾ£ºmount: block device /dev/cdrom is write-protected, mounting read-only --¹ÒÔسɹ¦
3¡¢ÖÐÎÄ°üÔÚ¹âÇýServerĿ¼ÖУ¬°´ÉÏÃæ°üÁгöµÄ˳Ðò°²×°
°²×°ÃüÁ
rpm -ivh Îļþ·¾¶ //°´Â·¾¶°²×°²¢ÏÔʾ½ø¶È
rpm -ivh --test Îļþ·¾¶ //ÓÃÀ´¼ì²éÒÀÀµ¹Øϵ£»²¢²»ÊÇÕæÕýµÄ°²×°
Ïà¹ØÎĵµ£º
²éÕÒĿ¼£ºfind /£¨²éÕÒ·¶Î§£© -name '²éÕҹؼü×Ö' -type d
²éÕÒÎļþ£ºfind /£¨²éÕÒ·¶Î§£© -name ²éÕҹؼü×Ö -print
Èç¹ûÐèÒª¸ü½øÒ»²½µÄÁ˽⣬¿ÉÒԲο´LinuxµÄÃüÁîÏê½â¡£
ÕâÀïÕª³ÈçÏ£º
·find path -option [ -print ] [ -exec -ok command ] {} \;
#-print ½«²éÕÒµ½µÄÎļþÊä³öµ½±ê×¼Êä³ö
#-exec command { ......
LinuxÏÂracµÄ°²×°
1£¬»·¾³×¼±¸
192.168.5.10 rac1
192.168.5.100 prac1
10.20.0.10 vrac1
192.168.5.20 rac2
192.168.5.200 prac2
10.20.0.20 vrac2
2.Íø¿¨ÉèÖÃÇ°ÌáÊÇÁ½¿éÍø¿¨
cd /etc/sysconfig/network-scripts
& ......
ÎÒÕâÀï˵µÄioctlº¯ÊýÊÇÔÚÇý¶¯³ÌÐòÀïµÄ£¬ÒòΪÎÒ²»ÖªµÀ»¹ÓÐûÓбðµÄ³¡ºÏÓõ½ÁËioctl£¬ ËùÒԾ͹涨ÁËÎÒÃÇÌÖÂ۵ķ¶Î§¡£ÎªÊ²Ã´ÒªÐ´ÆªÎÄÕÂÄØ£¬ÊÇÒòΪÎÒÇ°Ò»Õó×Ó±»ioctl¸ø¸ã»ìÁË£¬Õ⼸Ìì²ÅŪÃ÷°×Ëü£¬ÓÚÊÇÔÚÕâÀïÇåÀíÒ»ÏÂÍ·ÄÔ¡£
Ò»¡¢ ʲôÊÇioctl¡£
ioctlÊÇÉ豸Çý¶¯³ÌÐòÖжÔÉ豸µÄI/OͨµÀ½øÐйÜÀíµÄº¯Êý¡£Ëùν¶ÔI/OͨµÀ½øÐÐ ......
bashrcÓëprofileµÄÇø±ð
Òª¸ãÇåbashrcÓëprofileµÄÇø±ð£¬Ê×ÏÈҪŪÃ÷°×ʲôÊǽ»»¥Ê½shellºÍ·Ç½»»¥Ê½shell£¬Ê²Ã´ÊÇlogin shell ºÍnon-login shell¡£
½»»¥Ê½Ä£Ê½¾ÍÊÇshellµÈ´ýÄãµÄÊäÈ룬²¢ÇÒÖ´ÐÐÄãÌá½»µÄÃüÁî¡£ÕâÖÖģʽ±»³Æ×÷½»»¥Ê½ÊÇÒòΪshellÓëÓû§½øÐн»»¥¡£ÕâÖÖģʽҲÊÇ´ó¶àÊýÓû§·Ç³£ÊìϤµÄ£ºµÇ¼¡¢Ö´ÐÐһЩÃüÁǩÍË¡ ......
ÕâÕó×ÓÔÚlinuxϵÄÒ»¸öÏîÄ¿ÐèÒªÓõ½epollÀ´³ÐÊÜÍøÂçµÄ¸ß¸ºÔØ£¬µ«ÊÇÔÚʹÓõĹý³ÌÖоÍÓöµ½ÁËһЩÎÊÌâ¡£
ÔÚÕû¸ö¹ý³ÌÖУ¬ÎÒÊÇÓÃEPOLL µÄ±ßÔµ´¥·¢Ä£Ê½À´ÊµÏÖÎÒÏëÒªµÄ¹¦ÄÜ¡£
ÎÒÊÇÕâÑùʵÏֵģºÔÚEPOLLÀïÃæ°Ñ¼àÌýµÄÃèÊö·û¸ø¼ÓÁ˽øÈ¥£¬È»ºóµ÷ÓÃepoll_waitÀ´¶Ô¿Í»§¶ ......