1.首先需要启动aix 上的nfs 服务

startsrc -g nfs

或者 smit nfs  -->  Network File System (NFS)  -->  Configure NFS on This System  -->  Start NFS

停止nfs

stopsrc -g nfs

2. 在aix系统上,创建一个共享目录,与普通目录无区别

例如 /test

3. 编辑 /etc/exports

/test -sec=sys:krb5p:krb5i:krb5:dh,rw,access=192.168.77.100:192.168.77.101,root=192.168.77.100:192.168.77.101

红色部分是需要手动添加的。

access 代表 可以被访问的ip。只读

root 代表可对文件进行操作。可写

多个ip用冒号分割。

4.编辑完后并不是及时生效。

使用exportfs -a 生效

5.在linux client 机器上查看目录

showmount -e ip

6.编辑/etc/hosts文件,主机名对应IP

xxx.xxx.xxx.xxx  主机名

7.client 新建目录,挂载nfs目录

mkdir /test

mount [-t nfs] nfsserver_ip:/test /test

mount  服务器ip目录  本地目录

相关文章:

  • 2021-04-27
  • 2022-12-23
  • 2021-11-27
  • 2022-01-19
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
相关资源
相似解决方案