CentOS 安装使用 Syncthing

服务器端配置

下载安装

下载地址:https://syncthing.net/downloads/

cd ~
wget https://github.com/syncthing/syncthing/releases/download/v1.3.4/syncthing-linux-amd64-v1.3.4.tar.gz

tar xzvf syncthing-linux* && rm -rf syncthing-linux*.tar.gz
cd syncthing-linux* && cp syncthing /usr/local/bin

启动一次 syncthing 创建配置文件

syncthing

修改配置

sed -i 's/127.0.0.1/0.0.0.0/g' '/root/.config/syncthing/config.xml'

开机启动

在下载文件夹中找到 etc 目录

cd ~
cd etc/linux-systemd/system/

#-rw-r--r-- 1 1004 1004 201 Feb  3 15:01 syncthing-resume.service
#-rw-r--r-- 1 1004 1004 452 Feb  3 15:01 syncthing@.service

cp syncthing@.service /etc/systemd/system/

编辑启动位置

vim /etc/systemd/system/syncthing@.service
修改成实际启动位置

设置开启启动

#开机启动
systemctl enable syncthing@root.service 
#启动
systemctl start syncthing@root.service 

客户端使用

Windows GUI 客户端: SyncTrayzor

MacOS 客户端: syncthing-macos

Confluence 清理卸载重装

Confluence 安装中断报错

The SystemInformationService could not be retrieved from the container. Therefore very limited information is available in this error report.
The SystemInformationService could not be retrieved due to the following error: java.lang.IllegalStateException: Spring Application context has not been set
Cause
com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Spring Application context has not been set
    at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)

caused by: java.lang.IllegalStateException: Spring Application context has not been set
    at com.atlassian.spring.container.SpringContainerContext.getComponent(SpringContainerContext.java:48)
Continue reading Confluence 清理卸载重装

yum update 出现的问题

出现 Found *** pre-existing rpmdb problem(s)

Error: python-devel conflicts with python-2.7.5-80.el7_6.x86_64
 You could try using --skip-broken to work around the problem
** Found 10 pre-existing rpmdb problem(s), 'yum check' output follows:
firewalld-filesystem-0.6.3-2.el7_7.1.noarch is a duplicate with firewalld-filesystem-0.5.3-5.el7.noarch
python-2.7.5-86.el7.x86_64 is a duplicate with python-2.7.5-80.el7_6.x86_64
python-firewall-0.6.3-2.el7_7.1.noarch is a duplicate with python-firewall-0.5.3-5.el7.noarch
python-libs-2.7.5-86.el7.x86_64 is a duplicate with python-libs-2.7.5-80.el7_6.x86_64
urw-base35-bookman-fonts-20170801-10.el7.noarch has installed conflicts urw-fonts < ('3', '2.4', '25'): urw-fonts-2.4-16.el7.noarch
Continue reading yum update 出现的问题