在Win2000内创建tftp service

    我们首先找到系统中的tftpd.exe文件,一般我们可以在%systemroot%/system32/dllcache目录下找到该文件,建议把该文件copy到其他目录。

  C:/>copy %systemroot%/system32/dllcache/tftpd.exe %systemroot%/system32

  已复制 1 个文件。

  我们会用Windows 2000下的Resource Kits中的一个工具instsrv创建一个服务,instsrv的用法如下,当然,你也可以用其他的工具来实现(如srvinstw,GUI方式的)。

  C:/>instsrv

  Installs and removes system services from NT

  INSTSRV (   REMOVE)

  [-a ] [-p ]

  Install service example:

  INSTSRV MyService C:/MyDir/DiskService.Exe

  -OR-

  INSTSRV MyService C:/mailsrv/mailsrv.exe -a MYDOMAIN/joebob -p foo

  Remove service example:

  INSTSRV MyService REMOVE

  [俺的特色:字不够,帮助凑!]

  添加一个服务,注意,该服务创建后为自动启动。

  C:/>instsrv tftp c:/winnt/system32/tftpd.exe

  The service was successfuly added!

  Make sure that you go into the Control Panel and use

  the Services applet to change the Account Name and

  Password that this newly installed service will use

  for its Security Context.

  启动服务

  C:/>net start tftp

  tftp 服务正在启动 .

  tftp 服务已经启动成功。

  测试服务是否正常工作

  C:/>tftp -i 61.135.21.195 PUT sometips.gif sometips.gif

  Transfer successful: 4209 bytes in 1 second, 4209 bytes/s

  C:/>dir tftpdroot

  驱动器 C 中的卷是 C

  卷的序列号是 1E23-1907

  C:/tftpdroot 的目录

  2001-09-22 01:14 .

  2001-09-22 01:14 ..

  2001-09-22 01:14 4,209 sometips.gif

  1 个文件 4,209 字节

  2 个目录 94,113,792 可用字节

  注意,如果你上传文件,系统会在%systemdrive%自动创建一个名为tftproot的目录,OK,所有的工作已经完成了!
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值