centos6搭建私有云

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

 

实验环境

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,如需转载请自行联系原作者

优秀的个人博客,低调大师

微信关注我们

原文链接:https://yq.aliyun.com/articles/509150

转载内容版权归作者及来源网站所有!

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

相关文章

发表评论

资源下载

更多资源
Mario,低调大师唯一一个Java游戏作品

Mario,低调大师唯一一个Java游戏作品

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

Oracle Database,又名Oracle RDBMS

Oracle Database,又名Oracle RDBMS

Oracle Database,又名Oracle RDBMS,或简称Oracle。是甲骨文公司的一款关系数据库管理系统。它是在数据库领域一直处于领先地位的产品。可以说Oracle数据库系统是目前世界上流行的关系数据库管理系统,系统可移植性好、使用方便、功能强,适用于各类大、中、小、微机环境。它是一种高效率、可靠性好的、适应高吞吐量的数据库方案。

Eclipse(集成开发环境)

Eclipse(集成开发环境)

Eclipse 是一个开放源代码的、基于Java的可扩展开发平台。就其本身而言,它只是一个框架和一组服务,用于通过插件组件构建开发环境。幸运的是,Eclipse 附带了一个标准的插件集,包括Java开发工具(Java Development Kit,JDK)。

Java Development Kit(Java开发工具)

Java Development Kit(Java开发工具)

JDK是 Java 语言的软件开发工具包,主要用于移动设备、嵌入式设备上的java应用程序。JDK是整个java开发的核心,它包含了JAVA的运行环境(JVM+Java系统类库)和JAVA工具。