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

linux:ÍøÂç·þÎñÅäÖÃÖ®—NFSÅäÖùÜÀí

2.1.2 ÓÃNFSʵÏÖ×ÊÔ´¹²Ïí
Ç°Ãæ½²µÄSambaÊÇʵÏÖLinuxÖ÷»úÖ®¼ä¡¢WindowsºÍLinuxÖ®¼äʵÏÖ×ÊÔ´¹²ÏíµÄ;¾¶¡£¶øNFSÊÇʵÏÖLinuxÖ÷»úÖ®¼ä¹²ÏíµÄÁíÒ»ÖÖ;¾¶¡£NFS×îÔçʹÓÃÔÚSun·þÎñÆ÷ÉÏ£¬ÏÖÔÚÒѾ­ÒÆÖ²µ½¸÷ÖÖÀàUNIXϵͳÏÂÁË£¬WindowsÏÂÒ²ÓÐÏàÓ¦µÄ°æ±¾¡£Ïà¶ÔSamba·þÎñ£¬NFS¹²Ïí¾ßÓмòµ¥¿ìËÙµÄÌص㣬ËùÒÔÄ¿Ç°¹ã·ºÓÃÓÚÀàUNIXÖ÷»úÖ®¼äµÄ×ÊÔ´¹²Ïí¡£ÕâÀïÎÒÃǾÍÒÔRHEL3ÖÐNFSµÄÅäÖùý³Ì¼òµ¥½éÉÜNFS·þÎñµÄʵÏÖ¡£
3£® °²×°NFS·þÎñÆ÷
NFS·þÎñÐèÒªÁ½¸öÈí¼þ°ü£ºnfs-utils ºÍ portmap¡£¿ÉÒÔͨ¹ýÏÂÃæµÄÃüÁî²éѯϵͳÊÇ·ñÒѾ­°²×°ÁËNFS·þÎñ¡£
#rpm -q nfs-utils portmap
°²×°NFSÈí¼þ·Ç³£¼òµ¥£º
#rpm -ivh nfs-utils*.rpm
#rpm -q portmap*.rpm
4£® ÅäÖÃNFS·þÎñÆ÷
NFS·þÎñÆ÷µÄÅäÖÃÏà¶Ô±È½Ï¼òµ¥¡£ËüµÄÅäÖÃÎļþΪ/etc/exports¡£ÒªÉèÖù²Ïí£¬Ö»ÐèÒªÔÚÅäÖÃÎļþÖÐÉèÖ㬲¢ÖØÐÂÆô¶¯·þÎñ¼´¿É¡£
exportsÎļþµÄ½á¹¹±È½Ï¼òµ¥£¬ÆäÖеĿÕÐкÍÒÔ#¿ªÍ·µÄÐж¼±»ºöÂÔ£¬ÆäÓàÿÐоÍÊÇÒ»¸ö¹²ÏíµÄÅäÖã¬Ã¿¸ö¹²ÏíÅäÖÃÐеĻù±¾¸ñʽÈçÏ£º
¹²ÏíĿ¼ Ö÷»ú1(Ñ¡Ïî1£¬Ñ¡Ïî2) Ö÷»ú2(Ñ¡Ïî1£¬Ñ¡Ïî2) ……
¹²ÏíĿ¼ÊÇÒªÌṩ¹²ÏíµÄʵ¼ÊĿ¼£¬Ò»ÐÐÖ»ÄܳöÏÖÒ»¸öĿ¼¡£
Ö÷»úÊÇ¿ÉÒÔ·ÃÎʹ²ÏíµÄÖ÷»úÅäÖ㬿ÉÒÔʹÓÃͨÅä·û¡£¶à¸öÖ÷»úÅäÖÃÖ®¼äÐèҪʹÓÿոñ·Ö¸ô£¬Ã¿¸öÖ÷»úÅäÖÃÖ®ºó½ô¸ú·ÅÔÚÀ¨ºÅÖеÄÑ¡ÏîÅäÖã¬Ö®¼ä²»ÄÜÁôÓпոñ£¡Ö÷»úµÄÅäÖøñʽ±È½Ï¶à£¬ÏÂÃæ¾Í¸ø³ö¿ÉÄܵÄÖ÷»úÅäÖ÷½Ê½£º
Ö÷»ú±íʾ ˵Ã÷ ¾ÙÀý
µ¥¸öÖ÷»ú Ö÷»úÃû¡¢ÓòÃû»òIPµØÖ· 172.12.0.3 syd164.com.cn
NIS¹¤×÷×é NIS·þÎñÆ÷ÖеÄ×é @syd168
ͨÅä·û ¿ÉÒÔʹÓÃ*ºÍ£¿£¬*´ú±íÈÎÒ⣬£¿´ú±íÒ»¸öÈÎÒâ×Ö·û *.syd164.com
IPÍøÂç ÍøÂç±íʾ¸ñʽ 172.12.0.0/16
±í2-3
Ñ¡ÏîÅäÖÃÊÇÉèÖù²ÏíµÄ·ÃÎÊȨÏ޵ġ£Ö÷Òª°üÀ¨ÒÔÏÂһЩѡÏ
Ñ¡Ïî ˵Ã÷
rw Èù²ÏíµÄĿ¼¿ÉдÈ룬²»ÄÜÓëroͬʱʹÓÃ
ro ʹ¹²ÏíµÄĿ¼±äΪֻ¶Á
sync NFS·þÎñÆ÷ͬ²½Ð´Èë´ÅÅÌ£¬±£Ö¤Êý¾ÝµÄ°²È«ÐÔ
±í2-4
ÏÂÃæÊÇÒ»¸öNFSÅäÖõÄʾÀý£º
===========================/etc/exports===========================
#This is a example of exports by syd168
/home/share 172.12.*.*(ro£¬sync)
/share/public *.syd164.com(rw£¬sync)
5£® Æô¶¯NFS·þÎñÆ÷
Æô¶¯NFSµÄ·½·¨ºÍÆô¶¯ÆäËü·þÎñÆ÷µÄ·½·¨ÀàËÆ¡£Ê×Ïȼì²é·þÎñÊÇ·ñΪ×Ô¶¯Æô¶¯£¬Èç¹û²»ÊǾÍÐÞ¸ÄÉèÖ㬽ÓמͿÉÒÔÆô¶¯·þÎñÆ÷¡£ÏÂÃæ¾ÍÊÇÆô¶¯NFS·þÎñÆ÷µÄÃüÁ
#service nfs start
ҪֹͣNFS·þÎñ£¬¿ÉÒÔʹÓÃÈçÏÂÃüÁ
#service nsf stop
6£®


