Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ϽøÐÐCÓïÑÔ±à³ÌËùÐèÒªµÄ»ù´¡ÖªÊ¶

 ÕâÆªÎÄÕ½éÉÜÔÚLINUXϽøÐÐCÓïÑÔ±à³ÌËùÐèÒªµÄ»ù´¡ÖªÊ¶.ÔÚÕâÆªÎÄÕµ±ÖÐ,ÎÒÃǽ«»áѧµ½ÒÔÏÂÄÚÈÝ:
Ô´³ÌÐò±àÒë
MakefileµÄ±àд
³ÌÐò¿âµÄÁ´½Ó
³ÌÐòµÄµ÷ÊÔ
Í·ÎļþºÍϵͳÇóÖú
--------------------------------------------------------------------------------
1.Ô´³ÌÐòµÄ±àÒë
ÔÚLinuxÏÂÃæ,Èç¹ûÒª±àÒëÒ»¸öCÓïÑÔÔ´³ÌÐò,ÎÒÃÇҪʹÓÃGNUµÄgcc±àÒëÆ÷. ÏÂÃæÎÒÃÇÒÔÒ»¸öʵÀýÀ´ËµÃ÷ÈçºÎʹÓÃgcc±àÒëÆ÷.
¼ÙÉèÎÒÃÇÓÐÏÂÃæÒ»¸ö·Ç³£¼òµ¥µÄÔ´³ÌÐò(hello.c):
int main(int argc,char **argv)
{
printf("Hello Linux\n");
}
Òª±àÒëÕâ¸ö³ÌÐò,ÎÒÃÇÖ»ÒªÔÚÃüÁîÐÐÏÂÖ´ÐÐ:
gcc -o hello hello.c
gcc ±àÒëÆ÷¾Í»áΪÎÒÃÇÉú³ÉÒ»¸öhelloµÄ¿ÉÖ´ÐÐÎļþ.Ö´ÐÐ./hello¾Í¿ÉÒÔ¿´µ½³ÌÐòµÄÊä³ö½á¹ûÁË.ÃüÁîÐÐÖÐ
gcc±íʾÎÒÃÇÊÇÓÃgccÀ´±àÒëÎÒÃǵÄÔ´³ÌÐò,-o Ñ¡Ïî±íʾÎÒÃÇÒªÇó±àÒëÆ÷¸øÎÒÃÇÊä³öµÄ¿ÉÖ´ÐÐÎļþÃûΪhello
¶øhello.cÊÇÎÒÃǵÄÔ´³ÌÐòÎļþ. gcc±àÒëÆ÷ÓÐÐí¶àÑ¡Ïî,Ò»°ãÀ´ËµÎÒÃÇÖ»ÒªÖªµÀÆäÖеö¾Í¹»ÁË. -oÑ¡ÏîÎÒÃÇÒѾ­ÖªµÀÁË,±íʾÎÒÃÇÒªÇóÊä³öµÄ¿ÉÖ´ÐÐÎļþÃû.
-cÑ¡Ïî±íʾÎÒÃÇÖ»ÒªÇó±àÒëÆ÷Êä³öÄ¿±ê´úÂë,¶ø²»±ØÒªÊä³ö¿ÉÖ´ÐÐÎļþ. -gÑ¡Ïî±íʾÎÒÃÇÒªÇó±àÒëÆ÷ÔÚ±àÒëµÄʱºòÌṩÎÒà ......

ÔÚLINUXϽøÐÐCÓïÑÔ±à³ÌËùÐèÒªµÄ»ù´¡ÖªÊ¶

 ÕâÆªÎÄÕ½éÉÜÔÚLINUXϽøÐÐCÓïÑÔ±à³ÌËùÐèÒªµÄ»ù´¡ÖªÊ¶.ÔÚÕâÆªÎÄÕµ±ÖÐ,ÎÒÃǽ«»áѧµ½ÒÔÏÂÄÚÈÝ:
