http://www.coretechnologies.com/products/AlwaysUp/Apps/RunSyncthingAsAWindowsService.html

Automatically start Syncthing in the background when your PC boots, without having to log on. Survive accidental shutdowns when you log off and other potential problems.

Syncthing keeps files synchronized between two or more machines. It is ideally suited for running "headless" in the background as the GUI is accessible from any web browser.

To configure Syncthing as a Windows Service with AlwaysUp:

  1. Download and install AlwaysUp, if necessary.

  2. If you don't have Syncthing installed, download the latest zip file from GitHub and expand it to a new folder on your hard drive. We have installed version 0.10.11 in C:\Syncthing for this tutorial and that folder will show up throughout this tutorial.

  3. Next, start AlwaysUp.

  4. Select Application > Add to open the Add Application window:

  5. On the General tab:

    • In the Application field, enter the full path to the Syncthing executable,syncthing.exe. Since we placed Syncthing in C:\Syncthing, this isC:\Syncthing\syncthing.exe. Your path may be different.

    • In the Name field, enter the name that you will call the application in AlwaysUp. We have used Syncthing (the default) but you can specify another name you like.

  6. Click over to the Logon tab and enter the user name and password of the account in which you have configured and run Syncthing. By default, Syncthing stores its settings in the user-specific %AppData% folder and running it in the same account will ensure that Syncthing will find its configuration.

  7. Click over to the Startup tab:

    • Check the Ensure that the Windows Networking components have started box. This tells AlwaysUp that Syncthing needs the TCP/IP networking stack to do its work.

    • Because only a single copy of Syncthing can run at any time (due to the use of a single network port), check the Stop all copies of the application running on this computer box, and the Also whenever the application is restarted setting below. This will ensure that other instances of Syncthing don't prevent the copy launched by AlwaysUp (as a windows service) from starting properly.

  8. Since Syncthing will no longer be visible on your desktop, you may want to capture the messages from the console to a file. To do so, switch to theExtras tab, check the Capture output to this log file box and enter the full path to a text file.

  9. Click the Save >> button. In a couple of seconds, an entry calledSyncthing will show up in the AlwaysUp window. It is not yet running though.

  10. And now that we are ready to start Syncthing as a windows service, let's configure the software to avoid launching the browser when it starts (since you won't be able to see it any more). To do so:

    1. Start Syncthing

    2. Open the web GUI in your browser (probably athttp://127.0.0.1:8080/)

    3. Click the gear at the top right and select Settings from the menu that appears:

    4. Uncheck the Start Browser box:

    5. Save your settings

  11. To start Syncthing from AlwaysUp, choose Application > Start "Syncthing". After a few seconds, the state should transition to Running and Syncthing will be working in the background. Open your browser and confirm that things work as expected:

  12. That's it! Next time your computer boots, Syncthing will start up immediately, before anyone logs on. We encourage you to edit Syncthing in AlwaysUp and check out the many other settings that may be appropriate for your environment.

    For example, to completely hide Syncthing's console (and prevent the annoying Interactive Services Detection window from winking at you constantly), return to the Logon tab and check the When the user logs on, don't show the application's windows and tray icons box at the bottom.


Syncthing not working properly as a Windows Service?

  • Consult the AlwaysUp Troubleshooter - our online tool that can help you resolve the most common problems encountered when running an application as a windows service.
  • From AlwaysUp, select Application > Report Activity > Today... to bring up a HTML report detailing the interaction between AlwaysUp and your application. The AlwaysUp Event Log Messages page explains the more obscure messages.
  • Browse the AlwaysUp FAQ for answers to commonly asked questions and troubleshooting tips.
  • Contact us and we will be happy to help!

How to Run Syncthing 24/7 as a Windows Service with AlwaysUp的更多相关文章

  1. SyncThingWin -- Run syncthing as a windows service

    SyncThingWin Auto restart and minor bug fixes bloones released this on 23 Dec 2014 There is now an a ...

  2. ThinkPHP 5.0.24 反序列化RCE (Windows下EXP)

    直接上exp吧,Windows下. <?php namespace think\process\pipes; class Windows { private $files = []; publi ...

  3. C# 程序默认使用管理员权限(转载)

    1.从A程序启动B程序,当B程序需要管理员权限的时候代码如下 A程序里面启动B程序的代码如下 ProcessStartInfo startInfo = new ProcessStartInfo(); ...

  4. Java Service Wrapper--来自官网文件

    -----------------------------------------------------------------------------Java Service Wrapper Pr ...

  5. 本地搭建MongoDB Server

    https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows/ Overview Requirements Get Mongo ...

  6. 【Java基础】【24多线程(上)】

    24.01_多线程(多线程的引入)(了解) 1.什么是线程 线程是程序执行的一条路径, 一个进程中可以包含多条线程 多线程并发执行可以提高程序的效率, 可以同时完成多项工作 2.多线程的应用场景 红蜘 ...

  7. 【转】Syncthing – 数据同步利器---自己的网盘,详细安装配置指南,内网使用,发现服务器配置

    Syncthing – 数据同步利器---自己的网盘,详细安装配置指南,内网使用,发现服务器配置 原贴:https://www.cnblogs.com/jackadam/p/8568833.html ...

  8. Syncthing – 数据同步利器---自己的网盘,详细安装配置指南,内网使用,发现服务器配置

    简介: 无论办公.文件共享.团队协作还是家庭照片.视频.音乐.高清电影的存储,我们常常都有文件同步和存储的需求.但随着国内各大网盘的花式阵亡或限速,早已没什么好选择了.好吧,我已经转战使用onedri ...

  9. How to run a (Tomcat)Java application server on a Azure virtual machine

    http://www.windowsazure.com/en-us/documentation/articles/virtual-machines-java-run-tomcat-applicatio ...

随机推荐

  1. java IO流之——File类知识总结和面试

    File类描述的是一个文件或文件夹.(文件夹也可以称为目录).该类的出现是对文件系统的中的文件以及文件夹进行对象的封装.可以通过对象的思想来操作文件以及文件夹.可以用面向对象的处理问题,通过该对象的方 ...

  2. HDU 2819 Swap(行列式性质+最大匹配)

    题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=2819 题目大意:给你一个n*n的01矩阵,问是否可以通过任意交换整行或者整列使得正对角线上都是1. ...

  3. python 删除前3天的文件

    一.需求分析 1. 删除前3天的文件 2.如果目录为空,也一并删除掉 如果使用shell脚本,一条命令就搞定了.干啥还要用python? 1. 因为需要记录一些日志,使用shell不好实现 2. 作为 ...

  4. ssm使用Ajax的formData进行异步图片上传返回图片路径,并限制格式和大小

    之前整理过SSM的文件上传,这次直接用代码了. 前台页面和js //form表单 <form id= "uploadForm" enctype="multipart ...

  5. PHP性能调优,PHP慢日志---善用php-fpm的慢执行日志slow log,分析php性能问题

    众所周知,MySQL有slow query log,根据慢查询日志,我们可以知道那些sql语句有性能问题.作为mysql的好搭档,php也有这样的功能.如果你使用php-fpm来管理php的话,你可以 ...

  6. PostgreSQL数据库如果不存在则插入,存在则更新

    INSERT INTO UM_CUSTOMER(customercode,CompanyFlag,InputTime,LocalVersion) ) ON conflict(customercode) ...

  7. 一步一步学习IdentityServer4 (2) 开始一个简单的事例

    前面将来一些配置,但是很多都不是必要的,先放一些事例需要的简要配置把 既然是IdentityServer4 所里下面的例子我 直接放到 Linux上 测试环境 CentOS 7 +Nginx1.9.3 ...

  8. 按书上学写测试pytest

    慢慢的,这块知识也补好吧. 系统的学习框架,具体的细节,可以边百度边实现. test_three.py '''Test the Task data type.''' from collections ...

  9. asp.net 微信公众号源码

    需要源码,请加QQ:858-048-581 功能菜单 该源码功能十分的全面,具体介绍如下:1.菜单回复:微信自定义回复.关注时回复.默认回复.文本回复.图文回复.语音回复. 请求回复记录.LBS位置回 ...

  10. window服务器上搭建git服务,window server git!!!

    先给大家看一个高大上的,这是我给我公司配置的,小伙伴们都说好! 阿里云的2012server 基于这篇大神的教程,我把服务端搭建好了. 传送门,当然我还是自己做个笔记的好. 1.下载java,并安装 ...