| CentOS上创建NFS服务 |
 |
作者: 来源: 日期:2009-4-8 15:25:02 点击次数: |
|
服务器端
NFS服务器分配IP为192.168.1.100 NFS客户端分配IP为192.168.1.200 nfs-server.example.com配置如下: [root@nfs-server ~]# cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=nfs-server.example.com [root@nfs-server ~]# cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost 192.168.1.200 nfs-client.example.com nfs-client 默认安装下已经装好NFS服务了,所以只用开启服务器即可。 [root@nfs-server ~]# chkconfig nfs on 比如要共享/data/目录: [root@nfs-server ~]# mkdir /data [root@nfs-server ~]# vi /etc/exports /data/ 192.168.1.200(rw,no_root_squash,no_all_squash,sync) 现在就可以启动NFS服务了。 [root@nfs-server ~]# service nfs start 服务器端结束
上一篇:运行中的数据库文件恢复 下一篇:Linux进程间通信的方法 |
|
|
 |
| 北京总部: 4006-505-808 |
| 天 津 部: 4006-505-808 |
| 上 海 部: 4006-505-808 |
| 深 圳 部: 4006-505-808 |
| 广 州 部: 4006-505-808 |
| 重 庆 部: 4006-505-808 |
| 南 京 部: 4006-505-808 |
| 其它地区: 4006-505-808 | |
|
 |
|