centos6搭建私有云

本文涉及的产品
云数据库 RDS MySQL,集群系列 2核4GB
推荐场景:
搭建个人博客
RDS MySQL Serverless 基础系列,0.5-2RCU 50GB
RDS MySQL Serverless 高可用系列,价值2615元额度,1个月
简介:

网盘,又叫“云存储”。国内的有百度云、华为网盘等。云,分公有云和私有云以及混合云。

 

实验环境

centos6.9_x64

 

实验软件

latest.rpm

owncloud-7.0.2.tar.bz2

 

软件安装

wget http://mirror.webtatic.com/yum/el6/latest.rpm  

rpm -ivh latest.rpm

yum clean all

yum makecache -y

yum -y install httpd mysql mysql-server

yum -y install httpd-manual mod_ssl mod_perl mod_auth_mysql

yum -y install php55w  php55w-bcmath php55w-cli php55w-common  php55w-devel php55w-fpm    php55w-gd php55w-imap  php55w-ldap php55w-mbstring php55w-mcrypt php55w-mysql   php55w-odbc   php55w-pdo php55w-pear php55w-pecl-igbinary  php55w-xml php55w-xmlrpc php55w-opcache php55w-intl php55w-pecl-memcache

 

service mysqld restart

 

mysqladmin -uroot password 数据库密码

mysql -uroot -p数据库密码 

Welcome to the MySQLmonitor.  Commands end with ; or \g.

Your MySQL connection idis 3

Server version: 5.1.73Source distribution

Copyright (c) 2000, 2013,Oracle and/or its affiliates. All rights reserved.

Oracle is a registeredtrademark of Oracle Corporation and/or its

affiliates. Other namesmay be trademarks of their respective

owners.

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

mysql>

 

vim /etc/httpd/conf/httpd.conf

#ServerNamewww.example.com:80

ServerName                  *:80

 

#AddTypeapplication/x-tar .tgz

#AddTypeapplication/x-tar .tgz

 

AddType application/x-tar.tgz

AddType application/x-httpd-php .php

 

<Directory />

    Options FollowSymLinks

    AllowOverride None

</Directory>

 

<Directory />

    Options FollowSymLinks

    AllowOverride All

</Directory>

 

touch /var/www/html/test.php

vim /var/www/html/test.php

<?php

phpinfo();

?>

 

service httpd restart (生产环境建议使用reload)

 

 

mysql -uroot -p数据库密码

mysql> create database ownclouddb;

Query OK, 1 rowaffected (0.00 sec)

 

mysql> GRANT ALL ON ownclouddb.* TO ownclouduser@localhost IDENTIFIED BY '123456';  123456为数据库密码

Query OK, 0 rowsaffected (0.01 sec)

 

mysql> flush privileges;

Query OK, 0 rowsaffected (0.00 sec)

 

mysql -uownclouduser -p数据库密码

Welcome to the MySQLmonitor.  Commands end with ; or \g.

Your MySQL connection idis 5

Server version: 5.1.73Source distribution

Copyright (c) 2000, 2013,Oracle and/or its affiliates. All rights reserved.

Oracle is a registeredtrademark of Oracle Corporation and/or its

affiliates. Other namesmay be trademarks of their respective

owners.

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

mysql>


http://192.168.1.128/test.php


 wKiom1k32V_RSzmJAAPIJM5Feks593.jpg-wh_50

 

tar xvf owncloud-7.0.2.tar.bz2

mv owncloud /var/www/html/

chown -R apache:apache /var/www/html/owncloud/

chmod -R 777 /var/www/html/owncloud/

 

http://服务器ip/owncloud/


wKiom1k32fTDVkI8AAFGoPmn6Xc819.jpg-wh_50




wKioL1k32fbyOiBgAAEZhGIKbag837.jpg-wh_50



wKiom1k_pIijslT7AABO2XG6mn0432.jpg-wh_50



wKiom1k32fbQm5AzAADtogfFlFg465.jpg-wh_50



vim  /etc/php.ini

; This directive allows you to disable certain classes for security reasons.

; It receives a comma-delimited list of class names. This directive is

; *NOT* affected by whether Safe Mode is turned On or Off.

