|
如何为Windows 2000创建一个tftp service(1)
近日在论坛总是看到有人问怎么启动Win2K下的TFTP服务,其实在默认情况下TFTP服务是没有安装的,只有在使用RIS服务的时候才会安装该服务(国内很少有人用这个玩艺,可能我是井底之蛙吧),现在我给大家示范如何来安装一个tftp服务。 我们首先找到系统中的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 <service name> (<exe location> REMOVE) [-a <Account Name>] [-p <Account PassWord>] 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 服务正在启动 .
|