Setting up an NFS server: Difference between revisions

From Alpine Linux
No edit summary
m (Arrogance moved page Setting up a nfs-server to Setting up an NFS server: spelling/grammar)
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:


= Make it autostart =
= Make it autostart =
Export dirs in /etc/export, then  
Export dirs in /etc/exports, then  
{{Cmd|rc-update add nfs}}
{{Cmd|rc-update add nfs}}


Line 26: Line 26:


{{Cmd|rc-service netmount start}}
{{Cmd|rc-service netmount start}}
[[Category:Server]]

Latest revision as of 06:44, 30 May 2023

Installation

Install package:

apk add nfs-utils

Make it autostart

Export dirs in /etc/exports, then

rc-update add nfs

If you need just to mount nfs share from fstab file at booting of the system

rc-update add nfsmount

or

rc-update add netmount

You can check your boot services:

rc-status

Start it up now

rc-service nfs start

or if you need to mount nfs share from fstab file now

rc-service nfsmount start

or

rc-service netmount start