### CentOS 7 最小化安装###
subscription-manager repos --enable rhel-server-rhscl-7-eus-rpms
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install -y httpd php56w php56w-gd php56w-json php56w-pdo php56w-curl php56w-intl php56w-mcrypt php56w-zip php56w-xml php56w-mbstring php56w-mysqlnd
yum -y install wget mariadb-server mariadb
CentOS_7 owncloud-files-10.0.8
rpm --import https://download.owncloud.org/download/repositories/production/CentOS_7/repodata/repomd.xml.key
cd /etc/yum.repos.d/
wget http://download.owncloud.org/download/repositories/production/CentOS_7/ce:stable.repo -O /etc/yum.repos.d/ce:stable.repo
yum clean all
yum install owncloud-files
systemctl start httpd
systemctl start mariadb
systemctl enable httpd
systemctl enable mariadb
mysqladmin -u root password '111111'
mysql -u root -p
create database clouddb;
grant all on clouddb.* to 'clouddbuser'@'localhost' identified by 'password';
FLUSH PRIVILEGES;
exit
关闭SELINUX
关闭防火墙
http://your.ip.add.ress/owncloud