alpine搭建FileBrowser

alpine之FileBrowser

文章目录[隐藏]

  • 安装
  • 各种初始化
  • 开机启动脚本
  • 开机启动

安装

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

如有版权问题,请联系 邮箱进行删除。

暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