-
Notifications
You must be signed in to change notification settings - Fork 1
pgweb as a service
Kevin Kelly edited this page Jul 18, 2019
·
2 revisions
To setup pgweb as a service on windows follow these instructions:
- Download pgweb here and unzip
- Download the Non-Sucking Service Manager (NSSM) https://nssm.cc/download
- Extract the zip and go to the
nssm.exewhich is found in either win64 folder or win32 folder. - Open cmd prompt (or your preferred shell) in the folder
- Run the following
.\nssm.exe install pgwebThis may ask for administrator privileges and you should click yes - You will then have a GUI open and fill out the GUI application tab as follows:
- Path:
<path to folder containing>\pgweb_windows_386.exeThis can be found by clicking...on the right of path and browsing to the pgweb executable you unzipped before - Startup directory: Will be auto filled in from the above path if you use
...but you want another directory you can...to search for your designed folder - Arguments: Should be exactly as follows
--sessions. This setup defaults tolocalhost:8081. If you need to bind to different server host or port you can add the following arguments--bind=<yourHost>and--listen=<port> - Service name:
pgweb
- It will now be setup as a process. To get it started go to services and find
pgweb. Right click it and press start - pgweb will now be running on
localhost:8081. This service will automatically start each time windows boots
- Shut off the pgweb service in service
- Run the following
.\nssm.exe remove pgweb