User Tools

Site Tools


использование_протокола_tftp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
использование_протокола_tftp [2009/10/06 11:48]
val
— (current)
Line 1: Line 1:
-====== Использование протокола TFTP ====== 
  
-===== Штатный сервер TFTP ===== 
-<​code>​ 
-[ms:~] # grep tftp /​etc/​inetd.conf ​ 
-tftp    dgram   ​udp ​    ​wait ​   root    /​usr/​libexec/​tftpd ​     tftpd -l -s /tftpboot 
- 
-[ms:~] # mkdir /tftpboot 
-[ms:~] # cat /​tftpboot/​test.txt 
-Hello 
-World 
- 
-[ms:~] # /​etc/​rc.d/​inetd rcvar 
- 
-[ms:~] # cat /​etc/​rc.conf 
-... 
-inetd_enable=YES 
-... 
- 
-[ms:~] # /​etc/​rc.d/​inetd start 
-Starting inetd. 
-</​code>​ 
- 
-===== Сервер UTFTP ===== 
-<​code>​ 
-# pkg_add -r utftpd 
- 
-# cd /​usr/​local/​etc/​ 
- 
-# cat utftpd.conf 
-client default { 
-        uid=nobody; 
-        dir="/​tftpboot";​ 
-        read="/";​ 
-        write="/";​ 
-        create="/";​ 
-} 
- 
-# utftpd_make utftpd.conf.cdb utftpd.conf.tmp utftpd.conf 
- 
-# grep tftp /​etc/​inetd.conf 
-tftp    dgram   ​udp ​    ​wait ​   root    /​usr/​local/​sbin/​utftpd ​ utftpd -c /​usr/​local/​etc/​utftpd.conf.cdb 
- 
-# /​etc/​rc.d/​inetd restart 
использование_протокола_tftp.1254815292.txt.gz · Last modified: 2013/05/22 13:50 (external edit)