Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ :

linux shellÖк¯Êý²ÎÊý¼°Æä±äÁ¿

linuxÖеÄSHELLº¯ÊýÊÇ¿ÉÒÔ´ø²ÎÊýµÄ.
====´úÂë===
#!/bin/bash
function show()
{
echo $0        #·µ»Ø½Å±¾±¾ÉíÃû×Ö¶ø²»ÊǺ¯ÊýÃû
echo $1        #·µ»Øµ÷ÓÃʱµÄµÚÒ»¸ö²ÎÊý
.
.
.
echo $9         #·µ»Øµ÷ÓÃʱµÄµÚ¾Å¸ö²ÎÊý
}
echo "Begin"   #³ÌÐò¿ªÊ¼
show             #²»´ø²ÎÊýµÄµ÷Ó÷µ»Øshell±¾ÉíµÄÃû×Ö
show local     #´ø²ÎÊýµ÷ÓÃ.·µº¯Êý±¾ÉíµÄÃû×Ö¼Ó²ÎÊýlocal
####end#####
ÐèҪעÒâµÄÊÇ:
Ïòº¯Êý´«µÝ²ÎÊý¾ÍÏñÔÚÒ»°ã½Å±¾ÖÐʹÓÃÌØÊâ±äÁ¿$1£¬$2Ò»Ñù...º¯ÊýÈ¡µÃËù´«²ÎÊýºó,½«Ô­Ê¼²ÎÊý´«»Øshell½Å±¾,Òò´Ë×îºÃÏÈÔÚº¯ÊýÄÚÖØÐÂÉèÖñäÁ¿±£´æËù´«µÄ²ÎÊý.ÕâÑùÈç¹ûº¯ÊýÓÐÒ»µã´íÎó,¾Í¿ÉÒÔͨ¹ýÒѾ­±¾µØ»¯µÄ±äÁ¿ÃûѸËÙ¼ÓÒÔ¸ú×Ù.
»¹ÓбäÁ¿µÄ×÷ÓÃÓò:
º¯ÊýÄÚ²¿±äÁ¿×÷ÓÃÓòÖ»ÊÇÔÚº¯ÊýÄÚ²¿
¶øÖ÷SHELL±äÁ¿µÄ×÷ÓÃÓòÔÚÕû¸öshellÖÐ...°üÀ¨Æäº¯Êý
»¹Óоֲ¿±äÁ¿ÉùÃ÷·½Ê½:
local valuename=value
´ËÉùÃ÷¸ñʽµÄ±äÁ¿Ö»ÄÜÔÚ±äÁ¿ÉùÃ÷²¿·ÖʹÓÃ....
˳±ãÍÆ¼öÒ» ......

´¦ÀíÈÕ³£ÊÂÎñµÄ Linux ³ÌÐòºÍËüÃǵÄÅäÖÃ

