linux»·¾³±äÁ¿Ïà¹Ø
ÎÒÃÇÔÚLinuxÏ°²×°ÏµÍ³Èí¼þµÄʱºò,¾³£Óöµ½Ò»Ð©ÏµÍ³»·¾³±äÁ¿ÅäÖõÄÎÊÌ⡣ʲôÊÇ»·¾³±äÁ¿£¿ÈçºÎ¶¨ÖÆ»·¾³±äÁ¿£¿ÎÒ½«ÔÚÏÂÃæ×öһЩ½éÉÜ¡£
Ò»¡¢Ê²Ã´ÊÇ»·¾³±äÁ¿£¿
LinuxÊÇÒ»¸ö¶àÓû§µÄ²Ù×÷ϵͳ¡£¶àÓû§Òâζ×Åÿ¸öÓû§µÇ¼ϵͳºó£¬¶¼ÓÐ×Ô¼º×¨ÓõÄÔËÐл·¾³¡£¶øÕâ¸ö»·¾³ÊÇÓÉÒ»×é±äÁ¿Ëù¶¨Òå,Õâ×é±äÁ¿±»³ÆΪ»·¾³±äÁ¿¡£Óû§¿ÉÒÔ¶Ô×Ô¼ºµÄ»·¾³±äÁ¿½øÐÐÐÞ¸ÄÒÔ´ïµ½¶Ô»·¾³µÄÒªÇó¡£
¶þ¡¢¶¨ÖÆ»·¾³±äÁ¿
»·¾³±äÁ¿ÊǺÍShell½ôÃÜÏà¹ØµÄ£¬ËüÊÇͨ¹ýShellÃüÁîÀ´ÉèÖõġ£»·¾³±äÁ¿ÓÖ¿ÉÒÔ±»ËùÓе±Ç°Óû§ËùÔËÐеijÌÐòËùʹÓ᣶ÔÓÚbashÀ´Ëµ£¬¿ÉÒÔͨ¹ý±äÁ¿ÃûÀ´·ÃÎÊÏàÓ¦µÄ»·¾³±äÁ¿¡£
ÏÂÃæͨ¹ý¼¸¸öʵÀýÀ´ËµÃ÷
1.ÏÔʾ»·¾³±äÁ¿HOME
$ echo $HOME
/home/admin
2.ÉèÖÃÒ»¸öеĻ·¾³±äÁ¿NAME
$ export NAME=”RaidCheng”
$ echo $NAME
RaidCheng
3.ʹÓÃenvÃüÁîÏÔʾËùÓеĻ·¾³±äÁ¿
$ env
HOSTNAME=test
TERM=vt100
SHELL=/bin/bash
HISTSIZE=1000
SSH_CLIENT=202.xxx.xxx.xxx 53694 22
CATALINA_BASE=/usr/local/jakarta-tomcat
SSH_TTY=/dev/pts/0
ANT_HOME=/usr/local/ant
JAVA_OPTS=-server
USER=admin
…
4.ʹÓÃsetÃüÁîÏÔʾËùÓб¾µØ¶¨ÒåµÄShell±äÁ¿
$ set
BASH=/bin/bash
BASH_VERSINFO=([0]=”2″ [1]=”05b” [2]=”0″ [3]=”1″ [4]=”release” [5]=”i386-redhat-linux-gnu”)
BASH_VERSION=’2.05b.0(1)-release’
CATALINA_BASE=/usr/local/jakarta-tomcat
CATALINA_HOME=/usr/local/jakarta-tomcat
…
5.ʹÓÃunsetÃüÁîÀ´Çå³ý»·¾³±äÁ¿
$ export NAME=”RaidCheng”
$ echo $NAME
RaidCheng
$ unset NAME
$ echo $NAME
6.ʹÓÃreadonlyÃüÁîÉèÖÃÖ»¶Á±äÁ¿
$ export NAME=”RaidCheng”
$ readonly NAME
$ unset NAME
-bash: unset: NAME: cannot unset: readonly variable
$ NAME=”New” #»á·¢ÏÖ´ËÒ²±äÁ¿²»Äܱ»ÐÞ¸Ä
-bash: TEST: readonly variable
Èý¡¢³£¼ûµÄ»·¾³±äÁ¿
PATH¡¡¡¡¡¡¡¡¡¡¡¡¾ö¶¨ÁËshell½«µ½ÄÄЩĿ¼ÖÐÑ°ÕÒÃüÁî»ò³ÌÐò
HOME¡¡¡¡¡¡¡¡¡¡¡¡µ±Ç°Óû§Ö÷Ŀ¼
HISTSIZE¡¡¡¡¡¡¡¡ÀúÊ·¼Ç¼Êý
LOGNAME ¡¡¡¡¡¡¡¡µ±Ç°Óû§µÄµÇ¼Ãû
HOSTNAME¡¡¡¡¡¡¡¡Ö¸Ö÷»úµÄÃû³Æ
SHELL ¡¡¡¡¡¡¡¡¡¡Ç°Óû§ShellÀàÐÍ
LANGUGE ¡¡¡¡¡¡¡¡ÓïÑÔÏà¹ØµÄ»·¾³±äÁ¿£¬¶àÓïÑÔ¿ÉÒÔÐ޸Ĵ˻·¾³±äÁ¿
MAIL¡¡¡¡¡¡¡¡¡¡¡¡µ±Ç°Óû§µÄÓʼþ´
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
<?php
/**
* ʹÓù²ÏíÄÚ´æµÄPHPÑ»·ÄÚ´æ¶ÓÁÐʵÏÖ
* Ö§³Ö¶à½ø³Ì, Ö§³Ö¸÷ÖÖÊý¾ÝÀàÐ͵Ĵ洢
* ×¢: Íê³ÉÈë¶Ó»ò³ö¶Ó²Ù×÷,¾¡¿ìʹÓÃunset(), ÒÔÊÍ·ÅÁÙ½çÇø
*
* @author wangbinandi@gmail.com
* @created 2009-12-23
*/
class SHMQueue
{
private $maxQSize = 0; // ¶ÓÁÐ×î´ó³¤¶È
private $front = 0; ......
ÒÔÇ°Ò»Ö±¸ãC++½øÐÐC/S¿ª·¢£¬Ôø¾µÄÏë·¨ÊÇÈç¹ûÓлú»á£¬Ñ§Ñ§¸ãÍøÕ¾ºÍǶÈëʽ¿ª·¢
ûÏëµ½ÕÒµ½¹¤×÷µÄµÚ2Ìì¾ÍÓÐÁË×öÍøÕ¾µÄ»ú»á£¬Ò²×¬µ½ÁË×Ô¼º´óѧÆÚ¼ä×î¸ßµÄÒ»·Ý¹¤×Ê£¬10Ìì1000¿é
ÔÚʲôµÄ¶¼²»»áµÄÇé¿öÏ£¬¾¡È»´ðÓ¦ÈËÊ´¦µÄÀÏʦһ¸öÐÇÆÚдºÃÍøÕ¾µÄºǫ́
ÎÒ³ÐÈÏÕÒµ½¹¤×÷ºó×Ô¼ºÊÇÓеã¿ñÁË£¬ºÜ¶àÊÂûעÒâµ½£¬ºÜ¶àʺó»Ú²»ÁË¡£¡£¡£
......
Êä³öµ½ÆÁĻͬʱ±£´æµ½Îļþ:
cat outfile | tee savefile
CPUʹÓÃÂÊ¡¢ÄÚ´æʹÓÃÂÊ£º
top¡¢
vmstat -n 1
IOʹÓÃÂÊ£º
iostat
ÍøÂç״̬£º
netstat
²é¿´Îļþϵͳ´ò¿ªµÄ¾ä±ú£º
lsof
²é¿´Îļþ»òsocketµÄËùÓÐÕߣº
fuser
½âѹrpm°ü£º
rpm -ivh file.rpm
²éÕÒ°üÊÇ·ñ±»ÏµÍ³°²×°£º
rpm -qal | grep file ......
°²×°oralce10g R1(10.1)²½Öè·½·¨£º
µÚÒ»²¿·Ö£º
Ò». Ó²¼þ»·¾³£º
1. RAM£ºÖÁÉÙ512M
2. ½»»»·ÖÇø´óСÖÁÉÙ1G£¨»òÕßÊÇÄÚÔÚµÄ2±¶£©
3./tmpĿ¼ ÖÁÉÙÓÐ400M¿ÕÏпռä
4. oracleÈí¼þ°²×°¿Õ¼äÖÁÉÙÔÚ1.5G--3GÖ®¼ä£¨ÒÀ¾Ý°²×°oracleÀàÐͶø¶¨£©
&nbs ......