This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
сервис_nfs [2019/01/23 16:46] val [Windows 2008] |
сервис_nfs [2022/07/07 20:58] (current) val [Dеbian/Ubuntu] |
||
---|---|---|---|
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 install nfs-kernel-server | root@server:~# apt install nfs-kernel-server | ||
Line 13: | Line 13: | ||
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) | ||
+ | |||
+ | #/var/www *(rw,sync,no_root_squash,subtree_check) | ||
+ | #/var/www 172.16.0.0/12(rw,sync,no_subtree_check,no_root_squash) 192.168.0.0/16(rw,sync,no_subtree_check,no_root_squash) 10.0.0.0/8(rw,sync,no_subtree_check,no_root_squash) | ||
</code><code> | </code><code> | ||
root@server:~# service nfs-kernel-server restart | root@server:~# service nfs-kernel-server restart | ||
Line 64: | Line 67: | ||
[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 80: | ||
</code> | </code> | ||
- | В свойствах папки включить NFS Sharing, и настроить Permissions (ALL_MACHINES ReadWrite, AllowRootAccess) | + | В свойствах папки (лобой, но удобнее C:\home) включить NFS Sharing, и настроить Permissions (ALL_MACHINES ReadWrite, AllowRootAccess) |
- | <code> | ||
- | # mount server:/home /home | ||
- | |||
- | # chmod 777 /home | ||
- | </code> | ||
==== Windows 2016 ==== | ==== Windows 2016 ==== | ||
Line 143: | Line 143: | ||
==== Установка ПО ==== | ==== Установка ПО ==== | ||
+ | |||
+ | === Debian/Ubuntu === | ||
+ | <code> | ||
+ | nfsclient# mount nfsserver:/var/cache/apt/archives /mnt | ||
+ | |||
+ | nfsclient# dpkg -i /mnt/*deb | ||
+ | </code> | ||
=== FreeBSD === | === FreeBSD === | ||
Line 167: | Line 174: | ||
</code> | </code> | ||
- | === Ubuntu === | ||
- | <code> | ||
- | root@gate:~# mount nfs:/var/cache/apt/archives /mnt | ||
- | |||
- | root@gate:~# dpkg -i /mnt/fetchmail* | ||
- | |||
- | root@gate:~# umount /mnt | ||
- | </code> |