Skip to content

Commit 08826fd

Browse files
authored
Merge pull request #127826 from bwren/am-python
Log Analytics agent Python command - again
2 parents ac73c75 + fc5a203 commit 08826fd

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

articles/azure-monitor/platform/agent-linux.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,19 @@ Starting with versions released after August 2018, we are making the following c
4747
- Ubuntu, Debian: `apt-get install -y python2`
4848
- SUSE: `zypper install -y python2`
4949

50-
The python2 executable must be aliased to "python" using the following command:
50+
The python2 executable must be aliased to *python*. Following is one method that you can use to set this alias:
5151

52-
```
53-
alternatives --set python `which python2`
54-
```
52+
1. Run the following command to remove any existing aliases.
53+
54+
```
55+
sudo update-alternatives --remove-all python
56+
```
57+
58+
2. Run the following command to create the alias.
59+
60+
```
61+
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1
62+
```
5563
5664
## Supported Linux hardening
5765
The OMS Agent has limited customization support for Linux.

0 commit comments

Comments
 (0)