ubuntu上的NFS服务器与,目标机的NFS客户端
2012-09-24 09:39
183 查看
Configure NFS Server to share any directories in local network. | |
[1] | Configuration on the system you want to build NFS server |
root@dlp:~# aptitude -y install nfs-kernel-server root@dlp:~# vi /etc/exports # write like below *note /home 10.0.0.0/24(rw,sync,fsid=0,no_root_squash,no_subtree_check) # *note /home ⇒ shared directory 10.0.0.0/24 ⇒ range of networks NFS permits accesses rw ⇒ possible to read and write sync ⇒ synchronize no_root_squash ⇒ enable root privilege no_subtree_check ⇒ disable subtree check root@dlp:~# /etc/init.d/nfs-kernel-server restart * Stopping NFS kernel daemon ...done. * Unexporting directories for NFS kernel daemon... ...done. * Exporting directories for NFS kernel daemon... ...done. * Starting NFS kernel daemon ...done. |
[2] | Configuration on NFS clients |
aptitude -y install nfs-common
root@www:~#
mount -t nfs dlp.server.world:/home /home
root@www:~#
df -h
Filesystem Size Used Avail Use% Mounted on /dev/mapper/ubuntu-root 18G 1.3G 16G 8% / udev 993M 4.0K 993M 1% /dev tmpfs 401M 228K 401M 1% /run none 5.0M 0 5.0M 0% /run/lock none 1002M 0 1002M 0% /run/shm /dev/vda1 228M 25M 192M 12% /boot dlp.server.world:/home 18G 1.3G 16G 8% /home
# home directory on NFS is mounted
root@www:~#
vi /etc/fstab
# add at the last: change home directory this server mounts to the one on NFS
dlp.server.world:/home /home nfs defaults 0 0
相关文章推荐
- Ubuntu下配置NFS服务器和客户端
- Ubuntu 12.04 Nfs 服务器和客户端的安装和配置
- Ubuntu NFS 服务器客户端配置方法
- Ubuntu配置NFS服务器与客户端
- Ubuntu 14和 Win7 下NFS服务器与客户端配置(Ubuntu 14.04.02)
- ubuntu下开发环境配置:nfs服务器的搭建
- 嵌入式 linux 开发,Ubuntu OS 进行 NFS 服务器端与客户端的安装
- ubuntu 8.10配置NFS服务器
- Ubuntu中nfs服务器安装与配置
- Cloudera Manager安装之时间服务器和时间客户端(Ubuntu14.04)(二)
- Ubuntu下NFS服务器的bug
- ubuntu 下配置nfs服务器
- ubuntu 挂载服务器文件方法 nfs
- ubuntu下svn服务器及客户端
- ubuntu 10.04下的tftp/nfs服务器搭建
- NFS服务器和客户端的配置
- Ubuntu下搭建nfs服务器
- ubuntu下配置nfs服务器
- ubuntu下为Tiny6410搭建nfs服务器
- Ubuntu NFS服务器创建步骤