´¦ÀíÈÕ³£ÊÂÎñµÄ Linux ³ÌÐòºÍËüÃǵÄÅäÖÃ
ÎÒÒ»°ãÔÚÎÒµÄ PC ÉÏʹÓà Linux ϵͳ¡£
ÏÂÃæÁгöÎÒ³£ÓõÄһЩ Linux ³ÌÐò¡£Ò»¸öÁбíÀï¿ÉÄÜÓкܶ࣬ÄÇÊÇΪÁË·½±ãÄãÀ´Ñ¡Ôñ£¬ÎÒÁгöÁ˱ȽÏÐŵùýµÄ¡£µ«ÆäʵºÜ¶àÖ»ÓеÚÒ»¸öÊÇÎÒÕæÕýÔÚÓõģ¬ÒòΪÎÒ²»Ï²»¶ÊÔÓóÌÐò¡£
Shell: bash¡£Ëü½áºÏÁË csh ºÍ ksh µÄÓŵ㣬²¢ÇÒÓÐ readline ¹¦ÄÜ£¬Äã¿ÉÒÔËæÒâ°ó¶¨×Ô¼ºµÄ¼üÅÌ£¬Ê¹Óà emacs »òÕß vi µÄ·½Ê½¶¼¿ÉÒÔ°ïÖúÄã¸ßЧµÄÊäÈëÃüÁîÐС£info bash ¿ÉÒԵõ½·Ç³£ÏêϸµÄ bash ˵Ã÷Ê飬ΪÁ˸ßЧµÄʹÓà bash£¬Äã×îºÃ¿´¿´Õâ¸ö¡£Äã¿ÉÒÔ°´ÕÕÕâ¸ö˵Ã÷×Ô¼ºÐ´Ò»¸ö .bashrc£¬Ä㻹¿ÉÒÔдһ¸ö .inputrc À´ÅäÖà readline ¿â£¬ÕâÑùÆäËüʹÓà readline µÄ³ÌÐòÒ²¿ÉÒÔʹÓÃͬÑùµÄ·½·¨ÊäÈ룬·Ç³£ºÃ¡£
Äã¿ÉÒÔ¿´¿´ÎÒдµÄÒ»¸ö readline½éÉÜ ¡£
±à¼­Æ÷£º Emacs, VIM¡£
Emacs ÊǷdz£Ç¿´óÖÇÄܵı༭Æ÷£¬ÊÇÊÀ½çÉÏ×îÇ¿µÄ£¬ËüÓÐÓÀÔ¶ÍÚ¾ò²»ÍêµÄÄÜÁ¦¡£ËùÒÔÎÒµ±È»ÍƼö Emacs¡£ Emacs ÓкܶàÖÖ£¬Äã¿ÉÒÔ¸ù¾ÝÐèҪѡÔñ GNU Emacs, Emacs-Scheme, XEmacs, Edwin, Hemlock, ... ÎÒÓõÄÊÇ GNU Emacs.
VIM ÊÇ vi µÄ¸Ä½ø£¬½¨ÒéÊìϤһÏ VIM£¬ÒòΪºÜ¶àÆäËü³ÌÐò±ÈÈç tin, Mutt, Firebird BBS ʹÓÃÀàËÆ VIM µÄ¼ü°ó¶¨£¬VIM µÄ¼ü°ï¶¨¸úÕýÔò±í´ïʽº ......

linux ping ÃüÁîÏê½â





¹¦ÄÜ˵Ã÷£º¼ì²âÖ÷»ú¡£
Óï¡¡¡¡·¨£ºping
[-dfnqrRv][-c<Íê³É´ÎÊý>][-i<¼ä¸ôÃëÊý>][-I<ÍøÂç½çÃæ>][-l<ǰÖÃÔØ
Èë>][-p<·¶±¾Ñùʽ>][-s<Êý¾Ý°ü´óС>][-t<´æ»îÊýÖµ>][Ö÷»úÃû³Æ»òIPµØÖ·]
²¹³ä˵Ã÷£ºÖ´ÐÐpingÖ¸Áî»áʹÓÃICMP´«ÊäЭÒ飬·¢³öÒªÇó»ØÓ¦µÄÐÅÏ¢£¬ÈôÔ¶¶ËÖ÷»úµÄÍøÂ繦ÄÜûÓÐÎÊÌ⣬¾Í»á»ØÓ¦¸ÃÐÅÏ¢£¬Òò¶øµÃÖª¸ÃÖ÷»úÔË×÷Õý³£¡£
²Î¡¡¡¡Êý£º
-d ʹÓÃSocketµÄSO_DEBUG¹¦ÄÜ¡£
-c<Íê³É´ÎÊý> ÉèÖÃÍê³ÉÒªÇó»ØÓ¦µÄ´ÎÊý¡£
-f ¼«ÏÞ¼ì²â¡£
-i<¼ä¸ôÃëÊý> Ö¸¶¨ÊÕ·¢ÐÅÏ¢µÄ¼ä¸ôʱ¼ä¡£
-I<ÍøÂç½çÃæ> ʹÓÃÖ¸¶¨µÄÍøÂç½çÃæËͳöÊý¾Ý°ü¡£
-l<ǰÖÃÔØÈë> ÉèÖÃÔÚËͳöÒªÇóÐÅϢ֮ǰ£¬ÏÈÐз¢³öµÄÊý¾Ý°ü¡£
-n Ö»Êä³öÊýÖµ¡£
-p<·¶±¾Ñùʽ> ÉèÖÃÌîÂúÊý¾Ý°üµÄ·¶±¾Ñùʽ¡£
-q ²»ÏÔʾָÁîÖ´Ðйý³Ì£¬¿ªÍ·ºÍ½áβµÄÏà¹ØÐÅÏ¢³ýÍâ¡£
-r ºöÂÔÆÕͨµÄRouting Table£¬Ö±½Ó½«Êý¾Ý°üË͵½Ô¶¶ËÖ÷»úÉÏ¡£
-R ¼Ç¼·Óɹý³Ì¡£
-s<Êý¾Ý°ü´óС> ÉèÖÃÊý¾Ý°üµÄ´óС¡£
-t<´æ»îÊýÖµ> ÉèÖôæ»îÊýÖµTTLµÄ´óС¡£
-v ÏêϸÏÔʾָÁîµÄÖ´Ðйý³Ì¡£
......

