日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Seafile 开源企业云盘部署

發布時間:2023/12/10 编程问答 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Seafile 开源企业云盘部署 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

目錄

部署

下載安裝包

安裝pip

安裝其他依賴

安裝

啟動

重新部署


?

官網:https://www.seafile.com/home/

文檔:https://manual-cn.seafile.com/

源碼:https://github.com/haiwen/seafile-docs-cn

?

部署

下載安裝包

https://www.seafile.com/download/

linux服務器端6.3.4 64bit

?

安裝pip

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

python get-pip.py

?

安裝其他依賴

yum -y install epel-release rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro yum -y install python-imaging MySQL-python python-memcached python-ldap python-urllib3 ffmpeg ffmpeg-devel pip install pillow moviepy

?

安裝

拷貝包seafile-server_6.3.4_x86-64.tar.gz到目錄后

tar -xzf seafile-server_*

cd seafile-server-*

./setup-seafile-mysql.sh #運行安裝腳本并回答預設問題

該腳本會依次詢問你一些問題,從而一步步引導你配置 Seafile 的各項參數:

參數

作用

說明

seafile server name

seafile 服務器的名字,目前該配置已經不再使用

3 ~ 15 個字符,可以用英文字母,數字,下劃線

seafile server ip or domain

seafile 服務器的 IP 地址或者域名

客戶端將通過這個 IP 或者地址來訪問你的 Seafile 服務

seafile data dir

seafile 數據存放的目錄,用上面的例子,默認將是 /data/haiwen/seafile-data

seafile 數據將隨著使用而逐漸增加,請把它放在一個有足夠大空閑空間的分區上

seafile fileserver port

seafile fileserver 使用的 TCP 端口

該端口用于文件同步,請使用默認的 8082,不能更改。

在這里, 你會被要求選擇一種創建 Seafile 數據庫的方式:

------------------------------------------------------- Please choose a way to initialize seafile databases: ------------------------------------------------------- [1] Create new ccnet/seafile/seahub databases [2] Use existing ccnet/seafile/seahub databases

  • 如果選擇1, 你需要提供根密碼. 腳本程序會創建數據庫和用戶。
  • 如果選擇2, ccnet/seafile/seahub 數據庫應該已經被你(或者其他人)提前創建。

?

選擇1,依次配置

What is the host of mysql server?

[ default "localhost" ] 10.1.69.91

?

From which hosts could the mysql account be used?

[ default "%" ]

?

What is the port of mysql server?

[ default "3306" ]

?

What is the password of the mysql root user?

[ root password ]

?

verifying password of user root ... done

?

Enter the name for mysql user of seafile. It would be created if not exists.

[ default "seafile" ]

?

Enter the password for mysql user "seafile":

[ password for seafile ]

?

Enter the database name for ccnet-server:

[ default "ccnet-db" ]

?

Enter the database name for seafile-server:

[ default "seafile-db" ]

?

Enter the database name for seahub:

[ default "seahub-db" ]

?

配置確認

---------------------------------

This is your configuration

---------------------------------

?

server name: xxxx

server ip/domain: 192.168.91.150

?

seafile data dir: /root/seafile-data

fileserver port: 8082

?

database: create new

ccnet database: ccnet-db

seafile database: seafile-db

seahub database: seahub-db

database user: seafile

?

?

?

---------------------------------

Press ENTER to continue, or Ctrl-C to abort

---------------------------------

?

此時點回車繼續

?

Generating ccnet configuration ...

?

done

Successly create configuration dir /root/ccnet.

Generating seafile configuration ...

?

Done.

done

Generating seahub configuration ...

?

----------------------------------------

Now creating seahub database tables ...

?

----------------------------------------

?

creating seafile-server-latest symbolic link ... done

?

?

?

?

-----------------------------------------------------------------

Your seafile server configuration has been finished successfully.

-----------------------------------------------------------------

?

run seafile server: ./seafile.sh { start | stop | restart }

run seahub server: ./seahub.sh { start <port> | stop | restart <port> }

?

-----------------------------------------------------------------

If you are behind a firewall, remember to allow input/output of these tcp ports:

-----------------------------------------------------------------

?

port of seafile fileserver: 8082

port of seahub: 8000

?

When problems occur, Refer to

?

https://github.com/haiwen/seafile/wiki

?

for information.

?

此時安裝已成功

?

啟動

?

在 seafile-server-1.8.2 目錄下,運行如下命令

  • 啟動 Seafile:

./seafile.sh start # 啟動 Seafile 服務

  • 啟動 Seahub

./seahub.sh start <port> # 啟動 Seahub 網站 (默認運行在8000端口上)

小貼士:?你第一次啟動 seahub 時,seahub.sh?腳本會提示你創建一個 seafile 管理員帳號。

服務啟動后, 打開瀏覽器并輸入以下地址

http://192.168.1.111:8000/

你會被重定向到登陸頁面. 輸入管理員用戶名和密碼即可。

恭喜!?現在你已經成功的安裝了 Seafile 服務器.

?

重新部署

重新部署需要刪除外部創建的目錄

rm -rf ccnet/ conf/ logs/ pids/ seafile-data/ seafile-server-latest seahub-data/

刪掉mysql新增seafile用戶及如下三個數據庫

ccnet database: ccnet-db

seafile database: seafile-db

seahub database: seahub-db

總結

以上是生活随笔為你收集整理的Seafile 开源企业云盘部署的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。