Archive for the ‘MacOS’ Category
ในการรัน TFTP server บนเครื่อง Mac
คุณสามารถทำตามขั้นตอนด้านล่างนี้:
1. เปิด Terminal: ไปที่ Applications > Terminal
2. ตรวจสอบสถานะ: คุณสามารถตรวจสอบว่า TFTP daemon กำลังทำงานอยู่หรือไม่ โดยใช้คำสั่ง:
% sudo launchctl list | grep tftp
หรือใช้คำสั่ง
%sudo lsof -i :69
หรือคำสั่ง
%netstat -atp UDP | grep tftp
หรือลอง ทดสอบเชื่อม localhost
%tftp localhost
ถ้าเข้าสู่ prompt ของ tftp
ได้ (เช่น tftp>
) หมายความว่า TFTP server ของคุณทำงานอยู่
3.เช็คว่า tftpd มีอยู่ในเครื่อง
% cat /System/Library/LaunchDaemons/tftp.plist
4.เพื่อความง่ายในการหา Folder จะทำการเปลี่ยนแปลงนิดหน่อย
% cd /private
% sudo rm -rf tftpboot
% mkdir /Users/(YourUser)/tftpboot
% sudo ln -s /Users/(YourUser)/tftpboot tftpboot
ให้ทำการ Start tftp ด้วยคำสั่ง
% sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist
ถ้าต้องการ Stop process ให้ใช้คำสั่ง
% sudo launchctl unload /System/Library/LaunchDaemons/tftp.plist