Update linux-nginx.md (#28483)

* Update linux-nginx.md

* Update aspnetcore/host-and-deploy/linux-nginx.md

* Update aspnetcore/host-and-deploy/linux-nginx.md

* Update aspnetcore/host-and-deploy/linux-nginx.md
pull/28512/head
Rick Anderson 2023-02-27 13:06:11 -10:00 committed by GitHub
parent f1aff86565
commit 08af467683
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -237,6 +237,10 @@ If the app runs on the server but fails to respond over the internet, check the
When done testing the app, shut down the app with <kbd>Ctrl</kbd>+<kbd>C</kbd> (Windows) or <kbd></kbd>+<kbd>C</kbd> (macOS) at the command prompt.
### Increase keepalive_requests
[`keepalive_requests`](http://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_requests) can be increased for [higher performance](https://www.nginx.com/blog/10-tips-for-10x-application-performance/#web-server-tuning), For more information, see [this GitHub issue](https://github.com/dotnet/AspNetCore.Docs/issues/22141#issuecomment-1442435506).
## Monitor the app
The server is set up to forward requests made to `http://<serveraddress>:80` on to the ASP.NET Core app running on Kestrel at `http://127.0.0.1:5000`. However, Nginx isn't set up to manage the Kestrel process. [`systemd`](https://systemd.io/) can be used to create a service file to start and monitor the underlying web app. `systemd` is an init system that provides many powerful features for starting, stopping, and managing processes.