¡¾×ª¡¿windowsÉϵÄdb2Á¬½ÓlinuxÉÏdb2µÄͨÐÅÎÊÌâ

[IBM][CLI Driver] SQL30081N ¼ì²âµ½Í¨ÐÅ´íÎó¡£ÕýÔÚʹÓõÄͨÐÅЭÒ飺"TCP/IP"¡£ÕýÔÚʹÓõÄͨÐÅAPI£º"SOCKETS"¡£¼ì²âµ½´íÎóµÄλÖãº"202.106.195.29"¡£¼ì²âµ½´íÎóµÄͨÐź¯Êý£º"connect"¡£Ð­ÒéÌØ¶¨µÄ´íÎó´úÂ룺"10060"¡¢"*"¡¢"*"¡£ SQLSTATE=08001
½â¾ö°ì·¨£º
µ½C:\WINDOWS\system32\drivers\etc\Ï£¬´ò¿ªhostsÎļþ£¬ÔÚÎļþĩβÔö¼ÓÀàËÆ£º
127.0.0.1 localhost #ÒÑÓеÄ
192.168.0.19 bdza.test #Ôö¼Ólinux·þÎñÆ÷µÄIP¼°ÆäÖ÷»úÃû
±£´æhostsÎļþ¡£ÖØÆôwindowsÉÏdb2¿ØÖÆÌ¨£¬ok¡£ ......

Linux¶àÏ̱߳à³Ì

Linux
¶àÏ̱߳à³Ì£º¡¾
http://fanqiang.chinaunix.net/a4/b8/20010811/0905001105.html
¡¿
    
Linux
¶àÏß³ÌÖ§³Ö
POSIX
Ï߳̽ӿڣ¬³ÆÎª
pthread,
    
pthread_create
ÓÃÀ´´´½¨Ị̈߳¬
pthread_join
µÈ´ýÏ߳̽áÊø£¬º¯ÊýµÄÔ­ÐÍ·Ö±ðÈçÏ£º
 
   
extern int pthread_create __P
((pthread_t *__thread, __const pthread_attr_t *__attr,
¡¡¡¡
void *(*__start_routine) (void *), void
*__arg));
 
