Chinaunix首页 | 论坛 | 博客
  • 博客访问: 161848
  • 博文数量: 19
  • 博客积分: 1465
  • 博客等级: 上尉
  • 技术积分: 172
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-28 17:17
文章分类

全部博文(19)

文章存档

2014年(1)

2011年(2)

2010年(4)

2009年(5)

2008年(7)

我的朋友

分类: LINUX

2008-11-17 19:42:15

1.tftp设置
  #apt-get install tftpd
  检查文件/etc/inetd.conf里有没有关于tftp的设置:
  tftp            dgram   udp     wait    nobody  /usr/sbin/tcpd  /usr/sbin/in.tftpd /srv/tftp
  缺省的目录是/srv/tftp,可改为/tftpboot
参考:

2.NFS设置
  #apt-get install nfs-kernel-server nfs-common portmap
  #/etc/init.d/nfs-kernel-server  restart
  在/etc/exports里加入一行类似这样:/home/ryan/nfs/ *(rw,sync,no_root_squash)
  之后运行
  exportfs -a
  板子上修改/etc/fstab,添加如下:
  192.168.0.101:/home/ryan/nfs       /mnt        nfs   defaults     0 0
  192.168.0.101为PC机的IP地址。
  然后在PC机上测试,命令如下:
  #mount -t nfs 192.168.0.101:/home/ryan/nfs /mnt
  如果能在/mnt目录下看到
/home/ryan/nfs里大内容,表明已经成功了。

3.FTP设置
  #apt-get install vsftpd
  修改配置文件 /etc/vsftpd.conf: 把下面两行的注释去掉就可以以本机的帐号登录ftp,上传的目录为该用户的$HOME目录。
  # Uncomment this to allow local users to log in.
  local_enable=YES //去掉注释
  # Uncomment this to enable any form of FTP write command.
  write_enable=YES //去掉注释
阅读(2493) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~