Skip to content

Commit d82dead

Browse files
committed
fix
1 parent 5e07b2a commit d82dead

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

articles/app-service/app-service-hybrid-connections.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -265,23 +265,18 @@ Set the value of each variable to the port number you want to use. For example,
265265

266266
To configure a custom port on Linux:
267267

268-
1. Edit the `/etc/environment` file as root or with sudo and add the following line. Replace `<PORT-NUMBER>` with the port number you want to use for the Hybrid Connection Manager service:
268+
1. Set the environment variable and add it to `/etc/environment`. Replace `<PORT-NUMBER>` with the port number you want to use:
269269

270270
```bash
271-
HCM_SERVICE_PORT=<PORT-NUMBER>
271+
export HCM_SERVICE_PORT=<PORT-NUMBER> && sudo sh -c "echo HCM_SERVICE_PORT=$HCM_SERVICE_PORT >> /etc/environment"
272272
```
273273

274-
1. Re-run the Hybrid Connection Manager setup script to apply the new port configuration:
274+
1. Run the Hybrid Connection Manager setup script to apply the new port configuration:
275275

276276
```bash
277277
sudo ./setup.sh
278278
```
279279

280-
If running the setup script with sudo doesn't apply the port change, try running it without sudo.
281-
282-
> [!NOTE]
283-
> We recommend setting this environment variable before installing the Hybrid Connection Manager. If you set the variable after installation, you must re-run the setup script.
284-
285280
-----
286281

287282
### Configure proxy server settings

0 commit comments

Comments
 (0)