Ïà¹ØÎĵµ£º

¼àÊÓÎïÀí×é¼þµÄ¸ß¼¶ Linux ÃüÁî


ת×Ô£ºhttp://www.oracle.com/technology/global/cn/pub/articles/advanced-linux-commands/part3.html
×÷ÕߣºArup Nanda

2009 Äê 1 Ô·¢±í
Ôڴ˲¿·ÖÖУ¬Á˽âÓÃÓÚ¼àÊÓÎïÀí×é¼þµÄ¸ß¼¶ Linux ÃüÁî
Linux ϵͳÓÉÈô¸ÉÖ÷ÒªÎïÀí×é¼þ×é³É£¬Èç CPU¡¢ÄÚ´æ¡¢Íø¿¨ºÍ´æ´¢É豸¡£ÒªÓÐЧµØ¹ÜÀí Linux »·¾³£¬ÄúÓ¦¸ÃÄܹ»ÒÔºÏÀíµÄ¾ ......

linux ulimit max open files

ÓÐʱºòÔÚ³ÌÐòÀïÃæÐèÒª´ò¿ª¶à¸öÎļþ£¬½øÐзÖÎö£¬ÏµÍ³Ò»°ãĬÈÏÊýÁ¿ÊÇ1024£¬£¨ÓÃulimit -a¿ÉÒÔ¿´µ½£©¶ÔÓÚÕý³£Ê¹ÓÃÊǹ»ÁË£¬µ«ÊǶÔÓÚ³ÌÐòÀ´½²£¬¾ÍÌ«ÉÙÁË¡£
Ð޸İ취£º
ÖØÆô¾ÍOK
ÐÞ¸Ä2¸öÎļþ¡£
1./etc/security/limits.conf
vi /etc/security/limits.conf
¼ÓÉÏ£º
* soft nofile 8192
* hard nofile 20480
2./etc/pam.d/l ......

LinuxͼÐνçÃæÖпͻ§¶Ë·þÎñÆ÷´°¿Ú¹ÜÀíÆ÷Ö®¼äµÄ¹Øϵ


LinuxͼÐνçÃæÖпͻ§¶Ë¡¢·þÎñÆ÷¡¢´°¿Ú¹ÜÀíÆ÷Ö®¼äµÄ¹Øϵ
×÷Õߣº
ÁõºéÌΣ¬»ªÇåÔ¶¼ûǶÈëʽѧԺ
½ðÅƽ²Ê¦£¬ARM ATCÊÚȨÅàѵ½²Ê¦¡£
ºÜ
¶àLINUX³õѧÕßÔÚѧϰlinuxͼÐη½ÃæµÄ֪ʶʱ»áÓöµ½Ò»Ð©¸ÅÄÈ磺X¡¢X11¡¢Xfree86¡¢WM¡¢KDE¡¢GNOME¡¢QT¡¢QT/E¡¢
Qtopia¡¢DirectFB¡¢Framebuffer¡¢ÏÔ¿¨¼ÓËÙÇý¶¯µÈµÈ¡£Àí½âËüÃÇÖ ......

linuxϵĶ˿ÚɨÃè¼¼Êõ£¡

Õâ¸öÊÇÎÒÔÚÒ»±¾ÊéÉÏ¿´µ½µÄ£¬ÆäÖеÄһЩ´úÂëÎÒÓÐËù¸Ä±ä£¬Ð´¸ø¸÷λºÃÓѹ²Ïíһϣ¡
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h&g ......

×Ô¼º¼ÇµÄһЩlinux³£Óö«Î÷1

²é¿´ËùÓл·¾³±äÁ¿  printenv
ÉèÖãºexport ±äÁ¿Ãû=±äÁ¿Öµ
ɾ³ý£ºunset ±äÁ¿Ãû
Èç¹ûÄãÏë²é¿´Ä³Ò»¸öÃû³ÆµÄ»·¾³±äÁ¿£¬ÃüÁîÊÇ£ºecho $»·¾³±äÁ¿Ãû£¬±ÈÈ磺
echo $ORACLE_HOME
cat ²é¿´ÃüÁî
source ÉúЧ
vi±à¼­Æ÷
ÏÈ°´esc£¬È»ºóÊäÈë :q! £¬´æÅÌÍ˳öÊäÈë :wq
2¡¢X·½Ê½:
¡¡¡¡(1). vi /etc/services # È·±£xdmcp¶Ë¿ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