MAC OS에서 mount nfs 오류 메시지가 표시됩니다.
환경 및 구성 파일
cat /etc/exports
/nfsdata 192.168.22.1/26(rw,sync,insecure,no_root_squash)
yum install nfs-utils -y
mount -t nfs -o rw 192.168.22.8:/nfsdata /tmp/test
apt install nfs-common -y
mount -t nfs -o rw 192.168.22.8:/nfsdata /tmp/test
mount -t nfs -o rw 192.168.22.8:/nfsdata /tmp/test
질문 포인트 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
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.