본문 바로가기
★━Mac〃

MacOS NFS 설정

by Raynee 2022. 2. 12.
반응형

http://scottlab.ucsc.edu/xtal/wiki/index.php/NFS_on_OS_X_10.5_and_above

 

 

이 예에서는 Mac의 /Users 폴더를 네트워크의 다른 컴퓨터에서 사용할 수 있도록 설정하겠습니다.

  1. /Applications/Utilities 에서 터미널을 엽니다.
     
  2. 다음 명령을 입력하여 /etc/exports 파일을 편집합니다.
    sudo nano /etc/exports 
     
  3. 메시지가 표시되면 암호를 입력합니다.
     
  4. 다음 예와 유사한 행을 파일에 추가합니다(IP 주소 및 마스크를 네트워크에서 사용하는 IP 주소 및 마스크로 변경). 네트워크 관리자에게 이 정보를 문의하십시오.)
    /Users -network 192.168.0.0 -mask 255.255.0.0 
     
  5. ctrl+o를 누른 다음 Enter 키를 눌러 파일을 저장합니다.
     
  6. ctrl+x를 눌러 문자 편집기를 종료합니다.
      
  7. 다음 명령을 입력하여 nfsd를 활성화합니다.
    sudo nfsd 활성화
     
  8. 다음 명령을 입력하여 공유가 제대로 활성화되었는지 테스트합니다.
    showmount -e
     
    이 명령 출력은 다음과 유사해야 합니다.
    /Users Everyone
     
    네트워크의 Linux 또는 Mac 컴퓨터에서 이제 이 Mac에 /Users 디렉토리를 마운트할 수 있습니다.
    (Linux에서는 mount -t nfs 명령 또는 amd automouter를 사용합니다. 다른 Mac의 경우 Finder를 열고 SHIFT+CTRL+G를 누른 다음 /net//Users를 입력합니다.

 

 

 

 

 

 

 

 

In this example, we'll make the /Users folder on the Mac available to other computers on the network.

  1. Open the Terminal from /Applications/Utilities.
     
  2. Type the following command to edit the /etc/exports file:
    sudo nano /etc/exports 
     
  3. Enter your password when prompted.
     
  4. Add a line to file similar to the following example (change the IP address and mask to the one used by your network. Ask your network administrator for this information):
    /Users -network 192.168.0.0 -mask 255.255.0.0 
     
  5. Press control+o and then Enter to save the file.
     
  6. Press control+x to exit the text editor.
      
  7. Type the following command to enable nfsd:
    sudo nfsd enable
     
  8. Type the following command to test that the sharing is properly enabled.:
    showmount -e
     
    This command output should be similar to the following:
    /Users                                Everyone
     
    Linux or Mac computers on your network should now be able to mount the /Users directory on this Mac.
    (In Linux use the mount -t nfs command, or the amd automounter. On another Mac, open Finder, press SHIFT+CTRL+G and enter /net/<hostname_of_sharing_Mac>/Users).
반응형

댓글