第一步下载两个exe
第二步添加服务
#cmd c:/instsrc.exe ServerName c:/srvany.exe #添加服务 #ServerName 自定义服务名 c:/instsrc.exe ServerName #删除服务
第三步 编辑注册表
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ServerName
#服务名称项目右击新建项,名称为Parameters。 #定位到Parameters项,新建以下几个字符串值。 #名称 Application 值为你要作为服务运行的程序地址。 #C:\others\phpstudy_pro\Extensions\php\php7.3.4nts\php.exe #名称 AppDirectory 值为你要作为服务运行的程序所在文件夹路径。 #C:\others\phpstudy_pro\Extensions\php\php7.3.4nts\ #名称 AppParameters 值为你要作为服务运行的程序启动所需要的参数。 #-S 127.0.0.1:8383 -t C:\others\phpstudy_pro\Extensions\php\php7.3.4nts\php\ #-S 起一个本地服务 -t指定根目录

发表评论