Linux¸ùÎļþϵͳ½á¹¹ÔÙÈÏʶ
Áõ½¨ÎÄ£¨http://blog.csdn.net/keminlau £©
INTRO
¾¡¹ÜLinuxµÄ¸ùÎļþϵͳÔÚÐÎʽ±íÏÖÉÏÊÇÒ»ÌåµÄ£¨ËùÓÐÊý¾ÝĿ¼¾ùΪ¸ùĿ¼ÏµÄ×ÓĿ¼£©£¬µ«Êµ¼ÊËüÃÇÊǶà¸ö²»Í¬µÄ¡¾Âß¼Ö÷Ìå¡¿£¨ÎªÁËʵÏÖ²»Í¬µÄÂß¼¹¦ÄÜ£©×éºÏÔÚÒ»ÆðµÄ£¬²Î¼ûÏÂͼ¡£ÕâÒ²½âÊÍÁËΪʲôÓÐЩ½Úµã£¨Èç/var£©¿ÉÒÔ¹Ò½Óµ½²»Í¬´ÅÅÌ·ÖÇøÉÏ¡£»®·ÖÕâЩÂß¼²¿·Ö¶ÔÇåÎú°ÑÎÕ¸ùÎļþϵͳ½á¹¹£¬ÒÔ¼°Õû¸öϵͳµÄÐÐΪ¶¼ÓкܴóµÄºÃ´¦¡£ÔÚ»®·Ö֮ǰ£¬ÏÈ¿´¿´“Îļþϵͳ½á¹¹±ê×¼”¡£
Îļþϵͳ½á¹¹±ê×¼
Îļþϵͳ½á¹¹±ê×¼ £¨Filesystem Hierarchy Standard £¬Ï³ÆFHS£©¶¨Á¢µÄÄ¿±êÖ®Ò»ÊÇ£¬³ÌÐò¿É°´ÓÃ;ÐÔÖʱ»°²×°µ½Ö¸¶¨µÄλÖã¬Óû§Ò²ÄÜÔ¤Öª³ÌÐòµÄ°²×°µÄÎļþºÍĿ¼µÄλÖá£FHSͨ¹ý¶¨ÒåÎļþϵͳ¸÷²¿·ÖµÄºÒå¡¢ÓÃ;£¬ÔÙ¼ÓÉÏÁоÙËùÓеÄÌØÊâÇé¿ö£¬ÈçÀúÊ·ÒÅÁôÎÊÌ⣬´ïµ½ÁËÕâ¸öÄ¿±ê¡£
LINUXϵͳµÄÊý¾ÝÎļþ¿ÉÒÔ¸ù¾Ý¡¾Ë«Öرê×¼¡¿À´¶ÔËüÃÇ·ÖÀࣺ¹²ÏíµÄÓë¶ÀÏíµÄ£¨shareable vs. unshareable£©¡¢±ä»¯µÄºÍ¾²Ì¬µÄ£¨variable vs. static£©¡£Èç¹ûÊý¾ÝÎļþÎÞ·¨°´ÕÕË«ÖØ±ê×¼·ÖÀ࣬ËüÃDZØÐëÁíÆðĿ¼´æ·Å£¬ÕâÑù×öµÄÔÒòÊÇ¿ÉÒ԰Ѳ»Í¬¡¾Ê¹ÓÃÐÔÖÊ¡¿£¨usage characteristics£©µÄÊý¾ÝÎļþ·Ö¿ª²»Í¬Îļþϵͳ£¨´ÅÅÌ·ÖÇø£ ......
×î½ü¿´ÁËһЩLinuxÃüÁîÐеÄÎÄÕ£¬ÔÚϵͳÐÅÏ¢²é¿´·½ÃæÑ§µ½²»ÉÙÃüÁî¡£ ÏëÆðÒÔǰд¹ýµÄһƪÆäʵLinuxÕâÑùÓøü¼òµ¥
£¬
·¢ÏÖÕâЩϵͳÐÅÏ¢²é¿´ÃüÁîÒ²¿ÉÒÔ×ܽá³öһƪССµÄ¶«Î÷À´ÁË¡£
ÁíÍâÕâÀï
»¹Óзdz£¶àµÄÃüÁ ¿ÉÒÔ×÷Ϊ²Î¿¼¡£
ϵͳ
# uname -a # ²é¿´ÄÚºË/²Ù×÷ϵͳ/CPUÐÅÏ¢
# head -n 1 /etc/issue # ²é¿´²Ù×÷ϵͳ°æ±¾
# cat /proc/cpuinfo # ²é¿´CPUÐÅÏ¢
#lsb_release -a #²é¿´°æ±¾ÐÅÏ¢
# hostname # ²é¿´¼ÆËã»úÃû
# lspci -tv # ÁгöËùÓÐPCIÉ豸
# lsusb -tv # ÁгöËùÓÐUSBÉ豸
# lsmod # Áгö¼ÓÔØµÄÄÚºËÄ£¿é
# env # ²é¿´»·¾³±äÁ¿
×ÊÔ´
# free -m # ²é¿´ÄÚ´æÊ¹ÓÃÁ¿ºÍ½»»»ÇøÊ¹ÓÃÁ¿
# df -h # ²é¿´¸÷·ÖÇøÊ¹ÓÃÇé¿ö
# du -sh <Ŀ¼Ãû> # ²é¿´Ö¸¶¨Ä¿Â¼µÄ´óС
# grep MemTotal /proc/meminfo # ²é¿´ÄÚ´æ×ÜÁ¿
# grep MemFree /proc/meminfo # ²é¿´¿ÕÏÐÄÚ´æÁ¿
# uptime # ²é¿´ÏµÍ³ÔËÐÐʱ¼ä¡¢Óû§Êý¡¢¸ºÔØ
# cat /proc/loadavg # ²é¿´ÏµÍ³¸ºÔØ
´ÅÅ̺ͷÖÇø
# mount | ......
ÅäÖÃÎļþÒ»ÀÀ±í ÎļþλÖü°Ãû³Æ,×÷ÓÃ
¡¡¡¡/etc/rc.d/rc.sysinit
¡¡¡¡ÏµÍ³Æô¶¯Ê±µÄ¹«Ó÷þÎñÅäÖÃ
¡¡¡¡/etc/rc.d/rc.local
¡¡¡¡ÏµÍ³Æô¶¯Ê±µÄ±¾µØ·þÎñÅäÖÃ
¡¡¡¡/etc/bashrc¡¢/etc/profile
¡¡¡¡bash shellµÄ¹«ÓÃÅäÖÃ
¡¡¡¡/home/username/.bashrc
¡¡¡¡¸÷Óû§Ë½ÈËbash shellÅäÖÃ
¡¡¡¡/etc/securetty
¡¡¡¡Öն˰²È«ÉèÖÃ
¡¡¡¡/etc/hosts
¡¡¡¡Ö÷»úÃûÓëipµØÖ·µÄ¶ÔÓ¦Îļþ
¡¡¡¡/etc/resolv.conf
¡¡¡¡dns·þÎñÆ÷ÅäÖÃ
¡¡¡¡/etc/squid.conf»ò/etc/squid/squid.conf
¡¡¡¡squid´úÀí·þÎñÆ÷Èí¼þÅäÖÃ
¡¡¡¡/etc/smb.conf»ò/etc/samba/smb.conf
¡¡¡¡»ùÓÚsmbµÄÍøÉÏÁÚ¾ÓÅäÖÃ
¡¡¡¡/etc/dhcpd.conf
¡¡¡¡linuxϵÄdhcp·þÎñÆ÷ÅäÖÃÎļþ
¡¡¡¡/etc/filesystems
¡¡¡¡ÏµÍ³Ö§³ÖµÄÎļþϵͳÁбí
¡¡¡¡/etc/fstab
¡¡¡¡µ±Ç°ÏµÍ³ÖÐÒѼ¤»î·ÖÇøµÄÐÅÏ¢
¡¡¡¡/etc/host.conf
¡¡¡¡Ö¸¶¨ÏµÍ³ËÑË÷dns¼Ç¼µÄÅäÖÃÎļþ
¡¡¡¡/etc/lilo.conf
¡¡¡¡Æô¶¯³ÌÐòliloµÄÅäÖÃÎļþ
/etc/grub.conf
Æô¶¯³ÌÐògrubµÄÅäÖÃÎļþ£¬->/boot/grub/grub.conf
/etc/syslog.conf
ϵͳÈÕÖ¾ÎļþÅäÖÃÎļþ
/etc/sysctl.con ......
Ò»¡¢Æô¶¯
1.#su - oracle Çл»µ½oracleÓû§ÇÒÇл»µ½ËüµÄ»·¾³
2.$lsnrctl status ²é¿´¼àÌý¼°Êý¾Ý¿â״̬
3.$lsnrctl start Æô¶¯¼àÌý
4.$sqlplus / as sysdba ½øÈësqlplus
5.SQL>conn / as sysdba ÒÔDBAÉí·ÝµÇ¼
6.SQL>startup Æô¶¯db
¶þ¡¢Í£Ö¹
1.#su - oracle Çл»µ½oracleÓû§ÇÒÇл»µ½ËüµÄ»·¾³
2.$lsnrctl stop &nbs ......
Ò»¡¢Æô¶¯
1.#su - oracle Çл»µ½oracleÓû§ÇÒÇл»µ½ËüµÄ»·¾³
2.$lsnrctl status ²é¿´¼àÌý¼°Êý¾Ý¿â״̬
3.$lsnrctl start Æô¶¯¼àÌý
4.$sqlplus / as sysdba ½øÈësqlplus
5.SQL>conn / as sysdba ÒÔDBAÉí·ÝµÇ¼
6.SQL>startup Æô¶¯db
¶þ¡¢Í£Ö¹
1.#su - oracle Çл»µ½oracleÓû§ÇÒÇл»µ½ËüµÄ»·¾³
2.$lsnrctl stop &nbs ......
http://inthirties.com:90/thread-918-3-1.html
This article describes the installation of
Oracle 10g release 2 (10.2.0.1) RAC on Linux (Oracle Enterprise Linux
4.5) using NFS to provide the shared storage.
Introduction
Download Software
Operating System Installation
Oracle Installation Prerequisites
Create Shared Disks
Install the Clusterware Software
Install the Database Software
Create a Database using the DBCA
TNS Configuration
Check the Status of the RAC
Direct and Asynchronous I/O
IntroductionNFS is an abbreviation of Network File System, a
platform independent technology created by Sun Microsystems that allows
shared access to files stored on computers via an interface called the
Virtual File System (VFS) that runs on top of TCP/IP. Computers that
share files are considered NFS servers, while those that access shared
files are considered NFS clients. An individual computer can be either
an NFS server, a NFS client or both.
We can use NFS to provide sha ......
http://inthirties.com:90/thread-918-3-1.html
This article describes the installation of
Oracle 10g release 2 (10.2.0.1) RAC on Linux (Oracle Enterprise Linux
4.5) using NFS to provide the shared storage.
Introduction
Download Software
Operating System Installation
Oracle Installation Prerequisites
Create Shared Disks
Install the Clusterware Software
Install the Database Software
Create a Database using the DBCA
TNS Configuration
Check the Status of the RAC
Direct and Asynchronous I/O
IntroductionNFS is an abbreviation of Network File System, a
platform independent technology created by Sun Microsystems that allows
shared access to files stored on computers via an interface called the
Virtual File System (VFS) that runs on top of TCP/IP. Computers that
share files are considered NFS servers, while those that access shared
files are considered NFS clients. An individual computer can be either
an NFS server, a NFS client or both.
We can use NFS to provide sha ......
ÈçºÎÓÃSQLÓïÑÔÑ¡Ôñ±íÖеĵڶþÌõµÚÈýÌõµÚNÌõ¼Ç¼
--IDΪΨһÐÔ¾ÍÐÐÁË
select top 1 * from table
where ID not in(select top 1 ID from table)--µÚ2Ìõ
select top 1 * from table
where ID not in(select top 2 ID from table)--µÚ3Ìõ
......