Skip to content

dianbanjiu/WindowsServices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Windows Services

这个仓库是用来记录通过 WinSW 创建的一些 Windows 服务

使用方式

WinSW Releases 下载对应的 EXE 可执行文件,然后将其放在对应的服务目录中。

比如我现在想启用 Syncthing 的服务,就把 WinSW.exe 放在 WindowsServices\Syncthing 中

注意此处一定需要将可执行文件重命名为 WinSW.exe,因为 WinSW 可执行文件是在当前目录下找同名的 xml 配置文件😅(有点抽象只能说)

然后执行下面的命令安装服务

# 进入对应的服务目录
cd Syncthing

# 安装服务
./WinSW.exe install

# 启动服务
./WinSW.exe start

# 重启服务
./WinSW.exe restart

# 关闭服务
./WinSW.exe stop

# 查看服务状态
./WinSW.exe status

# 查看帮助命令
./WinSW.exe help

About

管理常用的Windows服务,通过WinSW进行创建

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors