linux nfs實踐
linux nfs實踐
以下是nfs伺服器(需要共享出目錄來的那個機器)上的操作
修改/etc/exports,要將/home/work目錄共享出來
[root@rhel4u6 work]# cat /etc/exports
/home/work 192.168.179.* (rw,sync,no_root_squash)
[root@rhel4u6 home]# /etc/rc.d/init.d/portmap start
Starting portmap: [ OK ]
[root@rhel4u6 home]# /etc/init.d/nfs start
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
[root@rhel4u6 work]# exportfs
exportfs: No host name given with /home/work
(rw,sync,wdelay,hide,nocrossmnt,secure,no_root_squash,no_all_squash,subtree_check,secure_locks,map
ping=identity,anonuid=-2,anongid=-2), suggest *
(rw,sync,wdelay,hide,nocrossmnt,secure,no_root_squash,no_all_squash,subtree_check,secure_locks,map
ping=identity,anonuid=-2,anongid=-2) to avoid warning
/home/work 192.168.179.*
/home/work
[root@rhel4u6 work]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 28G 15G 12G 56% /
none 232M 0 232M 0% /dev/shm
[root@rhel4u6 work]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0C:29:BC:EF:F1
inet addr:192.168.179.40 Bcast:192.168.179.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:febc:eff1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:839 errors:0 dropped:0 overruns:0 frame:0
TX packets:614 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:78907 (77.0 KiB) TX bytes:71583 (69.9 KiB)
Base address:0x2000 Memory:d8920000-d8940000
到一個linux客戶端去mount:
[root@localhost ~]# mount -t nfs 192.168.179.40:/home/work /mnt/haha
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 13G 9.8G 2.2G 83% /
tmpfs 270M 154M 116M 58% /dev/shm
192.168.179.40:/home/work
28G 15G 12G 56% /mnt/haha
透過修改/etc/fstab檔案可以實現開機自動掛載nfs目錄
192.168.179.40:/home/work /mnt/haha nfs defaults 0 0
[@more@]來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/161195/viewspace-1055923/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- linux nfsLinuxNFS
- Linux配置NFS實現檔案共享LinuxNFS
- linux NFS 配置LinuxNFS
- linux配置nfsLinuxNFS
- NFS文件(FOR LINUX)NFSLinux
- Linux下搭建 NFSLinuxNFS
- Linux中利用NFS實現飛鴿傳書LinuxNFS
- 【NFS】linux NFS "unmatched host" 異常小測試NFSLinux
- 【NFS】Linux配置NFS共享常用SQL指令碼目錄NFSLinuxSQL指令碼
- Linux命令實踐Linux
- Oracle Linux 6.4配置NFSOracleLinuxNFS
- linux nfs 共享目錄LinuxNFS
- linux下nfs的建立LinuxNFS
- Linux 上配置、使用NFSLinuxNFS
- RAC On Linux Using NFSLinuxNFS
- 【Linux】 nfs 故障處理LinuxNFS
- linux下nfs的配置LinuxNFS
- Linux 提權-NFS 共享LinuxNFS
- Linux實踐總結Linux
- Linux伺服器---配置nfsLinux伺服器NFS
- Linux伺服器—配置nfsLinux伺服器NFS
- Linux-NFS——配置過程LinuxNFS
- linux Direct NFS配置介紹LinuxNFS
- linux 配置nfs(rman 備份)LinuxNFS
- 超全的NFS文件(FOR LINUX)NFSLinux
- Linux中NFS介紹(轉)LinuxNFS
- 在linux下搭建NFS伺服器實現檔案共享LinuxNFS伺服器
- Linux伺服器---安裝nfsLinux伺服器NFS
- AIX下配置NFS共享給LINUXAINFSLinux
- Linux下NFS掛載NAS方式LinuxNFS
- Linux檔案共享(FTP+NFS)LinuxFTPNFS
- 在Linux中,如何配置NFS共享?LinuxNFS
- 【Linux】在多臺linux 之間掛載nfsLinuxNFS
- 配置基於LINUX的NFS掛載LinuxNFS
- LINUX共享WINDOWS磁碟的NFS好工具LinuxWindowsNFS
- linux:ora-27054:nfs file system errorLinuxNFSError
- linux中配置NFS服務step by stepLinuxNFS
- Linux下安裝nfs伺服器LinuxNFS伺服器