Menu
快讀
  • 旅遊
  • 生活
    • 美食
    • 寵物
    • 養生
    • 親子
  • 娛樂
    • 動漫
  • 時尚
  • 社會
  • 探索
  • 故事
  • 科技
  • 軍事
  • 国际
快讀

放棄百度網盤吧!搭建自己的私有雲盤seafile

2021 年 3 月 12 日 麦田财经News

seafile雲盤你可以在內網機器或虛擬機搭建這樣比較適合企業內部或者家庭協同用,也可以找個公網的機器或者虛擬機搭建一個可以隨時隨地查看下載雲盤文件。

  1. 准備工作
  • 安裝wget

yum install -y wget

  • 關閉防火牆

systemctl stop firewalld systemctl disable firewalld

  • 安裝epel、Nux Dextop源

rpm -ivh http://mirrors.ustc.edu.cn/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm rpm –import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm

2.部署seafile

  • 安裝MySQL或Mariadb

yum -y install mariadb mariadb-server

  • 啓動開機啓動Mariadb

systemctl start mariadb systemctl enable mariadb

  • Mariadb一些安全設置

mysql_secure_installation

#根據下面提示進行設置

# 第一次運行密碼爲空,回車。 Enter current password for root (enter for none): # 需要設置root密碼,輸入y後回車。 Set root password? [Y/n] y # 是否刪除匿名用戶,回車。 Remove anonymous users? [Y/n] # 是否禁止root遠程登錄,回車。 Disallow root login remotely? [Y/n] # 是否刪除test數據庫,回車。 Remove test database and access to it? [Y/n] # 是否重新加載權限表,回車。 Reload privilege tables now? [Y/n]

  • 安裝依賴

yum install -y python-memcached \ python-ldap \ python-urllib3 \ python-imaging \ MySQL-python \ python-distribute \ ffmpeg \ ffmpeg-devel

  • 安裝seafile

#新建一個放置壓縮包的目錄 mkdir seafile

#進入目錄 cd seafile

#獲取安裝包 wget http://seafile-downloads.oss-cn-shanghai.aliyuncs.com/seafile-server_6.2.5_x86-64.tar.gz

#解壓安裝包 tar zxf seafile-server_6.2.5_x86-64.tar.gz

#進入目錄運行腳本安裝 cd seafile-server-* ./setup-seafile-mysql.sh

  • 根據下列提示進行安裝

# 顯示給客戶端的服務名,輸入服務名後回車。

What is the name of the server? It will be displayed on the client.

3 – 15 letters or digits

[ server name ] OpsBakPE

# 輸入ip或域名,由于內部使用直接ip,輸入ip後回車。

What is the ip or domain of the server?

For example: www.mycompany.com, 192.168.1.101

[ This server’s ip or domain ] 192.168.16.203

# 使用默認,將數據文件放在/root/seafile-data下,回車。

Where do you want to put your seafile data?

Please use a volume with enough free space

[ default “/root/seafile-data” ]

# 使用默認的文件服務端口8082,回車。

Which port do you want to use for the seafile fileserver?

[ default “8082” ]

# 使用新的seahub數據庫,輸入1後回車。

——————————————————-

Please choose a way to initialize seafile databases:

——————————————————-

[1] Create new ccnet/seafile/seahub databases

[2] Use existing ccnet/seafile/seahub databases

[ 1 or 2 ] 1

# 由于剛才裝了mariadb,使用默認本地,回車。

What is the host of mysql server?

[ default “localhost” ]

# mariadb的默認端口就是3306,回車。

What is the port of mysql server?

[ default “3306” ]

# 使用默認的seafile作爲seafile使用mariadb的用戶,回車。

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

[ default “seafile” ]

# 輸入mariadb的用戶seafile的密碼,回車。

Enter the password for mysql user “seafile”:

[ password for seafile ]

# 使用默認ccnet-db作爲ccnet-server使用的數據庫名,回車。

Enter the database name for ccnet-server:

[ default “ccnet-db” ]

# 使用默認seafile-db作爲seafile-server使用的數據庫名,回車。

Enter the database name for seafile-server:

[ default “seafile-db” ]

# 使用默認seahub-db作爲seahub使用的數據庫名,回車。

Enter the database name for seahub:

[ default “seahub-db” ]

  • 檢查無誤後回車進行安裝

放棄百度網盤吧!搭建自己的私有雲盤seafile

  • 啓動seafile、seahub

./seafile.sh start #這裏加了80端口,不加端口的情況下默認運行在8000端口上 ./seahub.sh start 80 #第一次啓動 seahub 時,seahub.sh腳本會提示創建seafile管理員帳號

  • 訪問seafile

浏覽器訪問http://部署seafile的虛擬機IP,使用剛才創建的管理員賬號登錄。

  • 安裝完成

放棄百度網盤吧!搭建自己的私有雲盤seafile

相關文章:

  • CentOS 7 上安裝 Node.js + PM2 + NGINX + Redis
  • 新加坡莆田集團放大招——情懷子品牌Yum Sing等你來
  • DNS域名解析服務bind
  • 開發也需了解的運維知識之Docker
  • 瞬穿曼谷街頭!氣氛滿點的泰式炭燒火鍋Tom Yum Kungfu🤤 口味正宗、平價又好吃!
  • Mock.js入門
體育

發佈留言 取消回覆

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

©2025 快讀 | 服務協議 | DMCA | 聯繫我們