
搭建私有云:owncloud
聲明:該文章由作者(夏航)發(fā)表,轉(zhuǎn)載此文章須經(jīng)作者同意并請附上出處(0XUCN)及本頁鏈接。。
首先先把防火墻關(guān)掉
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服務(wù)。
[root@zwt?~]# yum install httpd*
安裝Mariadb 數(shù)據(jù)庫。
[root@zwt?~]# yum install mariadb*
啟動服務(wù)
啟動Apache:
[root@zwt?~]# systemctl start httpd
啟動MariaDB:
[root@zwt?~]# systemctl start mariadb
在搭建好的lamp上部署owncloud環(huán)境,在本地已經(jīng)有下好的包owncloud-zwt0.0.4,所以通過Xshell上面的Xftp把壓縮包放進去。
用unzip把包解壓
[root@zwt?~]# unzip owncloud-zwt0.0.4.zip
拷貝包內(nèi)的軟件到指定網(wǎng)頁目錄下
[root@zwt?~]# cp -r owncloud/* /var/www/html/
為Web服務(wù)器上文件目錄設(shè)置讀寫權(quán)限:修改權(quán)限為Apache用戶
[root@zwt?~]# chown -R apache.apache /var/www/html/
或者從官方網(wǎng)站下載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/
創(chuàng)建數(shù)據(jù)庫
root@zwt?~]# mysqladmin -u root password "000000"
登陸數(shù)據(jù)庫
[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/
關(guān)注數(shù)據(jù)與安全,洞悉企業(yè)級服務(wù)市場:https://www.ijiandao.com/
- 1 豐收時節(jié)感悟總書記的“三農(nóng)”情懷 7904059
- 2 深圳機場飛機被“五花大綁”防臺風(fēng) 7808158
- 3 疑追風(fēng)觀浪 香港一對母子被卷入海 7712647
- 4 盤點新疆的全國之“最” 7616071
- 5 驢肉價格上漲 中國正面臨缺驢問題 7519937
- 6 用一條毛巾避免大窗玻璃離家出走 7427771
- 7 護網(wǎng):社交賬號不受控制?木馬在作祟 7332351
- 8 鴻蒙智行秋季新品發(fā)布會 7235372
- 9 “晚1秒就撞 我肯定不慣著他” 7135906
- 10 中國每年吃掉約70億只白羽肉雞 7048841