日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 综合教程 >内容正文

综合教程

cloudreve 网盘搭建

發(fā)布時(shí)間:2023/12/15 综合教程 33 生活家
生活随笔 收集整理的這篇文章主要介紹了 cloudreve 网盘搭建 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

之前活動(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)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。