how to install multiple instance of same windows service

前端 未结 5 783
囚心锁ツ
囚心锁ツ 2021-02-08 07:42

I created one windows serives

It gets the name of the service from web config file.

I used the below link for getting value from webconfig. http://www.codeprojec

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-08 08:09

    I needed to do this for a quick demo of a service running with different parameters.

    I copied the directory containing the service exe and then used the sc create command to setup the second service.

    sc create "[NewServiceName]" binPath="[PathToCopiedServiceDirectory]"
    

    How to create a windows service using the Sc.exe command

提交回复
热议问题