OpenList
项目下载地址 https://github.com/OpenListTeam/OpenList/releases
解压并运行 OpenList
tar -zxvf openlist-xxxx.tar.gz
chmod +x openlist
./openlist server
./openlist admin # 显示管理员用户的信息及管理员用户密码相关操作
./openlist admin random # 为管理员用户生成随机密码
./openlist admin set NEW_PASSWORD # 为管理员用户指定新密码
设置守护进程
使用任意方式编辑 /usr/lib/systemd/system/openlist.service 并添加以下内容
[Unit]
Description=openlist
After=network.target
[Service]
Type=simple
WorkingDirectory=path_openlist # 服务进程的工作目录
ExecStart=path_openlist/openlist server #OpenList服务所在位置
Restart=on-failure
[Install]
WantedBy=multi-user.target
保存后在终端执行 systemctl daemon-reload 重载配置
设置开机自启 systemctl enable openlist
更新OpenList
在项目地址下载最新版压缩包 解压并替换旧版 OpenList服务
赋予执行权限chmod +x openlist 重启 OpenListsystemctl restart openlist
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