Ô´³ÌÐò±àÒë
MakefileµÄ±àд
³ÌÐò¿âµÄÁ´½Ó
³ÌÐòµÄµ÷ÊÔ
Í·ÎļþºÍϵͳÇóÖú
--------------------------------------------------------------------------------
1.Ô´³ÌÐòµÄ±àÒë
ÔÚLinuxÏÂÃæ,Èç¹ûÒª±àÒëÒ»¸öCÓïÑÔÔ´³ÌÐò,ÎÒÃÇҪʹÓÃGNUµÄgcc±àÒëÆ÷. ÏÂÃæÎÒÃÇÒÔÒ»¸öʵÀýÀ´ËµÃ÷ÈçºÎʹÓÃgcc±àÒëÆ÷.
¼ÙÉèÎÒÃÇÓÐÏÂÃæÒ»¸ö·Ç³£¼òµ¥µÄÔ´³ÌÐò(hello.c):
int main(int argc,char **argv)
{
printf("Hello Linux\n");
}
Òª±àÒëÕâ¸ö³ÌÐò,ÎÒÃÇÖ»ÒªÔÚÃüÁîÐÐÏÂÖ´ÐÐ:
gcc -o hello hello.c
gcc ±àÒëÆ÷¾Í»áΪÎÒÃÇÉú³ÉÒ»¸öhelloµÄ¿ÉÖ´ÐÐÎļþ.Ö´ÐÐ./hello¾Í¿ÉÒÔ¿´µ½³ÌÐòµÄÊä³ö½á¹ûÁË.ÃüÁîÐÐÖÐ
gcc±íʾÎÒÃÇÊÇÓÃgccÀ´±àÒëÎÒÃǵÄÔ´³ÌÐò,-o Ñ¡Ïî±íʾÎÒÃÇÒªÇó±àÒëÆ÷¸øÎÒÃÇÊä³öµÄ¿ÉÖ´ÐÐÎļþÃûΪhello
¶øhello.cÊÇÎÒÃǵÄÔ´³ÌÐòÎļþ. gcc±àÒëÆ÷ÓÐÐí¶àÑ¡Ïî,Ò»°ãÀ´ËµÎÒÃÇÖ»ÒªÖªµÀÆäÖеö¾Í¹»ÁË. -oÑ¡ÏîÎÒÃÇÒѾ­ÖªµÀÁË,±íʾÎÒÃÇÒªÇóÊä³öµÄ¿ÉÖ´ÐÐÎļþÃû.
-cÑ¡Ïî±íʾÎÒÃÇÖ»ÒªÇó±àÒëÆ÷Êä³öÄ¿±ê´úÂë,¶ø²»±ØÒªÊä³ö¿ÉÖ´ÐÐÎļþ. -gÑ¡Ïî±íʾÎÒÃÇÒªÇó±àÒëÆ÷ÔÚ±àÒëµÄʱºòÌṩÎÒà ......

Linux "dd" command

dd ÊÇ Linux/UNIX ϵÄÒ»¸ö·Ç³£ÓÐÓõÄÃüÁ×÷ÓÃÊÇÓÃÖ¸¶¨´óСµÄ¿é¿½±´Ò»¸öÎļþ£¬²¢ÔÚ¿½±´µÄͬʱ½øÐÐÖ¸¶¨µÄת»»¡£
dd µÄÖ÷ҪѡÏ
Ö¸¶¨Êý×ֵĵط½ÈôÒÔÏÂÁÐ×Ö·û½áβ³ËÒÔÏàÓ¦µÄÊý×Ö:
b=512, c=1, k=1024, w=2, xm=number m
if=file
ÊäÈëÎļþÃû£¬È±Ê¡Îª±ê×¼ÊäÈë¡£
of=file
Êä³öÎļþÃû£¬È±Ê¡Îª±ê×¼Êä³ö¡£
ibs=bytes
Ò»´Î¶ÁÈë bytes ¸ö×Ö½Ú(¼´Ò»¸ö¿é´óСΪ bytes ¸ö×Ö½Ú)¡£
obs=bytes
Ò»´Îд bytes ¸ö×Ö½Ú(¼´Ò»¸ö¿é´óСΪ bytes ¸ö×Ö½Ú)¡£
bs=bytes
ͬʱÉèÖöÁд¿éµÄ´óСΪ bytes £¬¿É´úÌæ ibs ºÍ obs ¡£
cbs=bytes
Ò»´Îת»» bytes ¸ö×Ö½Ú£¬¼´×ª»»»º³åÇø´óС¡£
skip=blocks
´ÓÊäÈëÎļþ¿ªÍ·Ìø¹ý blocks ¸ö¿éºóÔÙ¿ªÊ¼¸´ÖÆ¡£
seek=blocks
´ÓÊä³öÎļþ¿ªÍ·Ìø¹ý blocks ¸ö¿éºóÔÙ¿ªÊ¼¸´ÖÆ¡£(ͨ³£Ö»Óе±Êä³öÎļþÊÇ´ÅÅÌ»ò´Å´øÊ±²ÅÓÐЧ)
count=blocks
½ö¿½±´ blocks ¸ö¿é£¬¿é´óСµÈÓÚ ibs Ö¸¶¨µÄ×Ö½ÚÊý¡£
conv=conversion[,conversion...]
ÓÃÖ¸¶¨µÄ²ÎÊýת»»Îļþ¡£
ת»»²ÎÊý:
ascii ת»» EBCDIC Ϊ ASCII¡£
ebcdic ת»» ASCII Ϊ EBCDIC¡£
ibm ת»» ASCII Ϊ alternate EBCDIC.
block °ÑÿһÐÐת»»Îª³¤¶ÈΪ cbs µÄ¼Ç¼£¬²»×㲿·ÖÓÿոñÌî³ä¡£
unblock
ʹÿһÐе ......

