把上面脚本放在 cd /usr/local/Cell/minio/xxxxx/
目录,然后编辑,之后在运行
$ brew services start minio
<?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>homebrew.mxcl.minio</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/opt/minio/bin/minio</string> | |
<string>server</string> | |
<string>--config-dir=/usr/local/etc/minio</string> | |
<string>--address=:9000</string> | |
<string>/path/to/data/storage</string> | |
</array> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>KeepAlive</key> | |
<true/> | |
<key>WorkingDirectory</key> | |
<string>/usr/local</string> | |
<key>StandardErrorPath</key> | |
<string>/usr/local/var/log/minio.log</string> | |
<key>StandardOutPath</key> | |
<string>/usr/local/var/log/minio.log</string> | |
<key>EnvironmentVariables</key> | |
<dict> | |
<key>MINIO_ACCESS_KEY</key> | |
<string>admin</string> | |
<key>MINIO_SECRET_KEY</key> | |
<string>password</string> | |
</dict> | |
</dict> | |
</plist> |