mirror of
https://github.com/fruworg/fruworg.github.io.git
synced 2025-06-26 04:53:59 +03:00
remove shell
This commit is contained in:
@ -7,18 +7,18 @@ tags: [linux, nfs]
|
||||
## Настройка NFS-сервера
|
||||
|
||||
### Установка пакета
|
||||
```shell
|
||||
```
|
||||
apt -y install nfs-kernel-server
|
||||
```
|
||||
|
||||
### Создание каталога, который будет расшарен
|
||||
```shell
|
||||
```
|
||||
mkdir /nfs
|
||||
chmod 777 /nfs
|
||||
```
|
||||
|
||||
### Разрешение сетевого доступа
|
||||
```shell
|
||||
```
|
||||
/nfs <client-ip>(rw,sync,no_root_squash,no_subtree_check)
|
||||
|
||||
# /etc/exports
|
||||
@ -27,17 +27,17 @@ chmod 777 /nfs
|
||||
## Настройка NFS-клиента
|
||||
|
||||
### Установка пакета
|
||||
```shell
|
||||
```
|
||||
apt -y install nfs-common
|
||||
```
|
||||
|
||||
### Запуск службы
|
||||
``` shell
|
||||
```
|
||||
systemctl enable --now rpcbind
|
||||
```
|
||||
|
||||
### Автомонитрование
|
||||
```shell
|
||||
```
|
||||
<server-ip>:/nfs /nfs nfs defaults 0 0
|
||||
|
||||
# /etc/fstab
|
||||
|
Reference in New Issue
Block a user