Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
14
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

updated at

Macでtftpサーバを起動

参考

設定確認

設定ファイル確認
cat /System/Library/LaunchDaemons/tftp.plist

/private/tftpboot/がRootであることがわかる。

ファイルのパーミッション

o+rであること

起動

tftpサーバ起動
sudo launchctl load -w /System/Library/LaunchDaemons/tftp.plist
起動確認
$ sudo lsof -i:69
> COMMAND PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
> launchd   1 root   48u  IPv4 0x126682518951aa6f      0t0  UDP *:tftp
> launchd   1 root   49u  IPv6 0x1266825189519a07      0t0  UDP *:tftp
> launchd   1 root   50u  IPv4 0x126682518951aa6f      0t0  UDP *:tftp
> launchd   1 root   51u  IPv6 0x1266825189519a07      0t0  UDP *:tftp
動作確認
tftp localhost
> get ファイル名

停止

tftpサーバ停止
sudo launchctl unload -w /System/Library/LaunchDaemons/tftp.plist
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
14
Help us understand the problem. What are the problem?