typora/daliy_note/8月归档/8.26/nfs.md

36 lines
365 B
Markdown
Raw Permalink Normal View History

2024-12-11 21:48:55 -05:00
### centos 挂载
#### 1. 安装 nfs-utils
```bash
yum install nfs-utils -y
```
#### 2. 挂载目录
```bash
mount -t nfs 192.168.0.4:/export/share /mnt/nfs
```
#### 3. 检查挂载
```bash
df -h | grep nfs
```
#### 4. 卸载
```bash
umount /mnt/nfs
```
### ubuntu挂载
#### 1. 安装 nfs-common
```bash
apt install nfs-common
```
#### 2. 剩余同上