前期准备:(文件在网站下留言我发你)
一台虚拟机:
教程开始:
使用scp命令把包传上去
[root@localhost ~]# mkdir /cloudreve_data
[root@localhost ~]# mv cloudreve_3.8.3_linux_amd64.tar.gz /cloudreve_data/
[root@localhost ~]# cd /cloudreve_data/
[root@localhost cloudreve_data]# ls
cloudreve_3.8.3_linux_amd64.tar.gz
[root@localhost cloudreve_data]# tar -xvf cloudreve_3.8.3_linux_amd64.tar.gz
LICENSE
README.md
README_zh-CN.md
cloudreve
[root@localhost cloudreve_data]# ls
cloudreve cloudreve_3.8.3_linux_amd64.tar.gz LICENSE README.md README_zh-CN.md
[root@localhost cloudreve_data]# chmod +x cloudreve
[root@localhost cloudreve_data]# vim conf.ini
[System]
Debug = false
Mode = master
Listen = :80 //这个改成80,不想做反向代理,懒
SessionSecret = xb9qBguZgrZzlOUi2Kc0waNlLo3TPAxmgOpeiBkIfjTSIIvl6OwGJ1oKeYnk9GPD
HashIDSalt = XUbMvhgspPdzYAppBiAkxNAXo2xHMOAqOER48E2WtV4qifcfubh4uyAoHIXN9hB3
放行防火墙
[root@localhost cloudreve_data]# firewall-cmd --add-rich-rule 'rule family=ipv4 source address=0.0.0.0/0 port port=80 protocol=tcp accept' --permanent
[root@localhost cloudreve_data]# firewall-cmd --reload
success
[root@localhost cloudreve_data]# firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: ens160
sources:
services: cockpit dhcpv6-client ssh
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
rule family="ipv4" source address="0.0.0.0/0" port port="80" protocol="tcp" accept
运行cloudreve
[root@localhost cloudreve_data]# ./cloudreve
___ _ _
/ __\ | ___ _ _ __| |_ __ _____ _____
/ / | |/ _ \| | | |/ _ | '__/ _ \ \ / / _ \
/ /___| | (_) | |_| | (_| | | | __/\ V / __/
\____/|_|\___/ \__,_|\__,_|_| \___| \_/ \___|
V3.8.3 Commit #88409cc Pro=false
================================================
[Info] 2024-01-26 15:36:02 Initializing database connection...
[Info] 2024-01-26 15:36:02 Start initializing database schema...
[Info] 2024-01-26 15:36:02 Admin user name: [email protected] //这里是管理员账号
[Info] 2024-01-26 15:36:02 Admin password: KgXXcSv0 //这里是密码
[Info] 2024-01-26 15:36:02 Start executing database script "UpgradeTo3.4.0".
[Info] 2024-01-26 15:36:02 Finish initializing database schema.
[Info] 2024-01-26 15:36:02 Initialize task queue with WorkerNum = 10
[Info] 2024-01-26 15:36:02 Initialize crontab jobs...
[Info] 2024-01-26 15:36:02 Current running mode: Master.
[Info] 2024-01-26 15:36:02 Listening to ":5212"
打开浏览器输入虚拟机的地址:
退出登录,用刚刚创建好的账户进去
完成
如果需要整个局域网访问而不是自己电脑互访,那么就把虚拟机的网络适配器改为桥接即可