博客:http://monsterlin.com/
原文地址:http://monsterlin.com/archives/HowToInstallSeafile.htmlhtml
至於爲何要搭建私有云盤,或許就是由於前段時間360我的網盤下架的緣由吧,事情過去好久了,我也在摸索方案,最後仍是選擇了百度雲,或許是由於百度說過
咱們百度雲不會倒下的
,哈哈,可是爲了防止意外的發生,仍是要作個備份吧python
最近這段時間一直比較忙,因此沒時間去研究東西,今天抽了點時間把以前seafile的安裝的尾巴處理下,以前一直出各類問題,心情甚是心酸mysql
關於搭建我的雲盤,我有如下見解nginx
總結的說就是去多學點知識,增長些本身知識的廣度git
Seafile 是一款開源的企業雲盤,注重可靠性和性能。支持 Windows, Mac, Linux, iOS, Android 平臺。支持文件同步或者直接掛載到本地訪問。github
地址:https://www.seafile.com/home/
Github : https://github.com/haiwen/seafile
w3c教程:https://www.w3cschool.cn/seafile/o24l1swl.htmlsql
# 在Debian/Ubuntu系統下 apt-get update apt-get install mariadb-server apt-get install python2.7 python-setuptools python-imaging python-ldap python-mysqldb python-memcache python-urllib3
# 在 CentOS 7 下 yum install mariadb-server yum install python-setuptools python-imaging python-ldap MySQL-python python-memcached python-urllib3
5.進入seafile安裝包,執行./setup-seafile-mysql.sh
數據庫
------------------------------------------------------- Please choose a way to initialize seafile databases: ------------------------------------------------------- [1] Create new ccnet/seafile/seahub databases [2] Use existing ccnet/seafile/seahub databases
出現這個,讓你去選擇或者使用已存在的數據庫apache
注意,在這裏,seafile會爲咱們建立一個seafile用戶,同時,會建立ccnet/seafile/seahub數據庫,這裏,咱們須要手動去更改下seafile用戶的權限服務器
OK,權限更改完,咱們就能夠正確鏈接數據庫,而且完成安裝
8.安裝完成你將看到這個界面
啓動Seafile服務器
./seafile.sh start # 啓動 Seafile 服務
啓動Seahub
./seahub.sh start <port> # 啓動 Seahub 網站 (默認運行在8000端口上)
小貼士: 你第一次啓動 seahub 時,seahub.sh 腳本會提示你建立一個 seafile 管理員賬號
Seabub: 8000
FileServer: 8082
默認狀況下,咱們的服務器沒有開放8000,8082端口,那麼咱們須要去開放8000,8082端口,具體如何開放8000,8082端口,咱們能夠看我寫的這篇文章:傳送門
./seahub.sh stop # 中止 Seafile 進程 ./seafile.sh stop # 中止 Seahub ./seafile.sh start # 啓動 Seafile 服務 ./seahub.sh start 8001 # 啓動 Seahub 網站 (運行在8001端口上) ./seahub.sh stop # 中止 Seahub ./seafile.sh stop # 中止 Seafile 進程 ./seafile.sh restart # 中止當前的 Seafile 進程,而後重啓 Seafile ./seahub.sh restart # 中止當前的 Seahub 進程,並在 8000 端口從新啓動 Seahub pgrep -f seafile-controller # 查看 Seafile 進程 pgrep -f "seahub" # 查看 Seahub 進程 pkill -f seafile-controller # 結束 Seafile 進程 pkill -f "seahub" # 結束 Seafile 進程
到此爲止咱們就完成了seafile的安裝
最後歡迎你們關注個人微信訂閱號,我會不定時推送些積極向上的文章以及相關技術文章,歡迎你們的支持