前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >CentOS 7安装ownCloud

CentOS 7安装ownCloud

作者头像
shaonbean
发布2018-01-02 10:38:37
1.5K0
发布2018-01-02 10:38:37
举报
文章被收录于专栏:运维前线运维前线

CentOS 7安装ownCloud

ownCloud官网:https://owncloud.org/ ownCloud官方文档:https://doc.owncloud.org/

安装ownCloud

安装ownCloud 9,依赖于LNMP(环境)

  • 安装Apache

参考:http://blog.csdn.net/wh211212/article/details/52982917

  • 安装php

参考:http://blog.csdn.net/wh211212/article/details/52994505 https://cloud.tencent.com/developer/article/1010039

  • 安装Mariadb

参考:http://blog.csdn.net/wh211212/article/details/53129488

  • 安装ownCloud
代码语言:javascript
复制
# install from EPEL
[root@linuxprobe ~]# yum --enablerepo=epel -y install php-pear-MDB2-Driver-mysqli php-pear-Net-Curl
[root@linuxprobe ~]# wget http://download.owncloud.org/download/repositories/stable/CentOS_7/ce:stable.repo -P /etc/yum.repos.d
[root@linuxprobe ~]# yum -y install owncloud
[root@linuxprobe ~]# systemctl restart httpd
  • 在MariaDB中为ownCloud添加用户和数据库。
代码语言:javascript
复制
[root@linuxprobe ~]# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[root@linuxprobe ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 11
Server version: 5.5.52-MariaDB MariaDB Server

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> create database owncloud;
Query OK, 1 row affected (0.15 sec)

MariaDB [(none)]> grant all privileges on owncloud.* to owncloud@'localhost' identified by 'password';
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> exit
Bye

注:如果系统开启selinux,需设置以下操作:

代码语言:javascript
复制
[root@linuxprobe ~]# semanage fcontext -a -t httpd_sys_rw_content_t /var/www/html/owncloud/apps
[root@linuxprobe ~]# semanage fcontext -a -t httpd_sys_rw_content_t /var/www/html/owncloud/config
[root@linuxprobe ~]# restorecon /var/www/html/owncloud/apps
[root@linuxprobe ~]# restorecon /var/www/html/owncloud/config
  • 客户端访问URLhttp://10.1.1.53/owncloud:
  • 如果连接到数据库的信息是正确的,欢迎如下所示:
  • 这是ownCloud主页,可以使用ownCloud作为云存储。

https://doc.owncloud.org/server/9.1/user_manual/files/access_webdav.html

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • CentOS 7安装ownCloud
    • 安装ownCloud
    相关产品与服务
    云数据库 MariaDB
    腾讯云数据库 MariaDB(TencentDB for MariaDB) 让您轻松在云端部署、使用 MariaDB 数据库。MariaDB 是在 MySQL 版权被 Oracle 收购后,由 MySQL 创始人 Monty 创立,其版权授予了“MariaDB基金会(非营利性组织)”以保证 MariaDB 永远开源,良好的开源策略,是企业级应用的最优选择,主流开源社区系统/软件的数据库系统,均已默认配置 MariaDB。
    领券
    问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档