这款产品就不多介绍了,进来看的小伙伴多少有点了解,就直接进入正题,如果有不了解的小伙伴可以自行查阅,背景类似mysql和mariadb。

正文
环境
- 系统版本:CentOS 7
- 数据库:Mariadb
- Web:apache
- PHP版本:7.4
多说两句
本来打算用CentOS 8来操作,主要是8版本PHP默认版本就是7.X,但由于红帽的一波操作,今年C8系统估计就不再支持了,所以采用了7
安装PHP环境
由于Nextcloud21默认要求PHP7.3以上,所以需要安装非官方源。
- yum install epel-release -y
- yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm -y
- yum install yum-utils -y
- yum-config-manager --enable remi-php74
- yum -y install php php-xml php-gd php-mbstring php-process php-ldap php-xml php-zip php-mysql php-intl
安装数据库
- yum -y install mariadb-server
- systemctl start mariadb && systemctl enable mariadb
初始化数据库
- mysql_secure_installation
主要是设置root密码
下载Nextcloud文件
为了避免有些小伙伴没有wget和vim这些基础工具,所以加入了安装命令,有的请忽略
- yum -y install wget vim unzip
- wget https://download.nextcloud.com/server/releases/nextcloud-21.0.0.zip
解压nextcloud文件
- mv nextcloud-21.0.0.zip /var/www
- cd /var/www
- unzip nextcloud-21.0.0.zip
配置Apache配置文件
- vim /etc/httpd/conf/httpd.conf
调整根目录
- httpd.conf需要加的参数,如下图
- <Directory /var/www/nextcloud/>
- Require all granted
- AllowOverride All
- Options FollowSymLinks MultiViews
- <IfModule mod_dav.c>
- Dav off
- </IfModule>
- </Directory>
添加nextcloud的参数
启动web,关闭防火墙,selinux、调整权限
- systemctl stop firewalld &&systemctl disable firewalld
- setenforce 0
- systemctl start httpd &&systemctl enable httpd
- chown -R apache:apache /var/www/nextcloud
前端配置

这里记得点击红色,否则采用默认sqllite方式安装,无法使用数据库

填写用户会自动创建相关信息

耐心等待

安装完成
效果图


速度还行,约250Mb/s

性能监控

插件商店
总结
总体体验下来还是不错的,也支持LDAP,在线文档编辑等等,大家可以试试,安装过程也不太复杂,当然如果企业级使用有很多内容要做,绝不仅仅是安装这么简单,个人使用肯定是完全足够了,如果对于使用过程有任何疑问随时交流,也可以参考官方指南,点击文末查看更多即可。
原文链接:https://www.toutiao.com/i6933806207891243533/