; http://php.net/disable-classes

disable_classes = 删除此行


wKioL1k_oVWCpGoNAACUi4H1JIk073.jpg-wh_50


wKiom1k_oVvADQJ7AABqtdqkayE615.jpg-wh_50


wKioL1k_oV6zvmPcAABWLeWtSLc199.jpg-wh_50




本文转自 mailfile 51CTO博客,原文链接:http://blog.51cto.com/mailfile/1933216,如需转载请自行联系原作者

相关实践学习
如何在云端创建MySQL数据库
开始实验后,系统会自动创建一台自建MySQL的 源数据库 ECS 实例和一台 目标数据库 RDS。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助 &nbsp; &nbsp; 相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
相关文章
|
关系型数据库 MySQL PHP
centos7搭建owncloud私有云
版权声明:本文为博主原创文章,转载请标明出处。 https://blog.csdn.net/chaoyu168/article/details/78651362 1、更改yum源 [1] 首先备份/etc/yum.
2117 0
|
2天前
|
存储 安全 Linux
CentOS安装SeaweedFS
通过上述步骤,您应该能够在CentOS系统上成功安装并启动SeaweedFS。记住,根据实际部署规模和需求,可能还需要进一步调整配置参数和优化网络布局。SeaweedFS的灵活性和扩展性意味着随着使用深入,您可能需要探索更多高级配置和管理策略。
87 64
|
3天前
|
存储 安全 Linux
CentOS安装SeaweedFS
通过上述步骤,您应该能够在CentOS系统上成功安装并启动SeaweedFS。记住,根据实际部署规模和需求,可能还需要进一步调整配置参数和优化网络布局。SeaweedFS的灵活性和扩展性意味着随着使用深入,您可能需要探索更多高级配置和管理策略。
92 61
|
2天前
|
NoSQL 数据可视化 Linux
redis学习四、可视化操作工具链接 centos redis,付费Redis Desktop Manager和免费Another Redis DeskTop Manager下载、安装
本文介绍了Redis的两个可视化管理工具:付费的Redis Desktop Manager和免费的Another Redis DeskTop Manager,包括它们的下载、安装和使用方法,以及在使用Another Redis DeskTop Manager连接Redis时可能遇到的问题和解决方案。
11 1
redis学习四、可视化操作工具链接 centos redis,付费Redis Desktop Manager和免费Another Redis DeskTop Manager下载、安装
|
8天前
|
Linux Docker 容器
Centos安装docker(linux安装docker)——超详细小白可操作手把手教程,包好用!!!
本篇博客重在讲解Centos安装docker,经博主多次在不同服务器上测试,极其的稳定,尤其是阿里的服务器,一路复制命令畅通无阻。
75 4
Centos安装docker(linux安装docker)——超详细小白可操作手把手教程,包好用!!!
|
20天前
|
Linux 虚拟化 Windows
完美解决:重新安装VMware Tools灰色。以及共享文件夹的创建(centos8)
这篇文章提供了解决VMware Tools无法重新安装(显示为灰色)问题的步骤,并介绍了如何在CentOS 8上创建和配置VMware共享文件夹。
完美解决:重新安装VMware Tools灰色。以及共享文件夹的创建(centos8)
|
20天前
|
Unix Linux 开发工具
centos的官网下载和vm16虚拟机安装centos8【保姆级教程图解】
本文详细介绍了如何在官网下载CentOS 8以及在VMware Workstation Pro 16虚拟机上安装CentOS 8的步骤,包括可能出现的问题和解决方案,如vcpu-0错误的处理方法。
centos的官网下载和vm16虚拟机安装centos8【保姆级教程图解】
|
6天前
|
Kubernetes Linux 开发工具
centos7通过kubeadm安装k8s 1.27.1版本
centos7通过kubeadm安装k8s 1.27.1版本
|
5天前
|
安全 Linux 编译器
Centos 7.9如何使用源码编译安装curl最新版本
通过上述步骤,您就能在CentOS 7.9上成功地从源代码编译并安装curl的最新版本。这种方法不仅提供了灵活性,允许您定制编译选项,还确保了软件的最新功能和安全更新得到应用。
15 1