目录
打开浏览器后输入服务器IP地址,进入nextcloud安装向导
存储与数据库:选择MySQL/MariaDB,设置数据库用户为nextcloud,密码:123456,数据库名:nextcloud,主机名:localhost
- [root@www ~]# setenforce 0
- [root@www ~]# systemctl stop firewalld
[root@www ~]# yum install httpd mariadb-server php* -y
注意:如果出现安装冲突可更改为以下命令
[root@www ~]# yum install httpd mariadb-server php* -y --allowerasing
[root@www /]# wget https://download.nextcloud.com/server/releases/nextcloud-25.0.1.zip
建议 --- 下载好后,再通过xftp传输到Linux中
[root@www /]# unzip nextcloud-25.0.1.zip
[root@www /]# chmod -Rf 777 /nextcloud
[root@www ~]# systemctl start mariadb
- [root@www /]# mysql -uroot -p
- Enter password: #默认初始没有密码
- # 数据库设置
- MariaDB [(none)]> create database nextcloud; # 创建数据库
-
- MariaDB [(none)]> create user 'nextcloud'@'localhost' identified by '123456'; # 创建用户及密码
-
- MariaDB [(none)]> grant all on nextcloud.* to 'nextcloud'@'localhost'; # 设置权限
-
- MariaDB [(none)]> exit # 退出
[root@www /]# systemctl restart mariadb
- [root@www /]# vim /etc/httpd/conf/httpd.conf
- # 定位第124行修改如下:
- DocumentRoot "/nextcloud"
-
"/nextcloud"> - AllowOverride None
- # Allow open access:
- Require all granted
[root@www /]# systemctl restart httpd