参考:
5. Partition 1 does not start on physical sector boundary.
8. Ubuntu16.04 ext4格式硬盘挂载普通用户权限控制
启动:
$ ./rslsync --webui.listen 0.0.0.0:8888
终止:
$ kill -9 $(ps -ef | grep "rslsync" | grep -v grep | awk '{print $2}')
无法连接 Sync Web UI:
可能是防火墙的问题,教程中默认监听的端口是 8888 ,开放端口即可。
$ iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 8888 -j ACCEPT
$ iptables -I INPUT -m state --state NEW -m udp -p udp --dport 8888 -j ACCEPT
删除防火墙规则,内容一样把 -I 换成 -D 就行了:
$ iptables -D INPUT -m state --state NEW -m tcp -p tcp --dport 8888 -j ACCEPT
$ iptables -D INPUT -m state --state NEW -m udp -p udp --dport 8888 -j ACCEPT
或者直接关掉firewall,以centos为例:
$ sudo systemctl stop firewalld.service && sudo systemctl disable firewalld.service