from wiki

This commit is contained in:
Randy Bush 2020-07-04 14:43:03 -07:00
parent 6f4be824c9
commit b3f1c89320

43
pages/NFS.md Normal file
View file

@ -0,0 +1,43 @@
# Installing NFS on Xenial
A quick crib on how to install and start an NFS server on Xenial
## Install the packages
Update package repo, of course, then install the server
```
apt update
apt upgrade
apt install nfs-kernel-server
```
## Set up Directory to be Exported
I will use an ISO archive as an example
```
mkdir /ISOs
chmod 777 ISOs
```
## Set up /etc/exports
```
cat > /etc/exports << EOF
/ISOs 198.180.152.30/31(rw,sync,no_subtree_check)
/ISOs 198.180.152.32/31(rw,sync,no_subtree_check)
EOF
```
## Start Daemon
```
systemctl start nfs-kernel-server.service
```
## Be Sure it Starts on Boot
```
systemctl enable nfs-kernel-server
```