包含标签 csharp 的文章

windows 安装服务

方法1 :sc 安装 1 2 3 //bin目录加上 "s" 证明是从windows服务启动该程序 sc create server_name binpath="bin_path s" displayName="display_name" start=auto sc create elasticsearch_index_sync binpath="D:\job\search-job\Search.JobService.exe s" displayName="elasticsearch index sync work" start=auto 卸载 1 2 sc delete server_name binpath="bin_path" displayName="display_name"start= auto sc delete elasticsearch_index_sync binpath="D:\job\search-job\Search.JobService.exe" displayName="elasticsearch index……

阅读全文