We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mac os系统没有/etc/init.d目录,应该如何配置?
The text was updated successfully, but these errors were encountered:
编辑个 plist 文件,内容如下(注意实际路径):
<?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>KeepAlive</key> <dict> <key>SuccessfulExit</key> <false/> </dict> <key>Label</key> <string>ideawu.ssdb</string> <key>ProgramArguments</key> <array> <string>[path-to-ssdb]</string> <string>[path-to-configure-file]</string> <string>-d</string> </array> <key>RunAtLoad</key> <true/> </dict> </plist>
然后放到自己的 $HOME/Library/LaunchAgents 下面,然后 launchctl load <plist-file-name> 就可以了。
$HOME/Library/LaunchAgents
launchctl load <plist-file-name>
Sorry, something went wrong.
No branches or pull requests
mac os系统没有/etc/init.d目录,应该如何配置?
The text was updated successfully, but these errors were encountered: