一、基礎概念
1、什麼是 Seafile ?
網盤,是由互聯網公司推出的在線存儲服務,服務器機房爲用戶劃分一定的磁盤空間,爲用戶免費或收費提供文件的存儲、訪問、備份、共享等文件管理等功能,不管你是在家中、單位或其它任何地方,只要你連接到網絡,你就可以管理、編輯網盤裏的文件。
Seafile是一個開源、專業、可靠的雲存儲平臺;解決文件集中存儲、共享和跨平臺訪問等問題。
二、搭建步驟
1.更新系統的軟件包安裝源
2.安裝此產品依賴的服務
root@VM-16-38-ubuntu:~# apt-get install python2.7 python-setuptools python-ldap python-mysqldb python-memcache python-urllib3
root@VM-16-38-ubuntu:~# sudo apt-get install python-imaging #可能安裝不成功,看具體情況進行解決
root@VM-16-38-ubuntu:~# sudo apt-get install MySQL-python
3.安裝數據庫服務,並對其進行安全初始化
root@VM-16-38-ubuntu:~# apt-get install mysql-server
root@VM-16-38-ubuntu:~# service mysql start
root@VM-16-38-ubuntu:~# mysql_secure_installation
4.下載 Seafile 軟件包
root@VM-16-38-ubuntu:~# mkdir -p /server/seafile
root@VM-16-38-ubuntu:~# cd /server/seafile/
root@VM-16-38-ubuntu:/server/seafile# wget http://seafile-downloads.oss-cn-shanghai.aliyuncs.com/seafile-server_6.2.3_x86-64.tar.gz
5.進行安裝
root@VM-16-38-ubuntu:/server/seafile/seafile-server-6.2.3# ./setup-seafile-mysql.sh #按提示進行對應的輸入
root@VM-16-38-ubuntu:/server/seafile/seafile-server-6.2.3# ./seafile.sh start
root@VM-16-38-ubuntu:/server/seafile/seafile-server-6.2.3# ./seahub.sh start
在雲平臺設置安全組規則
測試
瀏覽器登錄到所設置的 IP 進行訪問
用自己設置的信息進行登錄