Redhat Linux NFSÅäÖÃ

Redhat Linux NFSÅäÖÃ
NFS¼ò½é£º
NFSÊÇÍøÂçÎļþϵͳµÄ¼òд£¨network file system£©£¬Ö÷ÒªÓÃÔÚlinux»òunix»·¾³ÖУ¬ÊÇÓÐsun¹«Ë¾¿ª·¢£¬²¢ÓÚ1984ÄêÍÆ³öµÄÒ»¸öRPC·þÎñϵͳ¡£
NFS¹¦ÄܽéÉÜ£º
Ëû¿ÉÒÔ½«¶à¸öĿ¼»òÕßµ¥¸öĿ¼½øÐз¢²¼£¬ÀýÈçÎÒÃÇÔÚÍø¿ÌϵͳµÄʱºò¿ÉÒÔÓÃNFSÀ´¹²Ïí¹âÅ̾µÏñ£¬NFSÊÇÒÔ·¢²¼Ä¿Â¼µÄ·½Ê½½«Îļþ½øÐз¢²¼£¬¶ø¿Í»§¶ËÊÇÒÔ¹ÒÔØµÄ·½Ê½½øÐзÃÎÊ¡£¿Í»§¶Ë¿ÉÒÔ½ÚÊ¡±¾µØ¿Õ¼ä£¬½«Êý¾Ý´æ·ÅÔÚnfs·þÎñÆ÷ÉÏ¡£NFSÒ²¿ÉÒÔÕë¶Ôµ«¸öÓû§ÒÔ¼°¶àÓû§ÉèÖò»Í¬µÄ·ÃÎÊȨÏÞ¡£
ÏêϸÅäÖò½Ö裺
°²×°NFS±ØÐëÒª¿ªÆôµÄ·þÎñÓУºnfs¡¢portmap¡¢
NFSµÄÅäÖÃÏà¶ÔÓÚÆäËû·þÎñÊDZȽϼòµ¥µÄ£¬ÎÒÃÇÒÀÈ»»¹ÊÇҪעÒâ·À»ðǽÒÔ¼°SElinux£¬
Ê×ÏÈÎÒÃǼì²éÈí¼þÊÇ·ñÒѰ²×°£¬ÕâÀïÎÒÒѾ­¶¼°²×°ÁË¡£
ÔÚ°²×°redhat linux ʱÕâЩ°üĬÈϾÍÒѱ»°²×°£¬Èç¹ûÄã¼ì²é·¢ÏÖûÓа²×°£¬¿ÉÒÔʹÓÃÒ»ÏÂÃüÁî½øÐа²×°£»
#rpm –ivh nfs*
#rpm –ivh portmap   
ÅäÖÃNFS£¬ÅäÖÃÎļþÔÚ/etc/exports
Ê×ÏÈÎÒÃÇʹÓÃvim´ò¿ª/etc/exports ÎÒÃǻᷢÏÖÕâÊÇÒ»¸ö¿ÕÎļþ£¬ÀïÃæÃ»ÓÐÈκÎÄÚÈÝ¡£Èç¹ûûÓдËÎļþ£¬ÎÒÃÇ¿ÉÒÔд´½¨Ò»¸ö£¬
ÕâÀïÎÒÃǾٸöÀý×ÓÀ´Íê³É¶ÔNFSµÄÅäÖã¬
ÀýÈ磺¹«Ë¾Óжą̀¼ÆËã»ú£¬¶øÆäÖÐÖ»ÓÐһ̨ ......

