1、更改yum源

[1] 首先备份/etc/yum.repos.d/CentOS-Base.repo

[root@localhostyum.repos.d]# mv /etc/yum.repos.d/CentOS-Base.repo/etc/yum.repos.d/CentOS-Base.repo.backup

[2] 进入yum源配置文件所在文件夹

[root@localhostyum.repos.d]# cd /etc/yum.repos.d/

[3] 下载阿里的yum源配置文件,放入/etc/yum.repos.d/(操作前请做好相应备份)

[root@localhostyum.repos.d]# wget -O/etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

[4] 运行yum makecache生成缓存

[root@localhostyum.repos.d]# yum makecache

2、安装php

rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm

rpm -Uvhhttps://mirror.webtatic.com/yum/el7/webtatic-release.rpm

yum install php70w.x86_64 php70w-cli.x86_64php70w-common.x86_64 php70w-gd.x86_64 php70w-ldap.x86_64 php70w-mbstring.x86_64php70w-mcrypt.x86_64 php70w-mysql.x86_64 php70w-pdo.x86_64 php70w-devel.x86_64gd gd-devel php70w-pear.x86_64 php70w-xmlrpc.x86_64 php70w-imap.x86_64php70w-dom.x86_64 php70w-xmlwriter.x86_64 php70w-mcrypt.x86_64php70w-pecl-imagick.x86_64 php70w-xml.x86_64 php70w-pecl-redis.x86_64

yum install php70w-fpm

systemctl enable php-fpm.service

配置php

vim/etc/php.ini

在php.ini里查找
max_execution_time
默认是30秒.改为
max_execution_time = 0

查找 post_max_size .改为
post_max_size = 10240M

查找upload_max_filesize,默认为8M改为
upload_max_filesize = 10240M

max_input_time = 7200

memory_limit = 10240m

3、  安装Mariadb

[root@linuxprobe~]# yum -y install mariadb-server

[root@linuxprobe~]# vi /etc/my.cnf

# add follows within [mysqld] section

[mysqld]

character-set-server=utf8

[root@linuxprobe~]# systemctl start mariadb

[root@linuxprobe~]# systemctl enable mariadb

·        初始化MariaDB

[root@linuxprobe~]# mysql_secure_installation   #和MySQL一样,一路y

·        1

·        连接MariaDB

[root@linuxprobe~]# mysql -u root -p

Enter password:

Welcome to theMariaDB monitor.  Commands end with ; or\g.

Your MariaDBconnection id is 1023

Server version:5.5.50-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)]> select user,host,password from mysql.user;

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

| user      | host      | password                                  |

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

| root      | localhost | *F1DAE8BCDFCA7A57F246E0F834AC35830A3D640E|

| root      | 127.0.0.1 |*F1DAE8BCDFCA7A57F246E0F834AC35830A3D640E |

| root      | ::1       |*F1DAE8BCDFCA7A57F246E0F834AC35830A3D640E |

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

5 rows in set(0.00 sec)

MariaDB[(none)]> show databases;

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

| Database           |

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

|information_schema |

| mysql              |

|performance_schema |

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

5 rows in set(0.05 sec)

MariaDB[(none)]> exit;

Bye

防火墙开启端口

# 客户端设置

[root@vdevops ~]# firewall-cmd --add-service=mysql--permanent

success

[root@vdevops ~]# firewall-cmd --reload

success

#firewall-cmd --permanent --zone=public--add-service=http
#firewall-cmd --permanent --zone=public--add-service=https
#firewall-cmd –reload

.配置mariadb实例
#mysql_secure_installation;
Set root password?[Y/n]New password: (输入数据库密码等下需要)
Re-enter new password: (再次确认密码)
Remove anonymous users?[Y/n]Y
Disallow root login remotely?[Y/n]Y
Remove test database and access to it?[Y/n]Y
Reload privilege tables now?[Y/n]Y

安装apache

[1]安装 httpd.

[root@linuxprobe ~]# yum -y install httpd

# 删除默认欢迎页面

[root@linuxprobe ~]# rm -f /etc/httpd/conf.d/welcome.conf

[2]配置httpd,将服务器名称替换为您自己的环境

[root@linuxprobe ~]# vi /etc/httpd/conf/httpd.conf

# line 86: 改变管理员的邮箱地址

ServerAdmin root@linuxprobe.org

# line 95: 改变域名信息

ServerName www.linuxprobe.org:80

# line 151: none变成All

AllowOverride All

# line 164: 添加只能使用目录名称访问的文件名

DirectoryIndex index.htmlindex.cgi index.php

# add follows to the end

# server's response header(安全性)

ServerTokens Prod

# keepalive is ON

KeepAlive On

[root@linuxprobe ~]# systemctl start httpd

[root@linuxprobe ~]# systemctl enable httpd

[3]如果Firewalld正在运行,请允许HTTP服务。,HTTP使用80 / TCP

[root@linuxprobe ~]# firewall-cmd --add-service=http--permanent

success

[root@linuxprobe ~]# firewall-cmd --reload

Success

·        安装ownCloud

# install fromEPEL

[root@linuxprobe ~]# yum --enablerepo=epel -y installphp-pear-MDB2-Driver-mysqli php-pear-Net-Curl

[root@linuxprobe ~]# wgethttp://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添加用户和数据库。

[root@linuxprobe~]# mysql -u root -p

Enter password:

ERROR 1045 (28000): Access deniedfor user 'root'@'localhost' (using password: YES)

