
搭建私有云:owncloud
声明:该文章由作者(夏航)发表,转载此文章须经作者同意并请附上出处(0XUCN)及本页链接。。
首先先把防火墙关掉
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 习近平同俄罗斯总统普京举行会谈 7903965
- 2 特大暴雨来了 7809486
- 3 卫健委发文 大批医院要开设新科室 7713905
- 4 Citywalk带你探索莫斯科 7615953
- 5 工信部将整顿“隐藏式车门把手” 7524083
- 6 沪上阿姨IPO 山东夫妇大赚 7428923
- 7 印度称摧毁巴第二大城市防空系统 7330414
- 8 英美就关税贸易协议条款达成一致 7232320
- 9 众泰汽车年销14辆 高管拿百万年薪 7137806
- 10 两天两场发布会释放什么信号 7041719