利用騰訊雲輕量搭建私人雲盤 Cloudreve

2021-10-24 22:19:48 字數 2862 閱讀 8794

大陸地區1核1g3mbps的機器128一年,非常適合小白和建站的同學。

港澳台和海外(新加坡、矽谷、東京莫斯科)統一提供30mbps的頻寬,月流量1024g起步的免備案機器,1核1g30mbps的只要288一年

cloudreve 可以讓您快速搭建起公私兼備的網盤系統。cloudreve 在底層支援不同的雲儲存平台,使用者在實際使用時無須關心物理儲存方式。你可以使用 cloudreve 搭建個人用網盤、檔案分享系統,亦或是針對大小團體的公有雲系統。

wget

#解壓獲取到的主程式

tar -zxvf cloudreve_3.1.1_linux_amd64.tar.gz

# 賦予執行許可權

chmod +x ./cloudreve

# 啟動 cloudreve

./cloudreve

程序守護

# 編輯配置檔案

vim /usr/lib/systemd/system/cloudreve.service

將下文path_to_cloudreve更換為程式所在目錄:

[unit]

description=cloudreve

documentation=

after=network.target

wants=network.target

[service]

workingdirectory=/root/

execstart=/root/cloudreve

restart=on-abnormal

restartsec=5s

killmode=mixed

standardoutput=null

standarderror=syslog

[install]

wantedby=multi-user.target

# 更新配置

systemctl daemon-reload

# 啟動服務

systemctl start cloudreve

# 設定開機啟動

systemctl enable cloudreve

管理命令:

# 啟動服務

systemctl start cloudreve

# 停止服務

systemctl stop cloudreve

# 重啟服務

systemctl restart cloudreve

# 檢視狀態

systemctl status cloudreve

#新增nginx包

sudo rpm -uvh

#安裝sudo yum -y install nginx

#啟動服務

sudo systemctl start nginx

#(如果啟動失敗,可能是apache等服務占用了80埠,關掉相應服務/修改埠即可)

#設定nginx開機啟動

sudo systemctl enable nginx

瀏覽器輸入 伺服器ip,出現welcome說明安裝成功

yum install epel-release

wget --no-check-certificate

chmod +x certbot-auto

./certbot-auto

./certbot-auto -n

mkdir /www &&mkdir /www/log

刪除原預設配置

rm -rf /etc/nginx/conf.d/default.conf

編輯nginx配置

vi /etc/nginx/conf.d/default.conf

server

if ($server_port = 80 )

index index.php index.html index.htm default.php default.htm default.html;

location /

#error_page 404/404.html;

ssl_certificate /etc/letsencrypt/live/替換你的網域名稱/fullchain.pem;

ssl_certificate_key /etc/letsencrypt/live/替換你的網域名稱/privkey.pem;

ssl_protocols tlsv1.1 tlsv1.2 tlsv1.3;

ssl_ciphers ecdhe-rsa-aes128-gcm-sha256:high:!anull:!md5:!rc4:!dhe;

ssl_prefer_server_ciphers on;

ssl_session_cache shared:ssl:10m;

ssl_session_timeout 10m;

#ssl-end

#禁止訪問的檔案或目錄

location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|license|readme.md)

access_log /www/log/access.log;

error_log /www/log/error.log;

}

過載nginx配置

nginx -s reload

如何在騰訊雲輕量雲搭建mysql

2.作者本次演示使用的系統是windows server 2019,其他windows版本也可以,操作流程大同小異。2.把它解壓到乙個目錄。3.新增環境變數,在作業系統環境變數的path變數中新增剛才解壓mysql的目錄 c mysql bin 注意要填寫bin目錄 注 這一步是可選的,新增環境變數...

利用騰訊輕量伺服器搭建FRP服務

在如今這個ipv4缺乏的年代,家庭寬頻獲取到公網ipv4相對比較困難,特別是移動使用者,基本上就是預設不給公網ipv4,這時候,如果我們想要把內網的資源對映到公網上去,可能會需要用到內網穿透。而frp就是提供這種服務的一種工具廢話少說,現在開始進入正題。解壓並寫配置檔案 並按照配置要求開放防火牆埠 ...

搭建網際網路私人網盤(騰訊雲 Seafile)

準備 2 xshell6,遠端連線雲主機 3 flashfxp工具,用於檔案傳輸seafile到雲主機中,其他的檔案傳輸工具也行 步驟 1 註冊好雲主機後,開啟雲主機面板,能看到雲主機的基本資訊,我們利用xshell進行遠端登入雲主機。3 連線成功後,為了系統更加穩定,更新系統。4 更新後需要斷開x...