Change port to 5000
parent
dbf2a5b2c4
commit
2c725414a7
1 changed files with 3 additions and 3 deletions
|
@ -46,12 +46,12 @@ pip install fastapi redis httpx uvicorn
|
|||
### Running the Script
|
||||
Run the script using `uvicorn`:
|
||||
```sh
|
||||
uvicorn nginx_request_checker:app --host 0.0.0.0 --port 8000
|
||||
uvicorn nginx_request_checker:app --host 0.0.0.0 --port 5000
|
||||
```
|
||||
|
||||
To run in the background:
|
||||
```sh
|
||||
nohup uvicorn nginx_request_checker:app --host 0.0.0.0 --port 8000 > nginx_request_checker.log 2>&1 &
|
||||
nohup uvicorn nginx_request_checker:app --host 0.0.0.0 --port 5000 > nginx_request_checker.log 2>&1 &
|
||||
```
|
||||
|
||||
### Running as a Systemd Service
|
||||
|
@ -69,7 +69,7 @@ After=network.target
|
|||
User=your_user
|
||||
WorkingDirectory=/path/to/script
|
||||
EnvironmentFile=-/etc/default/minio_quota_checker
|
||||
ExecStart=/usr/bin/uvicorn nginx_request_checker:app --host 0.0.0.0 --port 8000
|
||||
ExecStart=/usr/bin/uvicorn nginx_request_checker:app --host 0.0.0.0 --port 5000
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
|
|
Loading…
Add table
Reference in a new issue