Fix in README
This commit is contained in:
parent
dbfb964cec
commit
230383518b
1 changed files with 23 additions and 1 deletions
24
README.md
24
README.md
|
|
@ -56,7 +56,9 @@ You need install git. You should install it in Windows path too.
|
||||||
|
|
||||||
You can install PastafariStats with its command how in Linux/*nix.
|
You can install PastafariStats with its command how in Linux/*nix.
|
||||||
|
|
||||||
`pip3 install git+https://bitbucket.org/paramecio/pastafaristats`
|
`git clone https://bitbucket.org/paramecio/pastafaristats`
|
||||||
|
|
||||||
|
If you are in C:\Users\my_user directory, pastafaristats will be download in C:\Users\my_user\pastafaristats
|
||||||
|
|
||||||
Next, you need create the config file. For example, if you have an user called "my_user", you can install configuration file in C:/Users/my_user/config/stats.cfg with the same contents how in Linux.
|
Next, you need create the config file. For example, if you have an user called "my_user", you can install configuration file in C:/Users/my_user/config/stats.cfg with the same contents how in Linux.
|
||||||
|
|
||||||
|
|
@ -68,5 +70,25 @@ url_server=http://url_server_collect_data/
|
||||||
|
|
||||||
Now, you need install the python script how service. You can use a classic manager services for windows called [NSSM](https://nssm.cc/). If you use Windows 10 64 bits, you can download from [here](https://nssm.cc/ci/nssm-2.24-101-g897c7ad.zip)
|
Now, you need install the python script how service. You can use a classic manager services for windows called [NSSM](https://nssm.cc/). If you use Windows 10 64 bits, you can download from [here](https://nssm.cc/ci/nssm-2.24-101-g897c7ad.zip)
|
||||||
|
|
||||||
|
Now, you can execute this command:
|
||||||
|
|
||||||
|
nssm install MonitService
|
||||||
|
|
||||||
|
A GUI will be showed with many options. Basic options in Application block are:
|
||||||
|
|
||||||
|
- Path: C:\Users\my_user\AppData\Local\Programs\Python\Python39\python.exe
|
||||||
|
|
||||||
|
Here you should set the python executable path.
|
||||||
|
|
||||||
|
- Startup: C:\Users\my_user\pastafaristats\pastafaristats\
|
||||||
|
|
||||||
|
Here you should set the pastafaristats real directory.
|
||||||
|
|
||||||
|
- Arguments: C:\Users\developer\pastafaristats\pastafaristats\send_info_daemon.py --config=C:\Users\my_user\config\stats.cfg
|
||||||
|
|
||||||
|
Here you shoud set the argumentos. send_info_daemon.py is the daemon that send the data to the server, --config is an option for define where config file stay.
|
||||||
|
|
||||||
|
There other options how I/O where you can define a file log for check errors if you have problems with the service.
|
||||||
|
|
||||||
|
And alls done!, you can init your service with **nssm strt MonitService** and go on.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue