Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LinuxÏÂÅäÖð²×°NFS

LinuxÏÂÅäÖð²×°NFS
http://blog.chinaunix.net/u1/34252/showart_264236.html
1.1NFS¸ÅÊö
NFS(Network File System)ÊÇÒ»ÖÖ·Ö²¼Ê½Îļþϵͳ£¬ÔÊÐíÍøÂçÖеݲװ²»Í¬²Ù×÷ϵͳµÄ¼ÆËã»ú¼ä¹²ÏíÎļþºÍÍâÉ裬ËùÒÔËüµÄͨѶЭ¶¨Éè¼ÆÓëÖ÷»ú¼°×÷ҵϵͳÎÞ¹Ø. ËüÊÇÓÉSUN¹«Ë¾ÓÚ1984ÄêÍƳö£¬Ê¹µÃ¿ÉÒÔ±¾µØ»úÒ»ÑùµÄʹÓÃÁíһ̨ÁªÍø¼ÆËã»úµÄÎļþºÍÍâÉè¡£NFSÔÚÎļþ´«ËÍ»òÐÅÏ¢´«Ë͹ý³ÌÖÐÒÀÀµÓÚRPCЭÒé¡£NFS µÄµ±Ç°°æ±¾ÊÇV4£¨RFC3010£©
RPC, Ô¶³Ì¹ý³Ìµ÷Óà (remote procedure call) ÊÇÄÜʹ¿Í»§¶ËÖ´ÐÐÆäËûϵͳÖгÌÐòµÄÒ»ÖÖ»úÖÆ¡£ÓÉÓÚʹÓà RPC µÄ³ÌÐò²»±ØÁ˽âÖ§³ÖͨÐŵÄÍøÂçЭÒéµÄÇé¿ö£¬Òò´Ë RPC Ìá¸ßÁ˳ÌÐòµÄ»¥²Ù×÷ÐÔ¡£³£ÓÃÓÚ·Ö²¼Ê½¿Í»§¶Ë/·þÎñÆ÷Ä£ÐÍ£¬·¢³öÇëÇóµÄ³ÌÐòÊÇ¿Í»§³ÌÐò£¬¶øÌṩ·þÎñµÄ³ÌÐòÊÇ·þÎñÆ÷¡£
1.2 NFSµÄ°²×°
NFSµÄ°²×°ÊǷdz£¼òµ¥µÄ£¬Ö»ÐèÒªÁ½¸öÈí¼þ°ü¼´¿É£¬¶øÇÒÔÚͨ³£Çé¿öÏ£¬ÊÇ×÷ΪϵͳµÄĬÈÏ°ü°²×°µÄ£¬ÔÚÅäÖÃʹÓÃNFS֮ǰÐèÒªÏȲéѯËùÐèµÄÈí¼þ°üÊÇ·ñÒÑ°²×°.
# rpm -q nfs-utils portmap
nfs-utils-1.0.6-70.EL4
portmap-4.0-63
//Èç¹û³öÏÖ°üµÄÐÅÏ¢£¬Ôò±íʾÒÑ°²×°ÁËnfs-utils portmapÁ½¸öÈí¼þ°ü
1.3 NFS°²×°°üÎļþ
È統ǰϵͳÖÐûÓа²×°NFSËùÐèµÄʹÓõÄÈí¼þ°ü£¬ÐèÒªÊÖ¹¤½øÐа²×°¡£nfs-utilsºÍportmapÁ½¸ö°üµÄ°²×°ÎļþÔÚϵͳ¹âÅÌÖж¼»áÓС£
nfs-utils-1.0.6-70.EL4.i386.rpm
portmap-4.0-63.i386.rpm
1.4 PortmapÈí¼þ°ü
portmapÈí¼þ°üÖеÄportmap·þÎñ£¬ÎªNFSºÍNISµÈÌṩPRC·þÎñµÄÖ§³Ö£¬Òò´ËÔÚ°²×°NFSʱ¾ÍÏÈ°²×°portmapÈí¼þ°ü.
rpm -ql portmapl
/etc/rc.d/init.d/portmap
/sbin/portmap
1.5 nfs-utilsÈí¼þ°ü
nfs-utilsÈí¼þ°üÌṩÁËNFS·þÎñÆ÷³ÌÐòºÍÏàÓ¦µÄ¹ÜÀí¹¤¾ß¡£
rpm -ql nfs-utils
1.6 NFS·þÎñÆ÷µÄÅäÖÃ
NFS·þÎñÆ÷µÄÅäÖÃÏà¶Ô±È½Ï¼òµ¥£¬Ö»ÐèÒªÔÚÏàÓ¦µÄÅäÖÃÎļþÖнøÐÐÉèÖã¬È»ºóÆô¶¯NFS·þÎñÆ÷¼´¿É.
1.7 NFS·þÎñÆ÷µÄÅäÖÃÎļþ-------------------exports
exportsÎļþÔÚĿ¼“/etc”Ï£¬ÓÃÓÚÅäÖÃNFS·þÎñÆ÷ËùÌṩµÄĿ¼¹²Ïí¡£exportsµÄºÚÒ¹ÉèÖÃΪ¿Õ£¬Ã»ÓÐÊä³öÈκεÄĿ¼¹²Ïí£¬ÕâÒ²ÊdzöÓÚ°²È«¿¼ÂÇ£¬ÕâÑù¼´Ê¹Æô¶¯ÁËNFS ·þÎñÒ²²»»áÌṩÈκεĹ²Ïí¡£
1.8 exportsÎļþµÄ¸ñʽ
exportsÎļþÖÐÿÐÐÌṩһ¸ö¹²ÏíµÄĿ¼£¬ÉèÖÃÐеĸñʽÈçÏÂËùʾ£º
ÒªÊä³öµÄ¹²ÏíĿ¼ ¿Í»§¶ËÖ÷»úµÄµØÖ·£¨ÉèÖÃÏÈÏ
/www/chinafu *(sync,ro)
ÔÚ¹²ÏíÉèÖÃÎļþÖУ¬¹²ÏíĿ¼ºÍÖ÷»úµØÖ·¼äÓÿոñ·Ö¸ô£¬Ö÷»úµØÖ·Ö®ºó½ôËæÉèÖÃÑ¡ÏÉèÖÃÑ¡Ïî·ÅÓÐÀ¨ºÅÖУ¬¶à¸öÉèÖÃÑ¡


