
搭建私有云:owncloud
首先先把防火墙关掉
iptables -F
iptables -X
iptables -Z
setenforce 0
ownCloud所用PHP须5.6或以上才可以,先安装非官方源。
[root@zwt ~]# yum -y install epel-release
[root@zwt~]# rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
[root@zwt~]# yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof php56-php-gd php56-php-fpm php-gd
安装apache服务。
[root@zwt ~]# yum install httpd*
安装Mariadb 数据库。
[root@zwt ~]# yum install mariadb*
启动服务
启动Apache:
[root@zwt ~]# systemctl start httpd
启动MariaDB:
[root@zwt ~]# systemctl start mariadb
在搭建好的lamp上部署owncloud环境,在本地已经有下好的包owncloud-zwt0.0.4,所以通过Xshell上面的Xftp把压缩包放进去。
用unzip把包解压
[root@zwt ~]# unzip owncloud-zwt0.0.4.zip
拷贝包内的软件到指定网页目录下
[root@zwt ~]# cp -r owncloud/* /var/www/html/
为Web服务器上文件目录设置读写权限:修改权限为Apache用户
[root@zwt ~]# chown -R apache.apache /var/www/html/
或者从官方网站下载owncloud。运行以下命令(也可以下载其他版本):
wget https://download.owncloud.org/community/ owncloud-zwt0.0.9.tar.bz2
解压文件:
tar -jxvf owncloud-7.0.0.tar.bz2 -C/var/www/html/
创建数据库
root@zwt ~]# mysqladmin -u root password "000000"
登陆数据库
[root@zwt ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 5.5.60-MariaDB MariaDB Server
Copyright (c) 2000, 20zwt8, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> creat database owncloud;
ERROR zwt064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'creat database owncloud' at line zwt
MariaDB [(none)]> exit
Bye
最后重启机器。
[root@zwt ~]# reboot
完成。
[超站]友情链接:
四季很好,只要有你,文娱排行榜:https://www.yaopaiming.com/
关注数据与安全,洞悉企业级服务市场:https://www.ijiandao.com/

随时掌握互联网精彩
- 1 去“三好”邻邦家做客 7903991
- 2 央行1万亿元大红包对普通人影响多大 7809696
- 3 “始祖鸟平替”要IPO了 7712228
- 4 一文梳理这场国新办发布会 7615739
- 5 三德子赵亮卖土鸡商标为“德子土” 7522452
- 6 全红婵成“带货女王” 7427544
- 7 50多年来首次 印度大规模民防演习 7332232
- 8 最先混进老年徒步团的已经进骨科了 7235673
- 9 两国禁止武契奇乘机飞越领空 7136061
- 10 远隔万里的共同纪念 7042983