隨筆-193  評論-715  文章-1  trackbacks-0

          While this hint will work as stated, it's pretty much incorrect usage of launchctl for the purpose of the hint.

          launchctl load...loads the FTP service into launchd's database of services. When you do an unload, you are telling launchd to not manage it anymore.

          So a better way to do this--probably the proper way--is to first issue the command to load the service:

          sudo launchctl load -w /System/Library/LaunchDaemons/ftp.plist

          Then, if you'd like to stop FTP, issue this command:

          sudo launchctl stop com.apple.ftpd

          And if you decide you'd like to bring it back up, use this command:

          sudo launchctl start com.apple.ftpd

          If you'd like for launchd to forget about FTP, that is when you would run this:

          sudo launchctl unload /System/Library/LaunchDaemons/ftp.plist

          The hint as-is will work, but seems a little counter-productive to make launchd remember and forget about FTP all the time.

          posted on 2012-06-30 23:15 Robin's Programming World 閱讀(906) 評論(0)  編輯  收藏 所屬分類: OS
          主站蜘蛛池模板: 凤庆县| 龙江县| 临朐县| 灵宝市| 即墨市| 民县| 彰化县| 海阳市| 三穗县| 大竹县| 毕节市| 葵青区| 康平县| 涞水县| 元江| 贵南县| 美姑县| 临澧县| 太和县| 安泽县| 永清县| 石门县| 鞍山市| 韶关市| 满洲里市| 栾川县| 石棉县| 酉阳| 台前县| 云南省| 绥化市| 南宁市| 布尔津县| 铅山县| 谢通门县| 陇南市| 镇巴县| 五家渠市| 闽清县| 翁源县| 章丘市|