NFS在ubuntu 7.10上简单安装

NFS在ubuntu7.10下安装

server端:

首先是安装服务器相关软件

sudo apt-get install nfs-kernel-server

vi /etc/exports

添加:
/home 172.16.30.211(rw,subtree_check)

exports文件的具体修改方式可以通过 man exports

/home为服务器上需要映射的目录

172.16.30.211为客户端IP,也可以写成 172.16.30.0/24 这样的网段形式

执行

 exportfs -rv

用来重新进行同步共享,并显示出来

最后重启下nfs服务器程序就可以了

sudo /etc/init.d/nfs-kernel-server start

client端

在7.10中client端需要安装nfs-common

sudo apt-get install nfs-common
映射服务器端的/home目录
sudo mount -t nfs 172.16.30.189:/home /home

关于 Timo
XNIX SA & MYSQL DBA

发表评论

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 / 更改 )

Twitter picture

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

Facebook photo

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

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: