from wiki
This commit is contained in:
parent
6f4be824c9
commit
b3f1c89320
1 changed files with 43 additions and 0 deletions
43
pages/NFS.md
Normal file
43
pages/NFS.md
Normal 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
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue