MAC OS에서 mount nfs 오류 메시지가 표시됩니다.

1898 단어
MAC OS에서 mount nfs 오류 문제를 기록해 두십시오.
환경 및 구성 파일
  • NFS 서버
  • Ubuntu
  • apt install nfs-kernel-server
  • 설치

  • 서버의 프로필
  • cat /etc/exports

  • /nfsdata  192.168.22.1/26(rw,sync,insecure,no_root_squash)
  • CentOS에서 테스트 마운트
  • yum install nfs-utils -y
  • mount -t nfs -o rw 192.168.22.8:/nfsdata /tmp/test

  • Ubuntu에서 테스트 마운트
  • apt install nfs-common -y
  • mount -t nfs -o rw 192.168.22.8:/nfsdata /tmp/test

  • Mac OS에서 테스트 마운트
  • 마운트 명령 사용
  • mount -t nfs -o rw 192.168.22.8:/nfsdata /tmp/test

  • find 수동 연결 사용
  • finder -> "향"-> "서버 연결..."열린 창에 "nfs://192.168.22.8/nfsdata"


  • 질문 포인트 1 (/etc/exports) 의 설정 파일은 insecure 파라미터를 넣어야 합니다. 그렇지 않으면 Mac OS에서 서버 오류를 찾을 수 없습니다.
    /nfsdata 192.168.22.1/26(rw,sync,insecure,no_root_squash)
    문제점2macos 사용자 id와 서버 id가 일치하지 않아 설정 권한에 문제가 있습니다.쓰기 작업이 불가능합니다.해결 방법은chmod777/nfsdata를 직접 만들 수 있습니다. 이런 방법은 서버에서 맥과 같은 사용자를 새로 만들고 추가 권한을 설정하면 됩니다.mac단에서 자신의 uidid
    id
    
    uid=501(makeit) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),33(_appstore
    nfs서비스단
    #        uid
    useradd -u 501 makeit
    #           
    #ubuntu      chfacl,        `apt install acl -y`
    chfacl -m makeit:rwx -R /nfsdata
    #          ,    usermod       
    usermod -u 501 makeit
    이상 작업이 완료되면find에서 파일을 삭제할 수 있습니다.enjoy
    참조:https://www.server-world.info/en/note?os=Ubuntu_16.04&p=acl https://blog.csdn.net/zyqblog/article/details/79226826#23-%E6%9D%83%E9%99%90%E6%8E%A7%E5%88%B6-acl https://www.jianshu.com/p/5314f90330a6

    좋은 웹페이지 즐겨찾기