Linux ϵĽðɽ´Ê°Ô

       ¸Õѧlinuxʱ·Ç³£Í´¿à£¬¾­³£±»Ò»¸öСÎÊÌâÕûµÄºÜÒÖÃÆ£¡Ïë½â¾ö²»ÈÝÒ×£¬ÉÏÍø²éÓֺܶàÊÇÓ¢·½×ÊÁÏ£¬Ó¢Óï²î¿´²»¶®Ôõô°ì£¬¾ÍÏëÆðwindowsµÄ½ðɽ´Ê°Ô£¬ºÇºÇ£¬·Ñ»°²»¶à˵ÁË£¬ËµËµÎÒ°²×°µÄ¹ý³Ì¡£
        ´ÓÐǼÊÒëÍõµÄ¹ÙÍøhttp://stardict.sourceforge.net/cn/index.phpÏÂÔØrpm°²×°°ü£¨µ±È»Òª¸ù¾ÝlinuxϵͳµÄ°æ±¾µÈÀ´ÏÂÔØÏàÓ¦µÄ°²×°°ü£©,¸´ÖƵ½/usr/shape/stardictĿ¼ÏÂ:
        ²½ÖèÈçÏ£º
         1¡¢´ò¿ªÒ»¸öÖÕ¶Ë.
         2¡¢´´½¨Ä¿Â¼(mkdir /usr/shape/stardict)
         3¡¢°Ñ°²×°°ü¸´ÖƵ½´ËĿ¼ÏÂ(cp -r /home/yang/stardict*.rpm /usr/shape/stardict),rpmµÄÀ´Ô´ÒªÒÀÄãµÄ´æ·ÅĿ¼Ϊ׼.
         4¡¢×ªµ½stardictĿ¼,²¢²é¿´(cd /usr/shape/stardict && ls)
         5¡¢°²×°(rpm -ivh stardict*.rpm)  &nbs ......

linuxϲ鿴nginx£¬apache£¬mysql£¬phpµÄ±àÒë²ÎÊý

ÓÐʱºònginx£¬apache£¬mysql£¬php±àÒëÍêÁËÏë¿´¿´±àÒë²ÎÊý¿ÉÒÔÓÃÒÔÏ·½·¨
nginx±àÒë²ÎÊý£º
#/usr/local/nginx/sbin/nginx -V
CODE:
nginx version: nginx/0.6.32
built by gcc 4.1.2 20071124 (Red Hat 4.1.2-42)
configure arguments: --user=www --group=www --prefix=/usr/local/nginx/ --with-http_stub_status_module --with-openssl=/usr/local/openssl
 apache±àÒë²ÎÊý£º
# cat /usr/local/apache2/build/config.nice
CODE:
#! /bin/sh
#
# Created by configure
"./configure" \
"--prefix=/usr/local/apache2" \
"--with-included-apr" \
"--enable-so" \
"--enable-deflate=shared" \
"--enable-expires=shared" \
"--enable-rewrite=shared" \
"--enable-static-support" \
"--disable-userdir" \
"$@"
 php±àÒë²ÎÊý£º
# /usr/local/php/bin/php -i |grep configure
CODE:
Configure Command =>  './configure'  '--prefix=/usr/local/php' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-config-file-path=/usr/local/php/etc' '--with-mysql=/usr/local/mysql' '--with-libxml-dir=/usr/local/libxml2/bi ......

linuxϲ鿴nginx£¬apache£¬mysql£¬phpµÄ±àÒë²ÎÊý

