centos 6 NFS 搭建

来源:互联网 发布:网络打印机添加ip 编辑:程序博客网 时间:2024/06/10 23:19

NFS 服务端

1 检查并安装NFS服务

rpm -aq nfs-utils rpcbind

2 安装NFS服务端

yum install -y nfs-utils rpcbind


3 启动服务并检查

/etc/init.d/rpcbind start

/etc/init.d/nfs start

ps -ef|egrep "nfs|rpcbind"

4设置开机启动

chkconfig nfs on

chkconfig rpcbind on

chkconfig --list|egrep "nfs|rpcbind"


5 配置

cat >>/etc/exports <<EOF/data 192.168.106.0/24(rw,sync)
EOF
/etc/init.d/nfs reload


NFS客户端

1 检查并安装NFS服务

rpm -aq nfs-utils rpcbind

2 安装NFS服务端

yum install -y nfs-utils rpcbind


3 启动服务并检查

/etc/init.d/rpcbind start

ps -ef|grep "pcbind"

4设置开机启动

chkconfig rpcbind on

chkconfig --list|grep "rpcbind"

5 挂载

mount -t nfs 192.168.106.137:/data /mnt


故障检查方法:

ping 192.168.106.137
telnet 192.168.106.137 111




0 0
原创粉丝点击