vim /etc/yum.repos.d/MariaDB.10x.repo [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.3/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1
yum install -y MariaDB-server MariaDB-client
systemctl start mariadb systemctl enable mariadb
mysql_secure_installation
create database ownclouddb; grant all privileges on ownclouddb.* to ownclouduser@localhost identified by 'owncloudpwd'; flush privileges;
4.安装owncloud
1 2 3 4 5 6 7 8 9 10 11 12 13
vim /etc/yum.repos.d/owncloud.repo [OwnCloud_10.x] name=wnCloud Server Version 10.x (CentOS 7) type=rpm-md baseurl=http://download.owncloud.org/download/repositories/production/CentOS_7 gpgcheck=1 gpgkey=http://download.owncloud.org/download/repositories/production/CentOS_7/repodata/repomd.xml.key enabled=1