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 a NFS server in ubuntu

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article introduces you how to build a NFS server in ubuntu, the content is very detailed, interested friends can refer to, hope to be helpful to you.

Build NFS server under ubuntu

NFS is one of the most commonly used data storage services in the current Internet system architecture, NFS network file system is generally used to store and share videos, pictures, attachments and other static resources (generally put the files uploaded by website users into NFS sharing, such as BBS products pictures, attachments, for the first time) in our daily work commonly used servers, so how to build NFS server is very important! How to build it? Next, let me explain to you one by one:

1. Software download and installation

# apt-get install nfs-kernel-server nfs-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.

On how to build a NFS server in ubuntu to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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

Internet Technology

Wechat

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

12
Report