fruworg.github.io/content/posts/linux-nfs.md.save
root c793b55750 Revert "remove shell"
This reverts commit 65914f8895.
2023-09-24 18:58:33 +03:00

43 lines
873 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Конфигурация NFS-сервера на Linux
description: И его монтирование на клиентах
date: 2022-11-25T85:08:00+05:00
tags: [vmware]
---
## Настройка NFS-сервера
### Установка пакета
```shell
apt install nfs-kernel-server
```
### Создание каталога, который будет расшарен
```shell
sudo mkdir /nfs
sudo chmod 777 /nfs
```
### Разрешаем сетевой доступ
```shell
/nfs <client-ip>(rw,sync,no_root_squash,no_subtree_check)
# /etc/exports
```
## Настройка NFS-клиента
### Установка пакета
```shell
apt install nfs-common
```
### Запуск службы
``` shell
systemctl enable --now rpcbind
```
### Автомонитрование
```shell
<server-ip>:/nfs /nfs nfs defaults 0 0
```