Toc
0 results found
Seven Chen
Centos NFS
2009/03/24 技术杂文

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

本文作者:Seven Chen
版权声明:本文首发于Seven Chen的博客,转载请注明出处!