树莓派搭建NAS之Seaflile
一、安装
Seafile官网下载页面:https://www.seafile.com/download/ ,获取7.0.5版本的下载地址
登录pi的命令,转到root,然后下载
#sudo -s
#cd /nas
:/nas# wget https://github.com/haiwen/seafile-rpi/releases/download/v7.0.5/seafile-server_7.0.5_stable_pi.tar.gz
:/nas# tar xzf seafile-server_7.0.5_stable_pi.tar.gz:/nas# cd seafile-server-7.0.5/
:/nas/seafile-server-7.0.5# ./setup-seafile.sh
注:安装时提示
Checking for sqlite3 ...
Sqlite3 is not found. install it first.执行下面命令安装:apt-get install sqlite3
接下来设置seahub
seafile端口是8082,seahub端口是8000
启动服务
:/nas/seafile-server-latest# ./seafile.sh start; ./seahub.sh start
注:安装后发现能在Pi上本地打开,其实机器上不能访问,查看端口信息,只绑定在了127.0.0 .1上
:~# netstat -an | grep 8000
tcp 0 0 127.0.0.1:8000 修改gunicorn.conf解决,gunicorn.conf文件内容如下:
:/nas/conf# grep 127 *
gunicorn.conf:bind = "127.0.0.1:8000"在浏览器输入http://IP:8000/打开seafile web页面,用安装时输入的邮箱地址/密码就可以登录了
在路由器增加端口映射以便在外网访问,8000如下,8082类似
然后在手机或PC上下载对应客户端,安装后就可以访问了。
注:如果只能访问不能下载、上传,配置如下:
相关推荐
clamzxf 2020-03-28
LeeHDsniper 2020-11-05
橄榄 2020-11-03
wanshiyingg 2020-09-29
andonliu 2020-09-03
嵌入式开发爱好者 2020-08-28
lu00kill 2020-08-17
tianyayi 2020-08-16
LIEVEZ 2020-08-09
ohhardtoname 2020-07-25
LeeHDsniper 2020-07-19
shenxiuwen 2020-07-16
wzxxtt0 2020-06-25
mattraynor 2020-06-25
咏月东南 2020-06-10
wangz 2020-06-03
wanxuncpx 2020-06-01
tianyayi 2020-05-18
wanxuncpx 2020-05-15
mattraynor 2020-05-12
wzxxtt0 2020-05-12
LIEVEZ 2020-05-04
mattraynor 2020-05-01
LIEVEZ 2020-05-01
LIEVEZ 2020-05-01
LowisLucifer 2020-04-23
OathKeeper 2020-04-22
zcabcd 2020-04-18
wanxuncpx 2020-04-16
returnspace 2020-04-16
mattraynor 2020-04-14
tianyayi 2020-03-28
Summer的小屋 2020-03-26
lu00kill 2020-03-17
yuancr 2020-03-04
wzxxtt0 2020-02-21
xinhao 2020-02-20
LIEVEZ 2020-02-17
wzxxtt0 2020-02-15
zhufu 2020-02-10