Skip to content

Commit 7528225

Browse files
OTonGitHubranbel
andauthored
docs: clarify common cloudflared service install error (#27904)
* docs: clarify common cloudflared service install error * update formatting --------- Co-authored-by: ranbel <101146722+ranbel@users.noreply.github.com>
1 parent 7596021 commit 7528225

File tree

1 file changed

+7
-0
lines changed
  • src/content/docs/cloudflare-one/networks/connectors/cloudflare-tunnel/do-more-with-tunnels/local-management/as-a-service

1 file changed

+7
-0
lines changed

src/content/docs/cloudflare-one/networks/connectors/cloudflare-tunnel/do-more-with-tunnels/local-management/as-a-service/linux.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ By default, Cloudflare Tunnel expects all of the configuration to exist in the `
3131
cloudflared service install
3232
```
3333

34+
:::note
35+
Installing the `cloudflared` systemd service on Linux typically requires elevated privileges. When the install command is run with `sudo`, `$HOME` points to `/root`, which may prevent `cloudflared` from locating a configuration file created in `/home/<USER>/.cloudflared/config.yml`. In this case, the config path can be passed explicitly:
36+
```sh
37+
sudo cloudflared --config /home/<USER>/.cloudflared/config.yml service install
38+
```
39+
:::
40+
3441
2. Start the service.
3542

3643
```sh

0 commit comments

Comments
 (0)