RHCE——访问具有网络文件系统(NFS)的网络储存

来源:互联网 发布:linux 增加用户组 编辑:程序博客网 时间:2024/05/17 22:07

SMB配置

1.[global] //此段定义sambal服务器选项  workgroup //定义工作组名称2.[共享名]    comment = //对共享的描述    path = //共享目录的路径    browseable = Yes/No //是否可预览    write = Yes/No   //是否可写    averable = Yes/No //是否可开启    admin users //文件管理者     invalid users //禁止访问的用户     write list         read list

服务器端

[root@iZtoz99sjuwqcnZ ~]# rpm -qa nfs-utilsnfs-utils-1.3.0-0.33.el7_3.x86_64[root@iZtoz99sjuwqcnZ ~]# vim /etc/exports[root@iZtoz99sjuwqcnZ ~]# cd /[root@iZtoz99sjuwqcnZ /]# mkdir aa bb[root@iZtoz99sjuwqcnZ /]# chmod o+w aa[root@iZtoz99sjuwqcnZ /]# systemctl start rpcbind[root@iZtoz99sjuwqcnZ /]# systemctl start nfs-senfs-secure-server.service  nfs-server.servicenfs-secure.service                [root@iZtoz99sjuwqcnZ /]# systemctl start nfs-server[root@iZtoz99sjuwqcnZ aa]# lldrwxr-xr-x. 141 root      root      12288 84 14:38 etc

用户端

[root@server ~]# showmountclnt_create: RPC: Program not registered[root@server ~]# showmount -e 120.24.222.231Export list for 120.24.222.231:/aa 113.209.100.0/24/bb 113.209.100.152[root@server ~]# mount -t nfs 120.24.222.231:/aa /mnt/aa[root@server ~]# mount -t nfs 120.24.222.231:/bb /mnt/bb[root@server ~]# cd /mnt/[root@server mnt]# ll总用量 8drwxr-xrwx 3 root root 4096 84 14:41 aadrwxr-xr-x 2 root root 4096 84 14:38 bb[root@server mnt]# ll aa总用量 12drwxr-xr-x 141 root root 12288 84 14:38 etc[root@server aa]# lldrwxr-xr-x 141 root      root      12288 84 14:38 etc[root@server mnt]# cd bb[root@server bb]# touch fftouch: 无法创建"ff": 只读文件系统

访问具有网络文件系统(NFS)的网络储存

原创粉丝点击