Ïà¹ØÎĵµ£º

Ò»µÀlinux±ÊÊÔÌâÄ¿


ÊÇqqȺÀïÈËÎʵģ¬ÎÒ¾Í˳±ãдһÏÂÁË¡£
shell±à³Ì£ºÐ´ÃüÁîkilltty,ÕÒ³öϵͳÖÐËùÓÐÔËÐÐÔÚÖ¸¶¨tty£¨Èç/dev/tty01£©ÉϵĽø³Ì£¬²¢È«²¿É±ËÀ
#!/bin/bash
ps -ef | grep tty | grep -v "grep tty" | awk '{print $2}' |sed '/PID/d' > ttyfile
while read LINE
do
kill -9 $LINE
done < ttyfile
²»¹ýttyÊ ......

ZZ LinuxÉèÖû·¾³±äÁ¿Ð¡½á

1
¡¢×ܽᱳ¾°
ÔÚ
linux
ϵͳÏ£¬Èç¹ûÄãÏÂÔز¢°²×°ÁËÓ¦ÓóÌÐò£¬ºÜÓпÉÄÜÔÚ¼üÈëËüµÄÃû³Æʱ³öÏÖ
“command not found”
µÄÌáʾÄÚÈÝ¡£Èç¹ûÿ´Î¶¼µ½°²×°Ä¿±êÎļþ¼ÐÄÚ£¬ÕÒµ½¿ÉÖ´ÐÐÎļþÀ´½øÐвÙ×÷¾ÍÌ«·±ËöÁË¡£ÕâÉæ¼°µ½»·¾³±äÁ¿
PATH
µÄÉèÖÃÎÊÌ⣬¶ø
PATH
µÄÉèÖÃÒ²ÊÇÔÚ
linux
϶¨ÖÆ»·¾³±äÁ¿µÄÒ»¸ö×é³É²¿·Ö¡£ ......

linux ÃÜÂëÍü¼Ç linux ÐÞ¸ÄrootµÄÃÜÂ룡

´ó¼ÒºÃ£º
ÏÖÔÚlinuxϵͳҲËãÊDZȽÏÁ÷ÐеÄÁË
µ«ÊÇijЩÅóÓÑÍü¼ÇÁËÃÜÂëROOTµÄ²»ÖªµÀÔõô°ìÏÖÔÚÎҾͷ¢ÌûÖ§³ÖÏÂ
ºÇºÇ ÓеÄÅ£ÈËÒѾ­ÖªµÀÁË ¾Í²»¿´ÌûÁË ºÇºÇ ´ó¼ÒÖ§³ÖÏÂ
ÏÖÔÚŪ¸öÈçÏÂÁ½ÖÖ
¡¡¡¡Ò». grub
¡¡¡¡1. ÔÚ³öÏÖgrub»­Ãæʱ£¬ÓÃÉÏϼüÑ¡ÖÐÄãƽʱÆô¶¯linuxµÄÄÇÒ»Ïî((×¢Òâ)£¬È»ºó°´e¼ü!
¡¡¡¡2. ÔÙ´ÎÓÃÉÏϼüÑ¡ÖÐÄãƽʱÆô ......

linux½âѹÃüÁ

.tar
½â°ü£º tar xvf FileName.tar
´ò°ü£ºtar cvf FileName.tar DirName
£¨×¢£ºtarÊÇ´ò°ü£¬²»ÊÇѹËõ£¡£©
---------------------------------------------
.gz
½âѹ1£ºgunzip FileName.gz
½âѹ2£ºgzip -d FileName.gz
ѹËõ£ºgzip FileName
---------------------------------------------
.tar.gz
½âѹ£ºtar zxv ......

LinuxÏÂCÓïÑÔ±à³ÌµÄ×¢ÒâÊÂÏî


http://os.51cto.com  2008-03-21 11:15  ØýÃû  ÈüµÏÍø
ÕªÒª£ºÑ§»áʹÓÃvim/emacs£¬vim/emacsÊÇlinuxÏÂ×î³£ÓõÄÔ´Âë±à¼­Æ÷£¬²»¹âҪѧ»áÓÃËüÃDZ༭ԴÂ룬»¹ÒªÑ§»áÓÃËüÃǽøÐвéÕÒ¡¢¶¨Î»¡¢Ìæ»»µÈ¡£ÐÂÊֵĻ°ÍƼöʹÓÃvim£¬ÕâÒ²ÊÇÎÒĿǰʹÓõÄÎı¾±à¼­Æ÷¡£
±êÇ©£ºLinux  CÓïÑÔ  ±à³Ì
Or ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