• 陪伴互联网运营小白共同探索成长,与IT爱好者共享探索乐趣
  • 建站只为分享,欢迎在PC端文章面打赏支持
  • 使用Ctrl+D 可收藏本站

alpine之FileBrowser

好玩有趣 陆子方 3个月前 (05-11) 354次浏览 0个评论 扫描二维码
文章目录[隐藏]

安装

wget -O - https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash

各种初始化

filebrowser -d /etc/filebrowser.db config init
filebrowser -d /etc/filebrowser.db config set --address 0.0.0.0
filebrowser -d /etc/filebrowser.db config set --port 80
filebrowser -d /etc/filebrowser.db config set --locale zh-cn
filebrowser -d /etc/filebrowser.db users add root password --perm.admin
#用户名和密码在这里

开机启动脚本

cat > /etc/init.d/filebrowser
# 输入下面的服务配置文件,回车,ctrl + D结束输入

#!/sbin/openrc-run
description="filebrowser"

command="/usr/local/bin/filebrowser"
command_background="yes"
command_args="-d /etc/filebrowser.db"
pidfile="/run/filebrowser.pid"
rc_cgroup_cleanup="yes"

depend() {
    need net
    after firewall
}

开机启动

chmod u+x /etc/init.d/filebrowser
rc-update add filebrowser default
service filebrowser start
service filebrowser status

子方有料原创丨转载请注明原文链接
期待您的评论或捐赠,这是最好的鼓励和支持!
喜欢 (0)
[赞赏使我快乐]
分享 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到