mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-25 09:40:13 +08:00
dist: Update mac README.md (#3074)
This commit is contained in:
parent
904d41e51a
commit
c953d17bcc
12
dist/init/mac-launchd/README.md
vendored
12
dist/init/mac-launchd/README.md
vendored
|
@ -12,8 +12,8 @@ To create the proper directories as used in the example file:
|
|||
```bash
|
||||
sudo mkdir -p /etc/caddy /etc/ssl/caddy /var/log/caddy /usr/local/bin /var/tmp /srv/www/localhost
|
||||
sudo touch /etc/caddy/Caddyfile
|
||||
sudo chown root:wheel -R /usr/local/bin/caddy /Library/LaunchDaemons/
|
||||
sudo chown _www:_www -R /etc/caddy /etc/ssl/caddy /var/log/caddy
|
||||
sudo chown root:wheel /usr/local/bin/caddy /Library/LaunchDaemons/
|
||||
sudo chown _www:_www /etc/caddy /etc/ssl/caddy /var/log/caddy
|
||||
sudo chmod 0750 /etc/ssl/caddy
|
||||
```
|
||||
|
||||
|
@ -36,7 +36,13 @@ launchctl unload /Library/LaunchDaemons/com.caddyserver.web.plist
|
|||
To start on every boot use the `-w` flag (to write):
|
||||
|
||||
```bash
|
||||
launchctl load -w /Library/LaunchAgents/com.caddyserver.web.plist
|
||||
launchctl load -w /Library/LaunchDaemons/com.caddyserver.web.plist
|
||||
```
|
||||
|
||||
To start the service now:
|
||||
|
||||
```bash
|
||||
launchctl start -w /Library/LaunchDaemons/com.caddyserver.web.plist
|
||||
```
|
||||
|
||||
More information can be found in this blogpost: [Running Caddy as a service on macOS X server](https://denbeke.be/blog/software/running-caddy-as-a-service-on-macos-os-x-server/)
|
||||
|
|
Loading…
Reference in New Issue
Block a user