标签:tab ring centos7 linux common remove pos etc 分享图片
1、首先搭建LAMP环境2、安装owncloud
1)导入owncloud rpm包的密钥
rpm --import https://download.owncloud.org/download/repositories/stable/CentOS_7/repodata/repomd.xml.key
2)添加owncloud 仓库源
curl -L https://download.owncloud.org/download/repositories/stable/CentOS_7/ce:stable.repo -o /etc/yum.repos.d/ownCloud.repo
3)清空本地源缓存,使添加的源生效
yum clean expire-cache
4)安装owncloud
yum install -y owncloud
3、数据库配置
[root@910 yum.repos.d]# mysql
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| test |
+--------------------+
将所有空密码的用户删除,重新添加用户和密码
MariaDB [mysql]> select user,password from mysql.user; +------+----------+ |
user | password | +------+----------+ |
root | root | root | root | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
+------+----------+
6 rows in set (0.00 sec)
MariaDB [mysql]> select user,password from mysql.user; +------+----------+ |
user | password | +------+----------+ |
---|---|---|---|
+------+----------+
MariaDB [mysql]> grant all on . to ‘root‘@‘localhost‘ identified by ‘密码‘;
MariaDB [mysql]> grant all on . to ‘owncloud‘@‘localhost‘ identified by ‘密码‘;
MariaDB [mysql]> flush privileges;
创建owncloud数据库
MariaDB [(none)]> create database owncloud;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| owncloud |
| performance_schema |
+--------------------+
MariaDB [(none)]> exit;
4、访问owncloud在web端进行owncloud配置 http://localhost/owncloud/index.php
Centos7 - ownCloud 私有云盘搭建 (LAMP环境)
标签:tab ring centos7 linux common remove pos etc 分享图片
原文地址:http://blog.51cto.com/13735335/2162166