ownCloud 私有云盘搭建 (Centos7)

1、首先搭建LAMP环境
使用YUM安装LAMP环境,具体参数如下:
.
.
[root@910 ~]# yum install httpd php php-mysql mariadb-server mariadb sqlite php-dom php-mbstring php-gd php-pdo
.
.
.
ownCloud 私有云盘搭建 (Centos7)
.
.
关闭selinux,清空iptables,firewalld防火墙放行相关服务
ownCloud 私有云盘搭建 (Centos7)
.
.
ownCloud 私有云盘搭建 (Centos7)
.
.
.
默认安装的PHP是5.4版本,需要升级到5.6版本
ownCloud 私有云盘搭建 (Centos7)
.
.
.
升级PHP:
1)首先添加PHP5.6仓库源
如果仓库源添加失败,使用以下方式:
卸载epel-release-latest-7.noarch.rpm
yum remove epel-release
清空epel目录 : rm -rf /var/cache/yum/x86_64/6/epel/*
重新安装源:rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
**添加源****
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
.
.
2)删除旧版php
yum remove php-common
.
.
3)安装5.6版本php
[root@910 yum.repos.d]# yum install -y php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring
ownCloud 私有云盘搭建 (Centos7)

ownCloud 私有云盘搭建 (Centos7)

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;
.
.

+------+----------+
userpassword
+------+----------+
root
root
root
root

+------+----------+
6 rows in set (0.00 sec)

MariaDB [mysql]> select user,password from mysql.user;
.
.

+------+----------+
userpassword
+------+----------+

+------+----------+

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
ownCloud 私有云盘搭建 (Centos7)

ownCloud 私有云盘搭建 (Centos7)

.
.
owncloud windows桌面应用下载地址:http://106.14.195.93/index.php/s/e62XWnGJ8aHh4V4 密码:910666
(安卓和苹果app需要翻越长城防火墙)
ownCloud 私有云盘搭建 (Centos7)

转载于:https://blog.51cto.com/13735335/2162166

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值