Centos NFS
centos nfs
<-- server:192.168.1.73 –>
[[email protected]]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain
[[email protected]]#cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.1.76 client.localdomain client
//开机启动nfs server
[[email protected]]#chkconfig nfs on
//启动nfs
[[email protected]]# mkdir /data/cache
[[email protected]]# 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
本文作者:Seven Chen
版权声明:本文首发于Seven Chen的博客,转载请注明出处!