简体   繁体   English

我可以在Windows XP中将程序作为服务启动吗?

[英]Can I start a program as a service in Windows XP?

I have a server in windows. 我在Windows中有一台服务器。 It isn't a service itself. 它本身不是服务。 Can I let it start at startup as a service in some way? 我可以通过某种方式让它作为服务启动吗?

您可以尝试使用srvany,但要警告它并不总是有效。

You can add it to startup programs 您可以将其添加到启动程序中

Start > All programs > Startup programs 开始>所有程序>启动程序

Just move it in this folder to let it start up with Windows. 只需将其移动到此文件夹中即可使其在Windows中启动。

Srvany allows only one service at same time. Srvany一次仅允许一项服务。 So I write my srvany (sFany) to make nginx and php-cgi run as windows service together. 因此,我编写了srvany(sFany),使nginx和php-cgi一起作为Windows服务运行。 Here is the source and binary https://github.com/stxh/sFany 这是源代码和二进制文件https://github.com/stxh/sFany

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何区分Windows 7和Windows XP或C程序中的其他Windows? - How can I differentiate between windows 7 and windows xp or other windows in a C program? 当 Windows 服务无法启动时,如何运行警报程序? - How can I run an alert program when a Windows Service fails to start? 如何在Windows Server 2003和Windows XP中延迟创建的服务? - How can I delay my created service in Windows Server 2003 & Windows XP? 如何在Windows XP上运行Xamarin? - How can I run Xamarin on Windows XP? 在Windows XP上安装Windows服务 - Install a windows service on windows xp 如何使用Windows服务启动程序? - how to start a program using a windows service? 如何从Windows在Unix服务器上启动服务 - How I can start a service on my Unix server from windows 我可以以编程方式启动 Windows Management Instrumentation 服务吗? - Can I start the Windows Management Instrumentation service programatically? 为什么我可以使用Windows服务以交互方式启动给定的应用程序,而不能将其作为服务启动? (过程开始) - Why can I start a given application using a Windows Service in interactive mode, but not as a service? (Process.Start) 我可以将一个可执行文件与另一个可执行文件(Windows服务程序)组合在一起,然后将该程序作为逻辑服务运行吗? - Can I combine an executable with another executable (Windows Service Program) and run this program as a logical service?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM