centos6搭建私有云

前端之家收集整理的这篇文章主要介绍了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-cliPHP55w-common PHP55w-develPHP55w-fpm PHP55w-gd PHP55w-imap PHP55w-ldap PHP55w-mbstring PHP55w-mcryptPHP55w-MysqL PHP55w-odbc PHP55w-pdoPHP55w-pearPHP55w-pecl-igbinary PHP55w-xmlPHP55w-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> createdatabase ownclouddb;

Query OK,1 rowaffected (0.00 sec)

MysqL> GRANT ALL ONownclouddb.* TO ownclouduser@localhost IDENTIFIED BY '123456'; 123456数据库密码

Query OK,0 rowsaffected (0.01 sec)

MysqL> flushprivileges;

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,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


wKiom1k32fWQatPgAAEtWKpZtBY700.jpg-wh_50


wKioL1k32fbyOiBgAAEZhGIKbag837.jpg-wh_50


wKiom1k32fbQm5AzAADtogfFlFg465.jpg-wh_50

原文链接:https://www.f2er.com/centos/377292.html

猜你在找的CentOS相关文章