cloudreve 网盘搭建
之前活動(dòng)的時(shí)候搞了一臺(tái)aliyun ecs centos7 1核1G的,閑著也是閑著 搭建一下云盤下面開始操作:
1、下載壓縮包c(diǎn)loudreve_3.4.2_linux_amd64.tar.gz 地址:https://github.com/cloudreve/Cloudreve/releases
2、扔到ecs上 /usr/local
3、敲命令如下
# 解壓程序包 tar -zxvf cloudreve_VERSION_OS_ARCH.tar.gz # 賦予執(zhí)行權(quán)限 chmod +x ./cloudreve # 啟動(dòng) Cloudreve ./cloudreve
3、把初始的系統(tǒng)管理員用戶名密碼記錄下來 只有第一次啟動(dòng)會(huì)打印這個(gè) 一定要記下來啊
4、訪問http://服務(wù)器IP:5212 頁面長這樣 就ok了
5、用系統(tǒng)管理員登錄 就可以玩了
6、配置后臺(tái)運(yùn)行
在/usr/lib/systemd/system目錄下創(chuàng)建一個(gè)服務(wù)cloudreve.service
通過vi打開服務(wù)配置:vi /usr/lib/systemd/system/cloudreve.service
輸入如下內(nèi)容:
[Unit]
Description=Cloudreve
Documentation=https://docs.cloudreve.org
After=network.target
Wants=network.target
[Service]
Type=simple
WorkingDirectory=/usr/local/ #所在目錄
ExecStart=/usr/local/cloudreve #真正的執(zhí)行目錄
Restart=on-abnormal
RestartSec=5s
KillMode=mixed
StandardOutput=null
StandardError=syslog
[Install]
WantedBy=multi-user.target
保存退出
然后需要更新重啟服務(wù)
# 更新配置
systemctl daemon-reload
# 啟動(dòng)服務(wù)
systemctl start cloudreve
# 設(shè)置開機(jī)啟動(dòng)
systemctl enable cloudreve
管理命令 如下:
# 啟動(dòng)服務(wù)
systemctl start cloudreve
# 停止服務(wù)
systemctl stop cloudreve
# 重啟服務(wù)
systemctl restart cloudreve
# 查看狀態(tài)
systemctl status cloudreve
最后:如果忘記初始管理員密碼,需要?jiǎng)h除同級目錄下的cloudreve.db,重新啟動(dòng)主程序以初始化新的管理員賬戶
默認(rèn)監(jiān)聽5212端口 記得關(guān)閉防火墻 開啟5212端口
cloudreve github地址:https://github.com/cloudreve/Cloudreve
參考:https://blog.csdn.net/longzhoufeng/article/details/108958091
總結(jié)
以上是生活随笔為你收集整理的cloudreve 网盘搭建的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【酷熊科技】工作积累 ---------
- 下一篇: android 讯飞语音引擎3.0 文字