如何在 Linux 上将 xsp4 作为后台进程运行?

发布于 2024-12-29 02:38:45 字数 315 浏览 1 评论 0原文

有没有一种简单的方法可以让 xsp4 在 Linux 服务器上作为后台进程运行?

当我运行 xsp4 时,我得到以下信息:

xsp4
Listening on address: 0.0.0.0
Root directory: /test
Listening on port: 80 (non-secure)
Hit Return to stop the server.

因此,如果我退出终端,我将从它运行它,它会停止服务器。

我必须编写一个守护进程来执行此操作吗?还是已经有一些我遗漏的东西了?

谢谢

Is there an easy way to get xsp4 running as a background process on a linux server?

When I run xsp4 I get this:

xsp4
Listening on address: 0.0.0.0
Root directory: /test
Listening on port: 80 (non-secure)
Hit Return to stop the server.

So if I quit the terminal I am running it from it stops the server.

Do I have to write a daemon to do this? Or is there already something in place that I am missing?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

野稚 2025-01-05 02:38:45

你有几个选择。如果您的问题是终端关闭,那么 screen 可以是简单的解决方案(只需运行 screen xsp4,然后 Ctrl +A,D,您可以关闭终端)。如果您使用的方法适合您,那么就使用它——但是 xsp 在终端关闭后就会死掉。 xsp 一般应该用于调试,生产解决方案是 FastCGI 或 apache 模块,因此这些是“根据定义”的守护进程。

You have a couple of options. If your problem is terminal closing, then screen can be simple solution (just run screen xsp4, then Ctrl+A,D and you can close terminal). If the method you have used suits you, then use it -- however xsp will die after terminal closing. xsp should be generally used for debugging, production solutions are FastCGI or apache module, so these are daemons "by definition".

恋你朝朝暮暮 2025-01-05 02:38:45

我必须使用 Mono 来演示我必须展示的演示,并且遇到了同样的问题。我的解决方法是:

xsp4 --nonstop &

注意:它将显示初始信息,如果您按 Enter 键,它将继续运行。如果需要,您也可以退出终端,它也会继续。

I had to use Mono for a demo that I had to show, and faced the same problem. My workaround was:

xsp4 --nonstop &

Note: It will show the initial information and if you hit enter, it will continue running. You can also exit the terminal if you want and it will continue as well.

む无字情书 2025-01-05 02:38:45

你可以在终端中安装xsp4
sudo apt-get install mono-xsp4
然后
转到保存 Asp 项目的项目文件夹并在终端中键入
xsp4

you can do install the xsp4 in the terminal
sudo apt-get install mono-xsp4
then
go to your project Folder where the Asp project saved and type in the terminal
xsp4

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文