论坛风格切换
  • 2703阅读
  • 0回复

Nfs挂载指南 [复制链接]

上一主题 下一主题
离线谯周
 

发帖
142
金币
0
威望
55
只看楼主 倒序阅读 使用道具 楼主  发表于: 2011-06-08


服务器(129.1.9.1)



yum install nfs* portmap
vi /etc/exports
##
/www/users/p8.hsw.cn/data 129.1.10.6(rw,sync,fsid=0)
/www/users/p8.hsw.cn/attachment 129.1.10.6(rw,sync,fsid=0)
###
chkconfig nfs on
chkconfig portmap on
service portmap start
service nfs start
rpcinfo -p
exportfs

nfs客户端(129.1.10.6)
service portmap start
showmount -e 129.1.9.1
mount -t nfs 129.1.9.1:/www/users/p8.hsw.cn/data /www/users/p8.hsw.cn/data
mount -t nfs 129.1.9.1:/www/users/p8.hsw.cn/attachment /www/users/p8.hsw.cn/attachment
加入自动启动项
echo "mount -t nfs 129.1.9.1:/www/users/p8.hsw.cn/data /www/users/p8.hsw.cn/data">>/etc/rc.local
echo "mount -t nfs 129.1.9.1:/www/users/p8.hsw.cn/attachment /www/users/p8.hsw.cn/attachment">>/etc/rc.local
快速回复
限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
提到某人:
选择好友
上一个 下一个