天天看點

安裝ownCloud私有雲存儲軟體

ownCloud是一套open source的雲端存儲套件,可以安裝在多種環境下,實作類似網盤的功能。

官方網站: www.owncloud.org

開始之前,先建構LAMP環境。

Installing Apache2 With PHP5 And MySQL Support On CentOS 6.4 (LAMP)

官方網站http://doc.owncloud.org/server/6.0/admin_manual/installation/index.html提供了多種環境下的多種安裝方法,安裝非常的簡單當然是Linux Distributions

cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/isv:ownCloud:community/CentOS_CentOS-6/isv:ownCloud:community.repo
yum install owncloud      

我在安裝過程中出現了Error:

Error: Package: owncloud-5.0.7-4.1.noarch (isv_ownCloud_community)
           Requires: php-pear-Net-Curl
Error: Package: owncloud-5.0.7-4.1.noarch (isv_ownCloud_community)
           Requires: php-pear-MDB2-Driver-mysqli
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest      

通過Google,還需要 install missing repo:

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install owncloud      

打開Port 80 (HTTP Web Server Port)

# vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
## Open 443 port i.e. HTTPS
-A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT      

Save and close the file. Restart iptables service, enter:

# /etc/init.d/iptables restart      

繼續閱讀