Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build NFS server under ubuntu

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

The steps are as follows:

1. Software download and installation

# apt-get install nfs-kernel-servernfs-common portmap

two。 Create the nfs directory and extract the file system (take the rootfs.tar.bz2 file system as an example, the current directory is the root directory)

# mkdir nfs_rootfs

# tar-xvf rootfs.tar.bz2-C / nfs_rootfs/

3. Modify the configuration file

# vim / etc/exports

Add the following configuration to the file:

/ nfs_rootfs * (rw,sync,no_root_squash)

4. Restart configuration files and services

# exportfs-rv

# / etc/init.d/portmap restart

# / etc/init.d/nfs-kernel-server restart

5. Verify the nfs server. After executing the following command, check the / mnt directory and you will see the file system you just extracted.

# mount-t nfs-o nolock

192.168.2.51:/nfs_rootfs / mnt Note: 192.168.2.51 is the NFS server host IP

# ls / mnt/

Description: the mount command can be executed on another Linux system.

In this way, the NFS server is successfully built under ubuntn.

I realized the above steps on the linux based on the electric fish electronic development board, and interested partners can continue to study it.

Www.dianyu.net

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report