Revert "Update to WINDOWS_SERVICE.md" (#1664)
This commit is contained in:
parent
2b52c1d957
commit
c554fe3625
|
@ -7,18 +7,18 @@ the general steps to set it up.
|
||||||
2. Create the directory `C:\Program Files\Telegraf` (if you install in a different
|
2. Create the directory `C:\Program Files\Telegraf` (if you install in a different
|
||||||
location simply specify the `-config` parameter with the desired location)
|
location simply specify the `-config` parameter with the desired location)
|
||||||
3. Place the telegraf.exe and the config file into `C:\Program Files\Telegraf`
|
3. Place the telegraf.exe and the config file into `C:\Program Files\Telegraf`
|
||||||
4. To install the service into the Windows Service Manager, run the following in PowerShell as an
|
4. To install the service into the Windows Service Manager, run (as an
|
||||||
administrator (You can wrap any spaces in the files paths in double quotes ""):
|
administrator):
|
||||||
|
|
||||||
```
|
```
|
||||||
> C:\"Program Files"\Telegraf\telegraf.exe --service install
|
> C:\Program Files\Telegraf\telegraf.exe --service install
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Edit the configuration file to meet your needs
|
5. Edit the configuration file to meet your needs
|
||||||
6. To check that it works, run:
|
6. To check that it works, run:
|
||||||
|
|
||||||
```
|
```
|
||||||
> C:\"Program Files"\Telegraf\telegraf.exe --config C:\Program Files\Telegraf\telegraf.conf --test
|
> C:\Program Files\Telegraf\telegraf.exe --config C:\Program Files\Telegraf\telegraf.conf --test
|
||||||
```
|
```
|
||||||
|
|
||||||
7. To start collecting data, run:
|
7. To start collecting data, run:
|
||||||
|
|
Loading…
Reference in New Issue