Mac OSX 或 Linux 使用 tftp
?
tar xzvf opentftpmtV1.65.tar.gz
cd opentftp
如果是linux可以直接用
Mac OSX 就编译一下
?
g++ opentftpd.cpp -I. -o opentftpd
?
vi opentftpd.ini?
?
#IMPORTANT WARNING Never Edit this file using Windows Editor
?
[LISTEN-ON]
#Default is All Interfaces
?
[HOME]
/var/tftproot/
?
[LOGGING]
?
[ALLOWED-CLIENTS]
?
[TFTP-OPTIONS]
username=root
?
port-range=30000-30010
?
timeout=3
?
Read=Y
Write=Y
Overwrite=Y
?
保存
chmod 777 /var/tftproot
?
cp opentftpd /usr/bin
?
启动tftp命令
?
/usr/bin/opentftpd -v -i /etc/opentftpd.ini
?
杀死
?
killall opentftpd
?
也可以用rc.opentftp
cp rc.opentftp /etc/init.d/opentftpd
cp opentftpd.ini /etc
?