instsrv 注册 windows 系统服务

注册步骤

  1. Win + r 打开 cmd 窗口
  2. 执行 instsrv.exe myserver C:\Windows\System32\srvany.exe

示例:

复制代码
instsrv.exe nginx C:\Windows\System32\srvany.exe
  1. win + r 运行 regedit 进入注册表,依次找到以下路径 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ 找到 myserver
  1. 右键 API_offline 新建--项,名字为:Parameters
  2. 右键 Parameters 新建三个'字符串值' 依次命名为:'Application','AppDirectory','AppParameters'

Application:值为要作为服务运行的程序地址

AppDirectory:值为服务运行的程序所在文件夹路径

AppParameters:值为要服务运行的程序启动所需要的参数

  1. 配置完成后,验证服务如下:
相关推荐
qq_369224334 天前
Windows全系通用!ntdll.dll文件丢失、报错、闪退问题的完整排查与修复教程
windows·dll·dll修复·dll丢失·dll错误
阿米亚波5 天前
【Windows】QEMU 启动 openEuler aarch64/arm64 架构系统 + 离线软件源
linux·windows·经验分享·笔记·架构·arm
caimouse5 天前
Reactos 第 10 章 网络操作 — 10.3.1 NIC驱动
网络·windows
初圣魔门首席弟子5 天前
Node.js 详细介绍(知识库版)
windows·qt·node.js·知识库
CHENG-JustDoIt5 天前
AI工具 | 爆火开源项目Odysseus AI 工作台:从项目介绍、部署情况及其使用等多方位分析指南(含详细步骤)
大数据·人工智能·windows·python·ai·开源·github
kingbal5 天前
Windows:flutter环境搭建
windows·flutter
未若君雅裁5 天前
Python 数据容器详解,list、tuple、str、set、dict 到底怎么选
windows·python·list
CodeKwang5 天前
Windows 环境 OCCT 8.0 编译构建及与 Qt6 项目集成
windows·qt·opencascade
我是伪码农5 天前
小兔鲜1-25
linux·服务器·windows
vx-Biye_Design5 天前
springboot安阳地区研学旅游服务小程序-计算机毕业设计源码12785
java·vue.js·windows·spring boot·tomcat·maven·mybatis