隨筆-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
          主站蜘蛛池模板: 普兰县| 泽州县| 伊宁县| 樟树市| 砀山县| 景泰县| 弋阳县| 石渠县| 德格县| 新平| 高台县| 霍林郭勒市| 崇义县| 马关县| 水富县| 儋州市| 浪卡子县| 祁阳县| 沙坪坝区| 海盐县| 神池县| 高尔夫| 丰都县| 朝阳县| 呼玛县| 同心县| 汨罗市| 建昌县| 弥勒县| 临江市| 通城县| 万全县| 黄冈市| 曲沃县| 芦溪县| 古蔺县| 陇川县| 景洪市| 乌海市| 镇宁| 花莲市|