開啟和關(guān)閉的命令分別是以下兩條,很簡(jiǎn)單
sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist
sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist
想開機(jī)自啟動(dòng)ftp服務(wù)就編輯ftp.plist
Disabled--> 改為Enabled
訪問的用戶名和密碼是登錄mac系統(tǒng)的用戶名和密碼。