1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| sudo vim /System/Library/LaunchDaemons/tftp.plist # dd掉两行 <key>Disabled</key> 和 <true/> # 添加两行(-i 开启不安全模式 -l 记录所有log) <string>-i</string> <string>-l</string>
# 加载 launchctl load -F /System/Library/LaunchDaemons/tftp.plist # 开启 sudo launchctl start com.apple.tftpd
# tail -f /var/log/system.log
### chmod 777 sudo chmod 777 /private/tftpboot
# MacOS12 /System/Library/LaunchDaemons/ mkdir ~/Library/LaunchDaemons/
cp /System/Library/LaunchDaemons/tftp.plist ~/Library/LaunchDaemons/tftp.plist
sudo launchctl start ~/Library/LaunchDaemons/tftp.plist
|