extern int pthread_join __P
((pthread_t __th, void **__thread_return));
 
    
´´½¨Ïß³Ìʱ¿ÉÒÔ¸øÏß³ÌÉèÖÃÏà¹ØÊôÐÔ£¬¸ÃÊôÐÔ°üÀ¨ÉèÖÃÊÇ·ñ°ó¶¨£¬ÊÇ·ñ·ÖÀ룬¶ÑÕ»µØÖ·£¬¶ÑÕ»´óС£¬ÓÅÏȼ¶£¬Ä¬ÈϵÄÊôÐÔΪ·Ç°ó¶¨¡¢·Ç·ÖÀ롢ȱʡ
1M
µÄ¶ÑÕ»¡¢Ó븸½ø³ÌͬÑù¼¶±ðµÄÓÅÏȼ¶¡£
    
ÊôÐÔÏà¹ØµÄ½á¹¹ÌåÊÇ
pthread_attr_t
£¬³õʼ»¯º¯ÊýΪ
pthread_attr_init.
 
ÉèÖÃḬ̈߳ó¶¨×´Ì¬µÄº¯ÊýΪ
pthread_attr_setscope
£¬ËüÓÐÁ½¸ö²ÎÊý£¬µÚÒ»¸öÊÇÖ¸ÏòÊôÐԽṹµÄÖ¸Õ룬µÚ¶þ¸öÊǰó¶¨ÀàÐÍ£¬ËüÓÐÁ½¸öȡֵ£º
PTHREAD_SCOPE_SYSTEM
£¨°ó¶¨µ ......

ubuntu 8.04ÏÂÓà bochs°²×°¼°µ÷ÊÔlinux 0.11ÄÚºË

ÒªÏÂÔØµÄÈí¼þ°ü£º
bochs-2.3.5
linux-0.11-081030.tar.gz £¨linux 0.11 ÄÚºËÔ´Â룬ÉÔ×öÐ޸ľͿÉÒÔ±àÒ룬¸öÈ˸оõÆäËüµÄÐÞ¸ÄͦÂé·³µÄ£¬Í¼Ê¡ÊÂÁË£©
linux-0.11-devel-060625.zip£¨hdc-0.11-new.img Îļþϵͳ£©
£¨hdc-0.11-new.img Ö»ÓÃÕâÒ»¸öÎļþÒ²¿ÉÒÔʱÈëlinux 0.11ϵͳ£¬Ö»ÐèÔÚÅäÖÃbochsʱÉÔ×öÐ޸ľͿÉÒÔ£¬µ«ÊÇÒªµ÷ÊÔÔ´ÂëµÄ»°£¬»¹ÊÇ×Ô¼º±àÒëÀ´µÃˬ£©
°²×°bochs֮ǰ×öһЩ׼±¸¹¤×÷
sudo apt-get install build-essential
sudo apt-get install xorg-dev
sudo apt-get install bison
Ò».°²×°bochs
1. ½â°ü
tar xvfz bochs-2.3.5.tar.gz
2.½øÈëbochs-2.3.5Ŀ¼
cd bochs-2.3.5
3. ÅäÖÃ
±àÒëÁ½·Ý²»Í¬µÄÅäÖõİ汾
µÚÒ»¸öµÄ°æ±¾ÎªÊ¹ÓÃbochs×Ô´øµÄÄÚ²¿µ÷ÊÔÆ÷
./configure --prefix=/opt/bochs/debug --enable-plugins --enable-debugger --enable-disasm
×¢ÊÍ£º
    * --prefix=/opt/bochs/debug Èí¼þ½«±»°²×°µ½ÄĸöĿ¼ÏÂ
    * --enable-plugins ÊDZØÐëÒªµÄ
    * --enable-debugger ÊÇ´ò¿ªbochsµÄ×Ô´øµ÷ÊÔÆ÷
    * --enbale-disasm ÔÊÐí·´»ã±à
4. ±àÒë
make
5. °²×°
sudo make install ......
×ܼǼÊý:40319; ×ÜÒ³Êý:6720; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [6126] [6127] [6128] [6129] 6130 [6131] [6132] [6133] [6134] [6135]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