Chinaunix首页 | 论坛 | 博客
  • 博客访问: 6361890
  • 博文数量: 579
  • 博客积分: 1548
  • 博客等级: 上尉
  • 技术积分: 16634
  • 用 户 组: 普通用户
  • 注册时间: 2012-12-12 15:29
个人简介

http://www.csdn.net/ http://www.arm.com/zh/ https://www.kernel.org/ http://www.linuxpk.com/ http://www.51develop.net/ http://linux.chinaitlab.com/ http://www.embeddedlinux.org.cn http://bbs.pediy.com/

文章分类

全部博文(579)

文章存档

2018年(18)

2015年(91)

2014年(159)

2013年(231)

2012年(80)

分类: LINUX

2012-12-21 12:55:46

2.3.1 tftp服务器的配置
如果用下面一条命令能够看到服务已经启动, 则不用安装, 否则需要按1或2点安装tftp-server服务器.
[arm@localhost arm]#netstat -a | grep tftp
udp        0      0 *:tftp                  *:*
1. 从RPM包安装tftp-server
     从对应Linux操作系统版本的安装光盘上找到tftp-server的安装包.
     下面tftp-server-0.32-4.i386.rpm包为例,把rpm包拷贝到dev_home/btools/下.
[arm@localhost arm]#cp tftp-server-0.32-4.i386.rpm /home/arm/dev_home/btools/
[arm@localhost arm]#su root
[root@localhost arm]#rpm -q tftp-server
如果没有安装tftp-server,就要用下面命令安装,否则,直接进入第2步配置服务.
[root@localhost arm]#cd /home/arm/dev_home/btools/
[root@localhost btools]#rpm -ivh tftp-server-0.32-4.i386.rpm
     建立tftp的主工作目录
[root@localhost btools]#mkdir /tftpboot
2. 修改配置文件并启动服务
    备份配置文件
[root@localhost btools]#if [ -f /etc/xinetd.d/tftp ]
> then
> cp /etc/xinetd.d/tftp /etc/xinetd.d/tftp.old
> fi
     修改配置文件
[root@localhost btools]#vi /etc/xinetd.d/tftp
service tftp
{
        disable = no
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /tftpboot
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}
      检查tftp服务是否打开
[root@localhost btools]#chkconfig --list
      如果tftp的服务没有打开,则用下面命令打开tftp服务开关
[root@localhost btools]#chkconfig tftp on
      重启服务
#/etc/init.d/xinetd restart
#netstat -a | grep tftp
udp        0      0 *:tftp                  *:*
2.3.2 NFS服务器的配置
1. 安装NFS服务器
[root@localhost btools]#rpm -q nfs-utils
如果没有安装,从对应Linux操作系统版本的安装光盘上找到nfs-utils的安装包.Fedora 5中的安装包
名称为nfs-utils-1.0.8.rc2-4.FC5.2.i386.rpm。下面以该安装包为例说明:
[root@localhost btools]#rpm -ivh nfs-utils-1.0.8.rc2-4.FC5.2.i386.rpm
2. 配置NFS服务器
[root@localhost btools]#vi /etc/exports
#加入要允许被另外计算机mount的目录:
#/home/arm/dev_home/tmp 为被另外计算机mount的目录
#192.168.1.134 允许另外计算机mount的IP
#rw,sync,no_root_squash表示访问限制,更详细说明见相关手册.
/home/arm/dev_home/tmp 192.168.1.134(rw,sync,no_root_squash)
3. 启动NFS服务器
第一启动NFS服务器时用下面命令.
[root@localhost btools]#/etc/init.d/nfs start
如果你已经启动了NFS服务器时,并且重新修改了/etc/exports文件,用如下命令使新加入的目录生效:
[root@localhost btools]#/etc/init.d/nfs reload
4. 测试NFS服务器
[root@localhost btools]#netstat -a | grep nfs
5. 显示被export出的目录列表
[root@localhost btools]#exportfs
阅读(1319) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~