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>
  • 相关阅读:
    [转]解决ORACEL数据库“exp导出老是出现ORA-00904”
    教程
    [转]web初学者需要掌握哪些技术
    sublime的使用技巧
    安装Sublime Text
    memcached内存分类机制
    Java生产者和消费者
    一致性哈希原理及应用浅析
    Java线程状态分析
    Java多线程中断机制
  • 原文地址:https://www.cnblogs.com/thrillerz/p/4139619.html
Copyright © 2011-2022 走看看