Skip to content

Adagior/filemanager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 

Repository files navigation

With curl:

curl -fsSL https://hacdias.github.io/filemanager/get.sh | bash

Or using wget:

wget -qO- https://hacdias.github.io/filemanager/get.sh | bash

If you’re on Windows, you can use PowerShell to install File Manager too. You should run the following command as administrator since it needs permissions to add the executable to the PATH:

iwr -useb https://hacdias.github.io/filemanager/get.ps1 | iex

So, if you wanted to run File Manager on port 80, with the database on /etc/fm.db and the default scope to /root, you would run:

filemanager --port 80 --database /usr/local/bin/filemanager.db --scope /root

配置

wget -O /usr/local/bin/filemanager.json https://raw.githubusercontent.com/Adagior/filemanager/master/filemanager.json

filemanager -c /usr/local/bin/filemanager.json

他人配置方案:

chmod +x /usr/local/bin/filemanager

mkdir /etc/filemanager

mkdir /srv ##这步报错可忽略

wget -O /etc/filemanager/config.json https://github.com/malaohu/ruyo-shell/raw/master/FileManager/config.json

nohup filemanager -c /etc/filemanager/config.json >/dev/null 2>&1 &

后台启动服务

nohup filemanager -c /etc/filemanager/config.json >/dev/null 2>&1 &

关闭后台服务

eval $(ps -ef | grep filemanager | grep -v grep | awk '{print "kill "$2}')

Caddy

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh install http.filemanager

https://caddyserver.com/download

sudo curl -s https://raw.githubusercontent.com/mholt/caddy/master/dist/init/linux-systemd/caddy.service -o /etc/systemd/system/caddy.service   # 从 github 下载 systemd 配置文件
sudo systemctl daemon-reload        # 重新加载 systemd 配置
sudo systemctl enable caddy.service # 设置 caddy 服务自启动
sudo systemctl status caddy.service # 查看 caddy 状态

相关文章 https://www.zybuluo.com/zwh8800/note/844776

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published