[root@linuxprobe~]# mysql -u root -p

Enter password:

Welcome to the MariaDB monitor.  Commandsendwith ;or \g.

Your MariaDBconnection id is11

Server version: 5.5.52-MariaDB MariaDB Server

Copyright (c) 2000,2016, Oracle, MariaDB Corporation Aband 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 privilegeson owncloud.*to owncloud@'localhost' identifiedby'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,需设置以下操作:

[root@linuxprobe ~]# semanage fcontext -a -thttpd_sys_rw_content_t /var/www/html/owncloud/apps

[root@linuxprobe ~]# semanage fcontext -a -thttpd_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

centos7搭建owncloud私有云相关推荐

  1. Centos 6.8 搭建owncloud 私有云盘

    本文主要介绍在lamp环境下快速安装和部署owncloud 私有云盘 基本流程: 1.owncloud简介 2.yum部署lamp环境 3.下载owncloud 软件包并且安装 4.测试ownclou ...

  2. 自己搭建owncloud 私有云

    一.私有云概述 私有云(Private Clouds)是为一个客户单独使用而构架的,因而提供对数据.安全性和服务质量的最有效控制.该公司拥有基础设施,并可以控制在此基础设施上部署应用程序的方式.私有云 ...

  3. 开源私有云盘python_Centos 6.8 搭建owncloud 私有云盘

    Centos 6.8 搭建owncloud私有云盘 系统:centos6.8  x86_64 discuz版本:owncloud-10.0.3.zip(10.x版本需要的PHP至少5.6以上) 环境: ...

  4. Linux 搭建Owncloud 私有云

    经验一点点的积累 一.服务器环境准备工作 二.安装服务 三.浏览器验证 bug问题: 一.服务器环境准备工作 1.关闭系统的防火墙 systemctl stop firewalldsystemctl ...

  5. 教你如何搭建本地私有云

    目录 本地私有云的使用场景 如何使用IBCS虚拟专线搭建本地私有云 本地私有云的使用场景 搭建本地私有云是指在企业或组织内部搭建云计算基础设施,用于存储.处理和共享各种数据和资源.以下是一些常见的本地 ...

  6. linux使用Cloudreve搭建个人私有云

    linux使用Cloudreve搭建个人私有云 1. 获取安装包 2. 运行 3. 登录并修改信息 4. 后台自动运行 1. 获取安装包 进入Cloudreve官网,cloudreve.org 点击立 ...

  7. centos7/redhat7创建私有云(owncloud)

        大家好,这里是centos7/redhat7私有云搭建教程      提到云,大家的第一印象是不是这样的: 或者是这样的: 但是,这里要讲的是这样的: 云计算: 首先了解以下分布式文件系统云计 ...

  8. 树莓派--搭建nextcloud私有云

    树莓派–搭建nextcloud私有云 网上已有很多的教程是关于nextcloud或owncloud的私有云的搭建,但是都是零零碎碎,并不完整,这里以树莓派raspbain 10 buster系统为例, ...

  9. 虚拟vpc服务器搭建,虚拟私有云VPC搭建IPv6网络

    虚拟私有云VPC搭建IPv6网络 内容精选 换一换 虚拟私有云(Virtual Private Cloud)是用户在华为云上申请的隔离的.私密的虚拟网络环境.用户可以自由配置VPC内的IP地址段.子网 ...

最新文章

  1. RabbitMQ(二):mandatory标志的作用
  2. mysqlclient==1.3.7对应mysql版本_Python通过MySQLdb访问操作MySQL数据库
  3. 也谈谈:《设计师如何掌握主动权》读后感
  4. 计算机动画分为关键帧动画和,一个最简单的动画最少有几个关键帧
  5. 技术人写作和写代码一样重要
  6. LeetCode MySQL 1517. Find Users With Valid E-Mails(正则表达式)
  7. RiPro小八子主题V1.5.5美化版+优惠码折扣+工单系统+任务系统
  8. 谁在使用Docker?
  9. rm命令linux00,Linux限制rm命令
  10. 机器学习-吴恩达-笔记-11-异常检测
  11. Oracle大表清理truncate .. reuse storage
  12. 转 使用vim时按了CTRL+S键怎么办?
  13. Facebook 会沦落为二十年前的微软吗?
  14. axure中怎么把图片变圆_怎么将图片中的文字提取出来?收下这份识别教程
  15. PMP 第十章 项目沟通管理
  16. Word正式文件的正规格式
  17. 探究网络信息安全问题及防范措施
  18. 华为应用市场APP上架流程
  19. 碧波庭---第十五届中国诚信企业家大会 — 碧波庭荣获 “中国美胸产业诚信品牌” !
  20. 编程珠玑第二版 ---- 第一章个人习题集(Java)

热门文章

  1. Promise深入剖析
  2. 基于GEC6818的智能家居系统[完整源码/项目报告/笔记分享]
  3. 深度之眼 - Python学习笔记——第四章 组合数据类型
  4. 苏州优步车主之家司机端下载
  5. *【CodeForces - 768B】Code For 1 (分治策略,模拟二分思想,模拟线段树思想)
  6. 1.Python-准备工作:搭建环境与“Hello,world!”
  7. 全开源办公开发平台——手机移动端APP功能简介
  8. 如何解释阀门定位器的单作用和双作用?
  9. Java计算1~n的和
  10. 基于 Traefik 的 ForwardAuth 配置