前言:
用脚本安装 seafile,在centos7.3 安装seafile(私人云盘)
脚本是大佬2018年5月份最后更新的,版本可能比较旧;
但,只是给自己用。
具体参考
https://www.xiaoz.me/archives/8480
下载一键部署脚本
# su - seafile
# git clone https://github.com/helloxz/seafile.git
执行脚本
# sh ~/seafile/install_seafile.sh
查看服务运行
$ netstat -anpt | grep 8000
$ netstat -anpt | grep 8082
优化 seafile服务管理
# vim /home/MyCloud/seafile-server/seaqd.sh
添加
#!/bin/bash
/home/MyCloud/seafile-server/seafile.sh start
/home/MyCloud/seafile-server/seahub.sh start
# vim /home/MyCloud/seafile-server/seatz.sh
添加
#!/bin/bash
/home/MyCloud/seafile-server/seafile.sh stop
/home/MyCloud/seafile-server/seahub.sh stop
vim /home/MyCloud/seafile-server/seack.sh
添加
#!/bin/bash
echo "---"
echo "tcp 8000"
netstat -anpt | grep 8000
echo "---"
echo "tcp 8082"
netstat -anpt | grep 8082
echo "---"
# vim ~/.bashrc
添加
alias seaqd='sh /home/MyCloud/seafile-server/seaqd.sh'
alias seatz='sh /home/MyCloud/seafile-server/seatz.sh'
alias seack='sh /home/MyCloud/seafile-server/seack.sh'
alias seaql='sh /home/MyCloud/seafile-server/seaf-gc.sh'