Centos NFS

centos nfs

<-- server:192.168.1.73 -->

[root@localhost]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain

[root@localhost]#cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.1.76 client.localdomain client

//开机启动nfs server
[root@localhost]#chkconfig nfs on

//启动nfs
[root@localhost]# mkdir /data/cache
[root@localhost]# vi /etc/exports
/data/cache/ 192.168.1.76(rw,no_root_squash,no_all_squash,sync)

<-- client:192.168.1.76 -->

bsd#mkdir /data/cache/
bsd#mount 192.168.1.73:/data/cache /data/cache

//开机挂载
bsd#vi /etc/fstab

//加入下行
192.168.1.73:/data/cache /data/cache nfs rw 0 0

humen1 Tech