Linux中mount一个NFS文件系统目录到指定目录

mount一个NFS文件系统目录到指定目录:

mount -t nfs -o rw  10.130.24.244:/home/backup /home/backup_244

前提条件:

10.130.24.244开启nfs服务

1) 启动NFS的方法和启动其他服务器的方法类似。首先需要启动portmap和nfs这两个服务,并且portmap服务一定要先于nfs服务启动。

/etc/init.d/portmap start

/etc/init.d/nfs start 

2)编辑/etc/exports 

/home/backup      10.130.24.*(rw,async,anonuid=0,anongid=0)

3)运行 exportfs -a

Advertisement
This entry was posted in 计算机与 Internet. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s