RedHat Enterprise Linux 5 NFS服务器
来源:互联网 发布:旅游软件有哪些 编辑:程序博客网 时间:2024/04/30 06:45
NFS的安装
NFS(Network File System,网络文件系统)是一种将远程主机上的分区(目录)经网络挂在到本地的一种机制,通过对网络文件系统的支持,用户可以在本地系统上像操作本地分区一样来对远程主机的共享分区(目录)进行操作,类似于windows的共享目录。
查看安装版本
[root@localhost Server]# rpm -q nfs-utils-1.0.9-24.el5.i386.rpm
package nfs-utils-1.0.9-24.el5.i386.rpm is not installed
没有安装,从光盘中找到相应的RPM安装包并安装
[root@localhost Server]# rpm -ivh nfs-utils-1.0.9-24.el5.i386.rpm
warning: nfs-utils-1.0.9-24.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
package nfs-utils-1.0.9-24.el5 is already installed
NFS配置,加入允许其他计算机访问的目录和访问权限
[root@localhost Server]# vi /etc/exports
例
/home 192.168.1.* (rw,sync,no_boot_squash)
1、home:允许其它计算机访问的目录
2、192.168.1.*:被允许访问该目录的客户端IP地址
3、rw:可读可写
4、no_boot_squash:表示客户端root用户对该目录具备写权限
启动NFS服务器
[root@localhost Server]# /etc/init.d/nfs start
Starting NFS services: exportfs: /etc/exports:1: unknown keyword "no_boot_squash"
[FAILED]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
重启NFS服务器
[root@localhost Server]# /etc/init.d/nfs restart
Shutting down NFS mountd: [ OK ]
Shutting down NFS daemon: [ OK ]
Shutting down NFS quotas: [ OK ]
Shutting down NFS services: [FAILED]
Starting NFS services: exportfs: /etc/exports:1: unknown keyword "no_boot_squash"
[FAILED]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
最后,使用mount命令来挂载NFS服务器上的共享目录
#mount -t nfs servername :/shared_dir /localdir
例如:
#mount -t nfs 10.168.1.100 :/home /mnt/nfs
- RedHat Enterprise Linux 5 NFS服务器
- RedHat Enterprise Linux 5 安装TFTP服务器和NFS服务器
- RedHat Enterprise Linux 5 安装TFTP服务器和NFS服务器
- RedHat Enterprise Linux 5 安装TFTP服务器和NFS服务器
- RedHat Enterprise Linux 5 安装TFTP服务器和NFS服务器
- redhat enterprise linux 5 tftpd + nfs
- RedHat Enterprise Linux 5 安装TFTP服务器
- 服务器Redhat Enterprise Linux 7.1的安装
- RedHat Enterprise Linux 6.1(RHEL)搭建ArcGIS 10.1 for Server集群(二)NFS服务器架设
- RedHat Enterprise 5 LAMP服务器架设步骤
- RedHat Enterprise 5 LAMP服务器架设步骤
- RedHat Enterprise 5 LAMP服务器架设步骤
- Red Hat Enterprise Linux 5——tftp、NFS、Samba服务器配置
- RedHat.Enterprise.Linux.5 VMtools 安装
- redhat linux enterprise 5 安装Oracle10G
- redhat enterprise linux 5 挂载 ntfs
- redhat linux enterprise 5 安装Oracle10G
- RedHat Enterprise Linux 5 中文字体安装
- JSP注释和声明
- UITableView 表视图
- 第十四周 项目1 - 小玩文件(1)填空
- CSU1632: Repeated Substrings(后缀数组)
- window.open详解
- RedHat Enterprise Linux 5 NFS服务器
- windows oracle EM的安装配置
- 死锁的原因、条件和避免死锁的方法
- 错误2error LNK2019: 无法解析的外部符号 "public: __thiscall obj3dModel::~obj3dModel(void)" (??1obj3dModel@@QAE
- Snprintf Strncpy Memcpy Strlcpy各自的特点
- Java设计模式之 —— 单例(Singleton)
- Rumor Diffusion and Convergence during the 3.11 Earthquake: A Twitter Case Study
- wireshark网络包分析软件安装
- Mac下android_sdk配置环境变量