一、软件包说明
通过该srvany软件包中的instsrv.exe、srvany.exe注册或卸载.exe执行文件为windows服务,下面通过注册nginx服务进行图例说明。
二、操作步骤
1.解压后再cmd命令行窗口执行注册服务(输入“D:\app\srvany\instsrv.exe nginx D:\app\srvany\srvany.exe”,如下图)
--注册服务@b@D:\app\srvany\instsrv.exe nginx D:\app\srvany\srvany.exe@b@--卸载服务@b@D:\app\srvany\instsrv.exe nginx remove
2. 打开“注册表”- 运行执行“regedit”,找到“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\”路径
3.鼠标右击“nginx”新建一个项,将其命名为Parameters;
4.右击“Parameters”选择“字符串值”,分别配置“Application”、“AppDirectory”、“AppParameters”三个字符串值(如下图2)
5.打开服务(运行“services.msc”),进行如下配置后,成功启动
��