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

LinuxÖ®NFS·þÎñÆ÷°²×°ÅäÖÃ

 Èç¹ûÔÚRed Hat 9°²×°Ê±ÒѾ­Ä¬ÈÏ°²×°ÁËNFS×é¼þ£¬½ÓÏÂÀ´µÄ¹¤×÷Ö÷ÒªÊÇÅäÖÃÏà¹ØÎļþʹ·þÎñÆ÷ÌṩNFS·þÎñ£¬²½ÖèÈçÏ¡£
¡¡¡¡£¨1£©É趨ij̨¼ÆËã»úΪNFS·þÎñÆ÷£¬²¢ÔÚºǫ́Æô¶¯Ïà¹ØµÄÊØ»¤½ø³Ì£¨ÔÚ"·þÎñÅäÖÃ"ÖÐÆô¶¯£©¡£Ò»°ãÀ´Ëµ£¬Èç¹ûNFS·þÎñÆ÷ÒªÌṩ·þÎñ£¬±ØÐëÆô¶¯inet¡¢portmap¡¢nfsºÍmountÕâ4¸öÊØ»¤½ø³Ì²¢±£³ÖÔÚºǫ́ÔËÐС£
¡¡¡¡£¨2£©¹æ»®·þÎñÆ÷·ÖÇø£¬´Ó°²È«µÈ·½Ã涨ÒåÄÄЩ·ÖÇø×÷ΪҪ¹²ÏíµÄÎļþϵͳ¡£
¡¡¡¡£¨3£©ÔÚ¿Í»§¶ËÁбíÖж¨Òåÿһ̨¿Í»§»úµÄ²ÎÊý¡£
¡¡¡¡£¨4£©ÐÞ¸Ä/etc/exports¡£
¡¡¡¡£¨5£©ÖØÐÂÆô¶¯NFS·þÎñÆ÷£¬Æô¶¯·½·¨¿É²ÉÓÃÃüÁîÐеķ½Ê½£¬¼´/etc/rc.d/init.d/nfs
restart¡£·þÎñÆ÷¶ËÎļþϵͳµÄ¹²ÏíÉèÖÃÓÐ3ÖÖ·½·¨£¬Ò»ÊÇÖ±½ÓÐÞ¸Ä/etc/exportsÎļþ£»¶þÊÇÓÃexportsÃüÁîÀ´Ôö¼ÓºÍɾ³ýĿ¼£»ÈýÊÇͼ
Ðλ¯µÄÅäÖ÷½·¨¡£
¡¡¡¡1¡¢ Á˽âNFSÍøÂçÎļþµÄϵͳ½á¹¹
¡¡¡¡NFSÍøÂçÎļþµÄϵͳ½á¹¹°üÀ¨ÈçÏÂĿ¼½á¹¹£º
¡¡¡¡1£®/etc/exports
¡¡¡¡Õâ¸öÎļþÊÇNFSµÄÖ÷ÒªÅäÖÃÎļþ£¬²»¹ýϵͳ²¢Ã»ÓÐĬÈÏÖµ£¬ËùÒÔÕâ¸öÎļþ²»Ò»¶¨»á´æÔÚ¡£¿ÉÄÜҪʹÓÃviÖ÷¶¯½¨Á¢ÆðÕâ¸öÎļþ£¬½ÓÏÂÀ´µÄÉ趨Ҳ½ö½öÊÇÕâ¸öÎļþ¡£
¡¡¡¡2£®/usr/sbin/exportfs
¡¡¡¡ÕâÊÇά»¤NFS¹²Ïí×ÊÔ´µÄÃüÁÎÒÃÇ¿ÉÒÔÓÃÆäÖØзÖÏí/etc/exports±ä¸üµÄĿ¼×ÊÔ´£¬²¢½«NFS Server·ÖÏíµÄĿ¼жÔØ»òÖØзÖÏíµÈ¡£Õâ¸öÃüÁîÊÇNFSϵͳÖÐÏ൱ÖØÒªµÄÒ»¸ö£¬ÖÁÓÚÃüÁîµÄÓ÷¨ÔÚºóÃæÕ½ÚÔÙ½éÉÜ¡£
¡¡¡¡3£®/usr/sbin/showmount
¡¡¡¡showmountÃüÁîÖ÷ÒªÓÃÔÚClient¶Ë£¬¿ÉÒÔÓÃÀ´²é¿´NFS¹²Ïí³öÀ´µÄĿ¼×ÊÔ´¡£
¡¡¡¡4£®/var/lib/nfs/*tab
¡¡¡¡ÔÚNFS·þÎñÆ÷µÄµÇ¼Îļþ¶¼·ÅÖõ½/var/lib/nfs/Ŀ¼ÖУ¬ÔÚ¸ÃĿ¼ÏÂÓÐÁ½¸ö±È½ÏÖØÒªµÄµÇ¼Îļþ£¬Ò»¸öÊÇetab£¬Ö÷Òª¼Ç¼ÁËNFSËù·ÖÏí³öÀ´µÄĿ¼µÄÍêÕûȨÏÞÉ趨ֵ£»ÁíÒ»¸öÊÇxtab£¬¼Ç¼Ôø¾­Á¬½Óµ½´ËNFSÖ÷»úµÄÏà¹Ø¿Í»§¶ËÊý¾Ý¡£
¡¡¡¡2¡¢ ÅäÖÃ/etc/exportsÎļþ
¡¡¡¡Óû§¿ÉÒÔ°ÑÐèÒª¹²ÏíµÄÎļþϵͳֱ½Ó±à¼­µ½/etc/exportsÎļþÖУ¬ÕâÑùµ±NFS·þÎñÆ÷ÖØÐÂÆô¶¯Ê±ÏµÍ³¾Í»á×Ô¶¯¶ÁÈ¡/etc
/exportsÎļþ£¬´Ó¶ø¸æËßÄÚºËÒªÊä³öµÄÎļþϵͳºÍÏà¹ØµÄ´æȡȨÏÞ¡£ÔÚÏÂÃæµÄÀý×ÓÖÐÏÔʾÁË/etc/exportsÎļþÖм¸¸öÌõÄ¿ÏîµÄÄÚÈÝ£¬±»¹ÒÔØÔÚ
/pubĿ¼ÏµÄÎļþϵͳ¾ßÓÐÖ»¶Á·ÃÎÊȨÏÞ£¬ËùÓеļÆËã»úÔÚ·ÃÎÊÎļþϵͳµÄʱºò²»±Ø¾­¹ý°²È«¼ì²é¡£±à¼­/etc/exportsÎļþ£º
¡¡¡¡# vi /etc/exports
¡¡¡¡/usr/sys/src -maproot=daemon host2
¡¡¡¡/usr/ports -ro -network 192.168.1.0
¡¡¡¡´ÓÉÏÃæÕâ¸öÀý×ÓÖпÉÒÔ¿´³öexportsÎļþµÄ¸ñʽ£


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......

¡¾Linux¡¿LinuxΪÍø¿¨¾²Ì¬ÅäÖÃIPµØÖ·µÈ

linuxÖÐÓÃifconfigΪÍø¿¨ÅäÖÃIPµØÖ·µÈ£¬ÔÚϵͳÖØÆôºó¾ÍʧЧÁË¡£ÎªÁ˱£Ö¤ÅäÖÃÓÀ¾ÃÉúЧ£¬ÐèÒª²ÉÓÃÐÞ¸ÄÅäÖÃÎļþµÄ¾²Ì¬ÅäÖ÷½·¨£¬×ܽáÈçÏ£º
1. cd /etc/sysconfig/network-scripts¡£
2. vi ifcfg-eth0(Ò²¿ÉÄÜÊÇeth1£¬eth2£¬·Ö±ð¶ÔÓ¦²»Í¬µÄÍø¿¨)
3. ÅäÖÃÄÚÈÝÈçÏ£º
    DEVICE=eth0   //Íø¿¨É豸à ......

linux¶¨Ê±Æ÷

 
¼ò½é
ÕâƪÎÄÕÂÖ÷Òª¼Ç¼ÎÒÔÚÊÔͼ½â¾öÈçºÎ¾¡¿ÉÄܾ«È·µØÔÚij¸öÌض¨µÄʱ¼ä¼ä¸ôÖ´ÐÐijÏî¾ßÌåÈÎÎñʱµÄ˼·Àú³Ì£¬²¢ÔÚºóÆÚ¶ÔÏà¹ØµÄAPI½øÐеĹéÄɺÍ×ܽᣬÒÔ±¸²Î¿¼¡£
ÎÊÌâÒý³ö
ºÜ¶àʱºò£¬ÎÒÃÇ»áÓÐÀàËƓÿ¸ô¶à³¤Ê±¼äÖ´ÐÐijÏîÈÎÎñ
”µÄÐèÇó£¬Õ§¿´Õâ¸öÎÊÌâ²¢²»Äѽâ¾ö£¬ÊµÔò²¢²»ÈÝÒ×£¬ÓкܶàÒþº¬Ìõ¼þÐèÒª¿¼ÂÇ£¬Ö ......

linux ƽ̨µÝ¹é¶ÁÈ¡¶ÁÈ¡ËùÓÐÎļþ¼ÐºÍÎļþÃû³Æ

 #include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<sys/stat.h>
#include<fcntl.h>
#include<sys/types.h>
#include<dirent.h>
#define MAX 1024
char path[100];
char *strmin(char *des,const char *min)
{
 int i=strlen(des);
&nbs ......

Linux²Ù×÷ϵͳÆô¶¯Á÷³ÌÓëGrubµÄÅäÖ÷½·¨

 ×÷Õߣºsixth
Ò»¡¢LinuxµÄÆô¶¯Á÷³Ì
 
1. ´ÓBIOSµ½KERNEL
BIOS×Լ죭>MBR(GRUB)£­>KERNEL£­>KERNEL×Ô½âѹ£­>Äں˳õʼ»¯£­>ÄÚºËÆô¶¯
2. ÄÚºËÆô¶¯£º´´½¨1££½ø³Ì²¢Ö´ÐУ¬ÓÉËü´´½¨Èô¸ÉÄÚºËỊ̈߳¨kernel thread£©£¬È»ºó×°Èë²¢Ö´ÐгÌÐò/sbin/init£¨±ä³ÉÒ»¸öÓû§½ø³Ì£©¡£´Ëºó£¬init¸ù¾Ý/etc/initt ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