Ò»¡¢ÏµÍ³ÉèÖÃÓë¹ÜÀí
1.alias
˵Ã÷£ºÎªÃüÁîÉèÖñðÃû¡¢ÏÔʾ±ðÃûÉèÖá£
Óï·¨£ºalias [±ðÃû]=[Ö¸ÁîÃû³Æ]£ºÎª[Ö¸ÁîÃû³Æ]ÆðÒ»¸ö±ðÃû¡£
alias [±ðÃû]£ºÏÔʾ³ö[±ðÃû]Ëù¶ÔÓ¦µÄÃüÁî¡£
alias£ºÏÔʾËùÓбðÃûÉèÖá£
2.apmsleep
˵Ã÷£º½øÈë¹ÒÆð»òµÈ´ý״̬¡£
Óï·¨£ºapmsleep hh:mm
²ÎÊý£ºhh:mmÖ¸¶¨½øÈë¹ÒÆð»òµÈ´ý״̬µÄʱ¼ä¡£
3.authconfig
˵Ã÷£ºÏòÓû§Ìṩһ¸öÅäÖÃ/etc/sysconfig/networkÖеÄNISµÄͼÐνçÃæ¡£
Óï·¨£ºauthconfig back test nostart
²ÎÊý£º back½«authconfigÖеÄCancel°´Å¥¸Ä³ÉBack°´Å¥£» testʹauthconfigÖ»Äܹ»±»rootÔËÐУ¬ÆäËûÓû§ÎÞ·¨±£´æÐ޸ģ» nostartʹauthconfig¸ü¸ÄµÄÉèÖÃÔÚÏµÍ³ÖØÆôºóÉúЧ¡£
4.aumix
˵Ã÷£º¸Ä±äÒôЧÉèÖá£
Óï·¨£ºaumix [-][+|-][<-amount>]]|[[]|R|P|q][-d][-f][-h][-I][-L][-q] [-S]
²ÎÊý£º-ƵµÀ²ÎÊý£¬¶ÔÓÚÿ¸öƵµÀ£¬+/-Ñ¡ÏîÓÃÓÚÔö¼Ó/¼õÉÙÔÀ´µÄÇ¿¶È£º(ͼ)
-dÖ¸¶¨ÒôЧÉ豸Îļþ£¬Ä¬ÈÏÊÇ/dev/mixer£»-fÖ¸¶¨´æ·Å/¶ÁÈ¡É豸µÄÎļþ£»-hʹÓÃʱÏÔʾÐÅÏ¢£»-IÒÔ»¥¶¯·½Ê½ÔËÐÐaumix£¬Ê¹ÓÃͼÐνçÃæ£»-L´ÓS|HOME/.aumixrc»ò/etc/aumixrc¶ÁÈëÉèÖã»-q²éѯËùÓÐÉ豸£¬²¢ÇÒÏÔʾËüÃǵÄλÖã»-S½«ÉèÖôæ·Åµ½S|HOME /.aumixrc¡£
5.bg
˵Ã÷£º ......
RHEL5ÔÚ°²×°VM-wareTools¹ý³ÌÖгöÏÖÈçÏ´íÎó£º
What is the
location of the directory of C header files that match your running kernel?
[/usr/src/linux/include] The directory of kernel headers (version
2.6.18-8.el5xen) does not match
´Ë´íÎóÖ÷ÒªÊÇÏëÕÒLinuxÄں˵İüº¬Í·ÎļþÕÒ²»µ½¡£Òª½â¾ö´ËÎÊÌâÐèÒª°²×°ÄÚºËÔ´´úÂë¡£
1.
Ê×ÏÈÒª²é¿´Äں˰汾ºÅ£º
¡¾root@localhost ~¡¿#
uname -r // ²é¿´Äں˰汾ºÅ»òÕßuname –a
Èç¹ûÊÇRHEL5µÄ»°ÄÚºËÓ¦¸ÃÊÇ
2.6.18-8.el5xen
2. ÒѾ֪µÀ×Ô¼ºµÄÄÚºËÊÇ“2.6.18-8.el5xen”£¬¿ÉÒÔÈ¥´ËÍøÕ¾
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.16.8.tar.gz ÏÂÔØµ½·ûºÏ×Ô¼ºÏµÍ³µÄÄÚºËÔ´Âë¡£
3.
Óá¾root@localhost ~¡¿££tar
zxvf linux-2.6.16.8.tar.gz -C /usr/src
½«Îļþ½âѹµ½Ö¸¶¨Ä¿Â¼/usr/src¡£
4.
½øÈë/usr/srcĿ¼Ï£¬Óá¾root@localhost ~¡¿££mv
linux-2.6.18.8 linux½«½âѹºÃµÄÎļþ¼ÐÃû“linux-2.6.18.8”¸Ä±ä³É“linux”¡£
5.
½øÈë/usr/src/linuxĿ¼Ï¡£·Ö±ðÔËÐУº
make mrproper
make oldconfig
make
Ö´Ðеڶþ¸öÃüÁ ......
ÓÉÓÚSATAÓ²Å̽ÏУ¬ºÜ¶àÇý¶¯ÐèÒª°²×°£¬¿ÉÒÔ½«SATAÓ²ÅÌÄ£Äâ³ÉIDEÓ²ÅÌÀ´Ê¹ÓÓ
ÎÒµÄlinux»·¾³Îª£ºredhat enterprise linux4
Ö÷°åΪ£ºÌ©°²S5372 G2NR-LH
ϵͳÅÌΪÐÂSATAÅÌ£¬²»ÊÇÀϵÄSATAÅÌ¡£
ÖÁÓÚSATAÓ²Å̲»ÄÜÄ£Äâ³ÉIDEÓ²ÅÌÖ÷ÒªÊÇÓÉÁ½¸öÒòËØ¾ö¶¨µÄ£º
1-biosÉèÖ㬰Ñsata¿ØÖÆÆ÷ÉèÖÃΪÔÉú£¨nataive£©Ä£Ê½Ôòsata±»ÈÏ×÷scsiÉ豸£¬pataÄ£Ä⣨legacy£©Ä£Ê½ÔòÈÏ×÷ataÉ豸¡£
2--ÄÚºËÑ¡ÏÄÚºËÖÐÓиöÑ¡ÏîÊÇÔÊÐí£¨½ûÖ¹£©½«scsiÓ°ÉäΪataÉ豸£¬Èç¹ûÔÊÐí£¬ÔòʼÖÕΪata£¨hd£©£¬Èç¹ûbiosÉèÖÃΪnataiveģʽ£¬²¢ÇÒ½ûÖ¹Õâ¸öÑ¡ÏÔòΪsdÉ豸¡£
¶ÔÎÊÌâ1ÔÚBIOSÏ Advanced/advanced chipset controlÏÂÃæÉè³É£º
Serial ATA: Enabled
SATA Controller Mode Option ......
˫ϵͳ°²×°Ê±£¬Linux´ÓÓ²ÅÌÆô¶¯£º
°²×°windows¾Í²»ÔÙ½²ÁË¡£
ÏÂÔØLinuxϵͳ¾µÏñ£¬ÎÒÏÂÔØµÄÊÇCentOS5.3¡£½«Linux¾µÏñ½âѹµ½Ò»¸öfat32·ÖÇøÄ¿Â¼£¨ÎÒµÄÊÇFÅÌ£©¡£
²¢½«¾µÏñÖÐisolinuxĿ¼ÏµÄvmlinuxzºÍinitrd.imgÁ½¸öÎļþcopyµ½FÅÌ£¨ÎÒµÄÊÇFÅÌ£©¡£ÏÂÔØwingrub£¬Ë«»÷°²×°¡£°²×°ºó´ò¿ªwingrub³öÀ´Ò»½çÃæchoose driverÈÃÄãÑ¡ÔñÅÌ·û£¨windowsϵͳµÄÒýµ¼ÅÌ·û£©£¬Ñ¡ÔñCÅÌ£¬µã»÷OK¡£Ñ¡ÔñºóÓÖ³öÀ´¸ö½çÃæ£¬Ñ¡Ôñtools→partition list£¬²é¿´FÅÌ£¨ÎÒµÄÊÇFÅÌ£©¶ÔÓ¦µÄ·ÖÇø£¬ÎÒµÄFÅ̶ÔÓ¦µÄÊÇ(hd0,5)£¬Ò»¶¨Òª¼Çס(hd0,5)¡£hd0ÊǵÚÒ»¿éÓ²ÅÌ£¬5´ú±íÊǵÚ6¸ö·ÖÇø£¬Ò²¾ÍÊÇFÅÌ¡£È»ºótools→install Grub£¬ÔÚsystemdriverÖÐÑ¡ÔñC£¬boot fromÖÐÑ¡Ôñboot.ini£¬titleÖÐËæ±ãÌîд£¬±ÈÈ磺Linux¡£timeoutÖÐÌîд10£¨±íʾ10Ã룩£¬µã»÷install¾ÍOKÁË¡£
¾Í»áÔÚÄãµÄCÅ̸ù϶àÁËGrubÎļþ¼ÐºÍGRLDRÎļþ¡£ÓÃд×Ö°å´ò¿ªGrubϵÄMENU.LST¡£¶ÔÆä½øÐбà¼ÄÚÈÝÊÇ£º
timeout 10
title Linux at (hd0,5)
root (hd0,5)
kernel (hd0,5)/vmlinuz
initrd (hd0,5)/initrd.img
title windows at (hd0,0)
root (hd0,0)
makeactivechainlinux +1
±à¼ºó±£´æ
ÖØÆôϵͳ¡£°²×°LinuxÒªÔÚLinuxÖÐ±à¼Æô¶¯Ïî¡£°²×°Íêºó¾ ......
ºÃ¾Ãûд Blog£¬Ã¦°¡Ê²Ã´µÄ¾Í²»ËµÁË£¬ÀÁÊÇ×î´óµÄÔÒò¡£×î½üæ×ŸøÊµÑéÊÒ×ö¸öÍøÕ¾£¬³ýÁËÎÒÊìϤµÄ Web Design & Development Ö®Í⣬Õâ´ÎÎÒ»¹´î½¨ÁËһ̨ Linux ·þÎñÆ÷¡£Ò»·½ÃæÓÃÀ´·ÅÖÃÎÒÃǵÄÕ¾µã£¬ÁíÒ»·½ÃæÊµÑéÊÒ·Åһ̨·þÎñÆ÷£¬Ò²ÎªÊµÑéÊҵijÉÔ±ÃÇÌṩһЩ¶îÍâµÄ·þÎñ£¬·½±ã¿ÆÑкÍѧϰ¡£
ËäÈ»×ö Web ÎÒÊÇÇá³µÊì·ÁË£¬µ«µ¹ÌÚ Linux ·þÎñÆ÷ÎÒ¾ø¶Ô»¹ÊǸöÐÂÊÖ¡£ËäȻƽʱΪÁË¿ª·¢Ò²Ã»ÉÙµ¹ÌÚ¹ý£¬µ«»ù±¾É϶¼Êǵ÷һϠApache »ò PHP Ö®ÀàµÄÊÂÇé¡£ËùÒÔÏÂÃæÐ´µÄ¶«Î÷Ö»ÊǸö¼Ç¼£¬²»¸Ò°àÃÅŪ¸«£¬·½·¨Ò²¶¼ÊÇ Google À´µÄ£¬Èç¹ûÄúÓÐʲôÒâ¼û½¨Ò飬»¶ÓÄúÌá³öÀ´¡£
±¾ÎÄֻдһÏ´»ù±¾·þÎñÆ÷µÄ²¿·Ö¡£·¢ÐаæÎÒÑ¡ÔñµÄÊÇ Ubuntu£¬ËäÈ»ÎÒÖªµÀ CentOS »òÊÇ RHEL ¿ÉÄÜÐÔÄÜ»á¸üºÃµã£¬µ«±Ï¾¹ Ubuntu ±È½ÏÊìϤҲ±È½Ï¼òµ¥¡£Ubuntu ±¾ÉíÓÐ Server °æ£¬¶øÇÒ¿ÉÒÔ¼¸ºõÎÞÐè¸ÉÔ¤µÄ°²×°ºÃһ̨ LAMP Server£¬µ« Linux ±¾ÉíµÄÀÖȤ¾ÍÔÚÓÚÕÛÌÚ£¬¶øÇÒ¶ÔÓÚ·þÎñÆ÷ÎÒ¸üÏ£ÍûÖªµÀµ½µ×¶¼ÓÐʲô¶«Î÷ÔÚÅÜ£¬ËùÒÔÎÒ¾ö¶¨´Ó´î½¨Ò»¸ö¸É¾»µÄ»ù±¾ÏµÍ³¿ªÊ¼¡£¾¹ýÒ»·¬ Google£¬ÎÒÕÒµ½ÁËÒ»¸ö½üºõ“ÍêÃÀ”µÄ½Ì³Ì£ºMinimal Ubuntu 8.04 Server Install£¬ÏÂÃæµÄ°²×°¹ý³ÌÒ²»ù±¾¾ÍÊǰ´×ÅÕâ¸ö½Ì³ÌÀ´µÄ£¬ÉÔ΢¸Ä½øÂú×ãÁËÒ»ÏÂʵ¼ÊÐ ......
ÔÚLinuxÉϰ²×°oracleµÄʱºò²»Ð¡ÐݲװÁËÁ½´Îlistener, ¸ãµÃlistenerµÄ¶Ë¿ÚºÅ±ä³ÉÁË1522¶ø²»ÊÇȱʡµÄ1521, ¿Í»§¶ËÁ¬Á˺þö¼Ã»ÓÐÁ¬½ÓÉÏ£¬×îºó²Å·¢ÏÖÊÇlistenerµÄ¶Ë¿ÚºÅ²»¶Ô¡£Ò»ÏÂÊÇÎҸıälistener¶Ë¿ÚºÅµÄ²½Ö裺
1. Ê×ÏÈÐèҪֹͣlistener, ʹÓÃÃüÁîlsnrctl stop
2. listenerÍ£Ö¹ÒԺ󣬵½ÄãµÄ$ORACLE_HOME/network/adminÏÂÕÒµ½listener.oraÕâ¸öÎļþ
3. ÓÃvi±à¼Õâ¸öÎļþ£¬Äã¿ÉÒÔÔÚÕâÀï²é¿´listenerµÄ¶Ë¿ÚºÅ£¬È»ºóÐ޸ijÉÄãÏëÒªµÄÖµ£¬ÕâÀïÊÇÓÉ1522¸Ä³É1521¡£
4. ±£´æÐ޸ĺõÄÎļþ
5. Æô¶¯sqlplusÒÔSYSTEMÕË»§µÇ¼Êý¾Ý¿â£¬sqlplus SYSTEM/Password@***
6. Ö´ÐÐÈçÏÂÃüÁ
ALTER SYSTEM SET LOCAL_LISTENER = "(ADDRESS=(PROTOCOL=TCP)(HOST=oraclehost)(PORT=1521))";
ALTER SYSTEM REGISTER;
7. Ö´ÐÐlsnrctl statusÑéÖ¤listener״̬¡£
¸Ä±äһϿͻ§¶Ë»òÕß·þÎñ¶ËÏà¹ØµÄtnsnames.oraÎļþÀïÃæ¶¨ÒåµÄ¶Ë¿ÚºÅ£¬ÔÚ¿Í»§¶ËÓÃsqlplusÑé֤һϵǼ
......
ÔÚLinuxÉϰ²×°oracleµÄʱºò²»Ð¡ÐݲװÁËÁ½´Îlistener, ¸ãµÃlistenerµÄ¶Ë¿ÚºÅ±ä³ÉÁË1522¶ø²»ÊÇȱʡµÄ1521, ¿Í»§¶ËÁ¬Á˺þö¼Ã»ÓÐÁ¬½ÓÉÏ£¬×îºó²Å·¢ÏÖÊÇlistenerµÄ¶Ë¿ÚºÅ²»¶Ô¡£Ò»ÏÂÊÇÎҸıälistener¶Ë¿ÚºÅµÄ²½Ö裺
1. Ê×ÏÈÐèҪֹͣlistener, ʹÓÃÃüÁîlsnrctl stop
2. listenerÍ£Ö¹ÒԺ󣬵½ÄãµÄ$ORACLE_HOME/network/adminÏÂÕÒµ½listener.oraÕâ¸öÎļþ
3. ÓÃvi±à¼Õâ¸öÎļþ£¬Äã¿ÉÒÔÔÚÕâÀï²é¿´listenerµÄ¶Ë¿ÚºÅ£¬È»ºóÐ޸ijÉÄãÏëÒªµÄÖµ£¬ÕâÀïÊÇÓÉ1522¸Ä³É1521¡£
4. ±£´æÐ޸ĺõÄÎļþ
5. Æô¶¯sqlplusÒÔSYSTEMÕË»§µÇ¼Êý¾Ý¿â£¬sqlplus SYSTEM/Password@***
6. Ö´ÐÐÈçÏÂÃüÁ
ALTER SYSTEM SET LOCAL_LISTENER = "(ADDRESS=(PROTOCOL=TCP)(HOST=oraclehost)(PORT=1521))";
ALTER SYSTEM REGISTER;
7. Ö´ÐÐlsnrctl statusÑéÖ¤listener״̬¡£
¸Ä±äһϿͻ§¶Ë»òÕß·þÎñ¶ËÏà¹ØµÄtnsnames.oraÎļþÀïÃæ¶¨ÒåµÄ¶Ë¿ÚºÅ£¬ÔÚ¿Í»§¶ËÓÃsqlplusÑé֤һϵǼ
......