魅力博客

魅力Linux|魅力空间|魅力博客|学习Linux|ubuntu日记|电脑教程|手机软件

[转载自官方论坛]Linux 微力同步全自动安装脚本 Debian/Ubutu/Centos



一直以来,微力在Linux上的安装方法是百花齐放,各有各的做法,给Linux新手用户也造成不少安装困惑,

今天我们团队发布了Linux的完全自动化安装脚本,方便喜欢微力的用户快速安装,我们也使用该安装器在我们的服务器环境上做快速部署。

特别注意:安装完成之后,服务器上要开放对应端口:防火墙 要开放8886 22330    CentOS防火墙操作:开启端口、开启、关闭、配置>>>


快速安装:

  1. #(如果需要指定索引存放位置请在最后面添加-d 路径 如 -d /data/verysync)

  2. curl http://www.verysync.com/shell/verysync-linux-installer/go-installer.sh > go-installer.sh

  3. chmod +x go-installer.sh

  4. ./go-installer.sh

复制代码

安装完成后就可以用浏览器打开 http://你的IP地址:8886  管理微力内容了

参数说明

  1. ./go-installer.sh [-h] [-c] [--remove] [-p proxy] [-f] [--version vx.y.z] [-l file] [-d index location]

  2.   -h, --help            显示帮助

  3.   -p, --proxy           指定代理服务器 -p socks5://127.0.0.1:1080 or -p http://127.0.0.1:3128 etc

  4.   -f, --force           强制安装

  5.       --version         安装特定版本 例如 --version v0.15.11-rc2

  6.   -l, --local           从本地下载好的文件安装 需要使用绝对路径如 -l /root/verysync-linux-amd64-v0.15.12-rc1.tar.gz

  7.       --remove          卸载微力同步

  8.   -c, --check           检查更新

  9.   -d  --home            指定微力索引存放位置, 默认 ~/.config/verysync

复制代码



此脚本会自动安装以下文件:

  1. - /usr/bin/verysync/verysync: 微力主程序

  2. - /usr/bin/verysync/start-stop-daemon: daemon管理程序 centos 会使用预编译好的i386 amd64 arm arm64版本

  3. 安装器会配置自动运行脚本。自动运行脚本会在系统重启之后,自动运行 verysync。目前自动运行脚本只支持带有 Systemd, init.d 的系统,以及 Debian / Ubuntu 全系列



运行脚本位于系统的以下位置:

  1. - /etc/systemd/system/verysync.service: Systemd

  2. - /etc/init.d/verysync: SysV



经测试系统:

  1. CentOS 6.5 init.d

  2. CentOS 7.5 systemd

  3. Debian 7.11 systemv

  4. Debian 9.5 systemd


欢迎回帖告知您使用的系统版本是否正常。以方便我们补充测试通过列表。

由于Centos默认仓库 没有daemon套件,所以本仓库自带了i386 amd64 arm arm64版本的start-stop-daemon程序,省去了系统编译安装. 如果使用其它架构的系统,需要自行编译daemon套件,方法 https://gist.github.com/yuuichi-fujioka/c4388cc672a3c8188423


本文原文地址:https://forum.verysync.com/forum.php?mod=viewthread&tid=906



返回顶部

发表评论:

Powered By Z-BlogPHP 1.7.3


知识共享许可协议
本作品采用知识共享署名 3.0 中国大陆许可协议进行许可。
网站备案号粤ICP备15104741号-1