网盘,又叫“云存储”。国内的有百度云、华为网盘等。云,分公有云和私有云以及混合云。
实验环境
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 数据库密码
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.
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> 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)
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.
http://192.168.1.128/test.PHP
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/