User Tools

Site Tools


сервис_nfs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
сервис_nfs [2016/03/02 15:34]
val [Ubuntu/Dеbian]
сервис_nfs [2021/10/14 09:42]
val [Windows 2008]
Line 7: Line 7:
   * [[http://​ru.wikipedia.org/​wiki/​Network_File_System|Network File System]]   * [[http://​ru.wikipedia.org/​wiki/​Network_File_System|Network File System]]
  
-==== Ubuntu/Dеbian ====+==== Dеbian/​Ubuntu ​====
 <​code>​ <​code>​
-root@server:​~#​ apt-get install nfs-kernel-server+root@server:​~#​ apt install nfs-kernel-server
 </​code><​code>​ </​code><​code>​
 root@server:​~#​ cat /​etc/​exports root@server:​~#​ cat /​etc/​exports
 </​code><​code>​ </​code><​code>​
-#/​var/​cache/​apt/​archives 192.168.X.0/24(ro,​sync,​no_subtree_check)+#/​var/​cache/​apt/​archives 192.168.0.0/16(ro,​sync,​no_subtree_check)
 #/home 192.168.X.0/​24(rw,​sync,​no_subtree_check) #/home 192.168.X.0/​24(rw,​sync,​no_subtree_check)
 #/​var/​www/​html/​sarg 192.168.X.1(rw,​sync,​no_subtree_check,​no_root_squash) #/​var/​www/​html/​sarg 192.168.X.1(rw,​sync,​no_subtree_check,​no_root_squash)
Line 64: Line 64:
 [root@server ~]# find /home -type d -exec chmod 755 {} \; [root@server ~]# find /home -type d -exec chmod 755 {} \;
 </​code>​ </​code>​
 +
 +==== Windows Server ====
  
 ==== Windows 2003 ==== ==== Windows 2003 ====
Line 75: Line 77:
 </​code>​ </​code>​
  
-В свойствах папки включить NFS Sharing, и настроить Permissions (ALL_MACHINES ReadWrite, AllowRootAccess)+В свойствах папки ​(лобой,​ но удобнее C:​\home) ​включить NFS Sharing, и настроить Permissions (ALL_MACHINES ReadWrite, AllowRootAccess)
  
-<​code>​ + 
-# chown 777 /home +==== Windows 2016 ==== 
-</code>+ 
 +  * [[http://​blog.bobbyallen.me/​2018/​01/​18/​windows-server-2016-as-an-nfs-server-for-linux-clients/|Windows Server 2016 as an NFS server for Linux clients]]
 ===== Перезапуск сервиса ===== ===== Перезапуск сервиса =====
 (при изменении файла exports) (при изменении файла exports)
Line 88: Line 91:
 </​code>​ </​code>​
  
-==== Ubuntu ====+==== Ubuntu/​Debian ​====
 <​code>​ <​code>​
 root@server:​~#​ service nfs-kernel-server force-reload root@server:​~#​ service nfs-kernel-server force-reload
Line 95: Line 98:
 ===== Установка nfs клиента ===== ===== Установка nfs клиента =====
  
-==== Ubuntu ====+==== Debian/Ubuntu ====
 <​code>​ <​code>​
-root@client1:​~#​ apt-get install nfs-common+root@client1:​~#​ apt install nfs-common
 </​code>​ </​code>​
  
Line 137: Line 140:
  
 ==== Установка ПО ==== ==== Установка ПО ====
 +
 +=== Debian/​Ubuntu ===
 +<​code>​
 +nfsclient# mount nfsserver:/​var/​cache/​apt/​archives /mnt
 +
 +nfsclient# dpkg -i /mnt/*deb
 +</​code>​
  
 === FreeBSD === === FreeBSD ===
Line 161: Line 171:
 </​code>​ </​code>​
  
-=== Ubuntu === 
-<​code>​ 
-root@gate:​~#​ apt-get install nfs-common 
- 
-root@gate:​~#​ mount nfs:/​var/​cache/​apt/​archives /mnt 
- 
-root@gate:​~#​ dpkg -i /​mnt/​fetchmail* 
- 
-root@gate:​~#​ umount /mnt 
-</​code>​ 
сервис_nfs.txt · Last modified: 2024/04/16 12:34 by val