zoukankan      html  css  js  c++  java
  • mac os 启动服务命令 launchctl

    参考苹果开发者网址

    https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html 

    1 max 终端下 >launchctl help , 查看命令帮助

    2 比如我要开机启动 php-fpm,在

    在/Library/LaunchDaemons/下添加启动脚本, 经本人验证,此脚本好使 

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    	<key>Label</key>
    	<string>com.yangyz.memcached.plist</string>
    	<key>ProgramArguments</key>
    	<array>
    		<string>/usr/bin/start-memcached</string>
    	</array>
    	<key>KeepAlive</key>
    	<false/>
    	<key>RunAtLoad</key>
    	<true/>
    	<key>StandardErrorPath</key>
    	<string>/tmp/memcached.err</string>
    	<key>StandardOutPath</key>
    	<string>/tmp/memcached.out</string>
    </dict>
    </plist>
  • 相关阅读:
    6-stm32 滴答定时器(delay不带中断延时)
    5-stm32 滴答定时器(delay中断延时)
    4- stm32 gpio重映射
    3- stm32 gpio寄存器
    2-stm32 gpio位带
    Linux Command
    DIV+CSS规范命名
    JS事件报错之Cannot set property 'onclick' of null
    创建对象的三种方式
    密码的显示和隐藏
  • 原文地址:https://www.cnblogs.com/thrillerz/p/4139619.html
Copyright © 2011-2022 走看看