MacOS开机启动原理和关闭apachectl开机启动

cd /System/Library/LaunchDaemons/ //可以看到所有自动启动的plist文件

想关掉mac下apache的开机启动

sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
如果想再打开:

sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist
系统的开机启动plist目录:/System/Library/LaunchDaemons/

用户的开启启动plist目录:/Library/LaunchDaemons/

 

html表单post传值

    <!– form post 基础传值  –>
    <form method=”post” action=”setData.php”>
        <input type=”text” name=”info”>
        <input type=”submit” value=”提交”>
    </form>
    <!– php接收 –>
    <!– echo $_POST[“info”]; –>