找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 2208|回复: 10

求助!filebrowser无法运行

[复制链接]
如图,filebrowser无法运行,l大源码编译的mt7621固件。只有第一次刷固件时才能运行,关闭后再开启就显示未运行了,重启也无法解决,求大佬指点。或者有没有替代品推荐一下,谢谢

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
替代品有 webd 可以尝试一下

点评

可以提供一下源码地址吗?  详情 回复 发表于 2022-4-17 13:33
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

可能跟init有关。我没试过。参考 https://openwrt.org/zh-cn/inbox/procd-init-scripts
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

开机无法启动可能跟init有关。 可以去看看 https://openwrt.org/zh-cn/inbox/procd-init-scripts

点评

啊这....纯小白,看不懂啊,有没有具体的解决方法啊  详情 回复 发表于 2022-4-17 13:32
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

可能跟init有关。可以去openwrt官网查查 procd-init-scripts 。我发不出链接。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 来自手机 | 显示全部楼层
eep01 发表于 2022-4-17 09:36
开机无法启动可能跟init有关。 可以去看看 https://openwrt.org/zh-cn/inbox/procd-init-scripts

啊这....纯小白,看不懂啊,有没有具体的解决方法啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 来自手机 | 显示全部楼层
html 发表于 2022-4-17 09:02
替代品有 webd 可以尝试一下

可以提供一下源码地址吗?

点评

这里下载 https://webd.cf/ 只有二进制包, 不是ipk, 需要手动安装.  详情 回复 发表于 2022-4-18 09:55
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
#!/bin/sh /etc/rc.common
# Copyright (C) 2021 ImmortalWrt

. /lib/functions.sh
. /lib/functions/procd.sh

USE_PROCD=1

START=90
STOP=10

init_conf() {
        config_load "filebrowser"
        config_get "addr_type" "config" "addr_type" "lan"
        config_get "db_dir" "config" "db_dir" "/etc"
        [ "${db_dir}" == "/" ] || db_dir="${db_dir%*/}"
        config_get "db_name" "config" "db_name" "filebrowser.db"
        db_name="$(uci get filebrowser.config.db_name| sed 's#/##g')"
        config_get "enabled" "config" "enabled" "0"
        config_get "port" "config" "port" "8989"
        config_get "root_dir" "config" "root_dir" "/"
}

start_service() {
        init_conf
        [ "${enabled}" == "1" ] || exit 0
        procd_open_instance filebrowser
        mkdir -p "${root_dir}"
        mkdir -p "${db_dir}"

        if [ "${addr_type}" == "local" ];then
                addr="127.0.0.1"
        elif [ "${addr_type}" == "lan" ];then
                addr="$(uci get network.lan.ipaddr)"
        elif [ "${addr_type}" == "wan" ];then
                addr="0.0.0.0"
        fi

        procd_set_param command filebrowser
        procd_append_param command -a "${addr}"
        procd_append_param command -d "${db_dir}/${db_name}"
        procd_append_param command -p "${port}"
        procd_append_param command -r "${root_dir}"
        procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5}
        procd_close_instance
}

stop_service(){
        init_conf
        echo "${db_dir}/${db_name}" > "/lib/upgrade/keep.d/filebrowser"
}

reload_service()
{
        stop
        start
}

service_triggers() {
        procd_add_reload_trigger "filebrowser"
}





这是/etc/init.d里filebrowser文件里的内容,帮忙看看哪里出问题了,谢谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

root456 发表于 2022-4-17 13:33
可以提供一下源码地址吗?

这里下载 https://webd.cf/ 只有二进制包, 不是ipk, 需要手动安装.

点评

你好,求助一下,我是在n1盒子上装的filebrowser,在https://github.com/filebrowser/filebrowser/releases/tag/v2.26.0这里下载的最新的版本,但是我点手动下载,就提示:获取远程版本信息失败。不知道哪里出问题了  详情 回复 发表于 2023-12-24 21:29
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

html 发表于 2022-4-18 09:55
这里下载 https://webd.cf/ 只有二进制包, 不是ipk, 需要手动安装.

你好,求助一下,我是在n1盒子上装的filebrowser,在https://github.com/filebrowser/filebrowser/releases/tag/v2.26.0这里下载的最新的版本,但是我点手动下载,就提示:获取远程版本信息失败。不知道哪里出问题了

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

点评

不是filebrowser的作者,也有没有使用过这个软件,不能帮助到你  详情 回复 发表于 2023-12-30 20:37
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

poledong1 发表于 2023-12-24 21:29
你好,求助一下,我是在n1盒子上装的filebrowser,在https://github.com/filebrowser/filebrowser/releas ...

不是filebrowser的作者,也有没有使用过这个软件,不能帮助到你
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-29 08:26

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表