在后台运行K Kestrel [英] Running K Kestrel in the background

查看:64
本文介绍了在后台运行K Kestrel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Linux/OSX上以持久的方式运行Kestrel Web服务器?我可以通过以下方式按预期运行Web服务器:

红k

但是,我还没有找到一种将其作为持久性背景的方法,即

k红est&

该过程开始,然后立即停止.

解决方案

您还可以创建 init.d 脚本,该脚本将s tart-stop-daemon nohup 来控制您的应用程序(不仅在后台启动,而且还可以停止,在系统启动时自动启动等)这是脚本模板这是如何安装和配置它的说明

How does one run the Kestrel webserver in a persistent way on Linux / OSX? I am able to run the webserver as expected with:

k kestrel

However, I have not found a way to background it for persistence, i.e.

k kestrel &

The process starts then immediately stops.

解决方案

You can also create init.d script which will use start-stop-daemon together with nohup to control your application (not only start in the background, but also stop, autostart at system startup, etc) Here is script template And here are instructions how to install and configure it

这篇关于在后台运行K Kestrel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