ÓÐʱºònginx£¬apache£¬mysql£¬php±àÒëÍêÁËÏë¿´¿´±àÒë²ÎÊý¿ÉÒÔÓÃÒÔÏ·½·¨
nginx±àÒë²ÎÊý£º
#/usr/local/nginx/sbin/nginx -V
CODE:
nginx version: nginx/0.6.32
built by gcc 4.1.2 20071124 (Red Hat 4.1.2-42)
configure arguments: --user=www --group=www --prefix=/usr/local/nginx/ --with-http_stub_status_module --with-openssl=/usr/local/openssl
 apache±àÒë²ÎÊý£º
# cat /usr/local/apache2/build/config.nice
CODE:
#! /bin/sh
#
# Created by configure
"./configure" \
"--prefix=/usr/local/apache2" \
"--with-included-apr" \
"--enable-so" \
"--enable-deflate=shared" \
"--enable-expires=shared" \
"--enable-rewrite=shared" \
"--enable-static-support" \
"--disable-userdir" \
"$@"
 php±àÒë²ÎÊý£º
# /usr/local/php/bin/php -i |grep configure
CODE:
Configure Command =>  './configure'  '--prefix=/usr/local/php' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-config-file-path=/usr/local/php/etc' '--with-mysql=/usr/local/mysql' '--with-libxml-dir=/usr/local/libxml2/bi ......

linuxϲ鿴nginx£¬apache£¬mysql£¬phpµÄ±àÒë²ÎÊý

ÓÐʱºònginx£¬apache£¬mysql£¬php±àÒëÍêÁËÏë¿´¿´±àÒë²ÎÊý¿ÉÒÔÓÃÒÔÏ·½·¨
nginx±àÒë²ÎÊý£º
#/usr/local/nginx/sbin/nginx -V
CODE:
nginx version: nginx/0.6.32
built by gcc 4.1.2 20071124 (Red Hat 4.1.2-42)
configure arguments: --user=www --group=www --prefix=/usr/local/nginx/ --with-http_stub_status_module --with-openssl=/usr/local/openssl
 apache±àÒë²ÎÊý£º
# cat /usr/local/apache2/build/config.nice
CODE:
#! /bin/sh
#
# Created by configure
"./configure" \
"--prefix=/usr/local/apache2" \
"--with-included-apr" \
"--enable-so" \
"--enable-deflate=shared" \
"--enable-expires=shared" \
"--enable-rewrite=shared" \
"--enable-static-support" \
"--disable-userdir" \
"$@"
 php±àÒë²ÎÊý£º
# /usr/local/php/bin/php -i |grep configure
CODE:
Configure Command =>  './configure'  '--prefix=/usr/local/php' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-config-file-path=/usr/local/php/etc' '--with-mysql=/usr/local/mysql' '--with-libxml-dir=/usr/local/libxml2/bi ......

windowsϵÄvmware°²×°linuxÉÏÍøÎÊÌâ

 
Ò»£®ÕæÊµÖ÷»úÅäÖÃÓëÉèÖÃ
ǰÌáÌõ¼þ£º¹«Ë¾ÊÇͨ¹ýIP¡¢MACµØÖ·Ó³ÉäµÄ·½Ê½À´·ÃÎÊÍøÂçµÄ¡£
Íø¹Ø£º192.168.10.1
ÒÔÏÂÁ½×éIP£¬MAC¿ÉÒÔ·ÃÎÊÍâÍø
1.
IP:192.168.10.232
MAC: 00-0B-2F-1A-51-95
2.
       IP:192.168.10.175
       MAC:00-28-27-AB-56-28
 
ÅäÖãº
       Windows XP ,Ò»ÕÅÍø¿¨
Íø¿¨ÉèÖãº
C:\Documents and Settings\Administrator> ipconfig -all
       Ethernet adapter ±¾µØÁ¬½Ó:
        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Realtek RTL8169/8110 Family Gigabit
Ethernet NIC
        Physical Address. . . . . . . . . : 00-0B-2F-1A-51-95
        Dhcp Enabled. . . . . . . . . . . : No                ......
×ܼǼÊý:40319; ×ÜÒ³Êý:6720; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [5680] [5681] [5682] [5683] 5684 [5685] [5686] [5687] [5688] [5689]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