在CentOS 8上安裝Pydio Cells文件共享

這是續集。
您可以通過以下鏈接以PDF格式下載本文,以為我們提供支持。

以PDF格式下載指南


這是續集。

這是續集。
這是續集。

Pydio Cells是一個開源文件共享軟件。通過提供文件同步,您可以在內部和外部從一個中心點共享和訪問各種文檔,例如文件,圖像和視頻。您可以在虛擬機或您自己的物理計算機中安裝Pydio。

Pydio還帶有適用於Linux,Windows,MacOS的本地客戶端以及適用於Android和iOS的移動客戶端。 Pydio是其他文件共享工具(例如Dropbox和Nextcloud)的替代方法。本指南描述了如何在CentOS 8上安裝和配置Pydio以進行文件共享。

步驟1:更新系統

在開始安裝Pydio服務器之前,請確保您的CentOS系統是最新的。運行以下命令。

sudo dnf -y update
sudo yum -y install vim bash-completion unzip wget

另外,禁用SElinux。打開SElinux配置,從“已啟用”更改為“已禁用”並保存文件。

sudo vim /etc/selinux/config

如圖所示進行更改並保存文件

# This file controls the state of SELinux on the system. 
# SELINUX= can take one of these three values: 
#     enforcing - SELinux security policy is enforced. 
#     permissive - SELinux prints warnings instead of enforcing. 
#     disabled - No SELinux policy is loaded. 
SELINUX=disabled 
# SELINUXTYPE= can take one of these three values: 
#     targeted - Targeted processes are protected, 
#     minimum - Modification of targeted policy. Only selected processes are protected.  
#     mls - Multi Level Security protection. 
SELINUXTYPE=targeted

進行更改後重新啟動系統

sudo reboot

步驟2:在CentOS 8上安裝MariaDB

要在CentOS 8上安裝MariaDB服務器,請運行以下命令:

sudo dnf -y install mariadb-server

安裝完成後,使用以下命令啟動mariadb以將其啟用。

sudo systemctl start mariadb
sudo systemctl enable mariadb

然後保護mysql並設置root用戶密碼。

sudo mysql_secure_installation

進行如下:

Enter current password for root (enter for none): Just press Enter
OK, successfully used password, moving on... 

Setting the root password ensures that nobody can log into the MariaDB 
root user without the proper authorization. 

Set root password? [Y/n] Y 
New password:  New-root-password
Re-enter new password: Re-enter New-root-password
Password updated successfully! 
Reloading privilege tables.. 
... Success! 


By default, a MariaDB installation has an anonymous user, allowing anyone 
to log into MariaDB without having to have a user account created for 
them.  This is intended only for testing, and to make the installation 
go a bit smoother.  You should remove them before moving into a 
production environment. 

Remove anonymous users? [Y/n] Y 
... Success! 

Normally, root should only be allowed to connect from 'localhost'.  This 
ensures that someone cannot guess at the root password from the network. 
Disallow root login remotely? [Y/n] Y 
... Success! 

By default, MariaDB comes with a database named 'test' that anyone can 
access.  This is also intended only for testing, and should be removed 
before moving into a production environment. 

Remove test database and access to it? [Y/n] Y 
- Dropping test database... 
... Success! 
- Removing privileges on test database... 
... Success! 

Reloading the privilege tables will ensure that all changes made so far 
will take effect immediately. 

Reload privilege tables now? [Y/n] Y 
... Success! 

Cleaning up... 

All done!  If you've completed all of the above steps, your MariaDB 
installation should now be secure. 

Thanks for using MariaDB!

您需要為Pydio創建新的用戶和數據庫。連接到MySQL並執行以下MySQL命令。

$ mysql -u root -p

輸入上面設置的root密碼,然後執行以下MySQL命令來創建Pydio用戶和數據庫。

create database cells;
grant all privileges on cells.* to 'pydiouser'@'localhost' identified by '[email protected]';
flush privileges;
exit; 

步驟3:建立Pydio使用者

您需要創建一個Pydio用戶並設置密碼。執行以下命令。

sudo useradd -m pydio
sudo passwd pydio

設置用戶密碼後,按如下所示增加文件描述符限制:

sudo ulimit -n 8192

步驟4:在CentOS 8上安裝Pydio單元

您需要將pydio cells二進制安裝程序下載到CentOS 8。切換到pydio用戶並運行以下命令。

sudo su - pydio
wget https://download.pydio.com/latest/cells/release/%7Blatest%7D/linux-amd64/pydio-cells-%7Blatest%7D-linux-amd64.zip

使用unzip命令解壓縮zip文件。如果您尚未安裝解壓縮程序,請先安裝它,然後使用它解壓縮pydio cell安裝程序。

unzip pydio-cells-{latest}-linux-amd64.zip 

步驟5:在CentOS 8上安裝Pydio Cell

解壓縮zip文件後,使用其他名稱的文件 細胞 它將被添加到路徑中。要安裝pydio單元,請運行以下命令。

chmod u+x cells
./cells install

安裝將開始,並且將要求您選擇所需的安裝方法。選擇瀏覽器安裝

Welcome to Pydio Cells Home Edition installation 
Pydio Cells Home Edition will be configured to run on this machine. Make sure to prepare the following data 
- IPs and ports for binding the webserver to outside world 
- MySQL 5.6+ (or MariaDB equivalent) server access 
Pick your installation mode when you are ready. 

✔ Browser-based (requires a browser access)

使用箭頭鍵選擇安裝類型, 輸入..然後使用箭頭鍵指定要偵聽的URL和端口

? Internal Url (address that the webserver will listen to, use ip:port or yourdomain.tld:port, without http/https):  
+   Other 
 ▸ :8080
   127.0.0.1:8080
   localhost:8080
↓   0.0.0.0:8080

我也選擇不使用TLS,但是如果您的pydio安裝有fqdn,則可以選擇TLS。

? Choose TLS activation mode. Please note that you should enable SSL even behind a reverse proxy, as HTTP2 'TLS => Clear' is generally not supported:  
 ▸ Provide paths to certificate/key files 
   Use Let's Encrypt to automagically generate certificate during installation process 
   Generate your own locally trusted certificate (for staging env or if you are behind a reverse proxy) 
   Disable TLS (staging environments only, never recommended!)

檢查安裝網址,然後單擊“輸入’啟動一個pydio單元。另外,在瀏覽器中將其打開,然後繼續安裝。

Your instance will be accessible at http://:8080. If you are behind a reverse proxy or inside a private network, you may need to manually set an alternative External URL. Do not change this is you are not sure! 
Use the arrow keys to navigate: ↓ ↑ → ←  
? Setup a different URL for external access:  
 ▸ Use http://:8080
   Set another URL

請點擊 輸入 要使用該URL,必須啟動Pydio單元,並可以使用指定的URL從瀏覽器訪問該單元。

2020-08-05T08:50:29.684-0400    INFO    pydio.gateway.rest      started 
2020-08-05T08:50:29.979-0400    INFO    Registering /install/events for Polling 
2020-08-05T08:50:29.979-0400    INFO    pydio.rest.install      started 
Activating privacy features... done. 
http://:80  

Installation Server is starting ... :80 
external URL: http://:80 

2020-08-05T08:50:32.180-0400    INFO    pydio.gateway.proxy     Restarting proxy        {"caddyfile": "ntt http://:80  {nttt root "/root/.config/pydio/cells/static/install"nttt proxy /install :41233ntt tntttntt }nt "} 
2020-08-05T08:50:32.181-0400    INFO    pydio.gateway.proxy     Restart done 

Opening URL http://:8080 in your browser. Please copy/paste it if the browser is not on the same machine.

步驟6:安裝Pydio Cell Browser。

將URL放置在瀏覽器中後,您將能夠訪問Pydio單元並繼續設置。單擊以接受Pydio Cells條款 下一個..

在以下屏幕截圖中,輸入詳細信息以連接到您的Pydio數據庫,如圖所示,然後單擊 下一個

在CentOS 8上安裝Pydio Cells文件共享

以下是我的設置數據庫的詳細信息:

  • 數據庫名稱: 細胞
  • 數據庫用戶: pydiouser
  • 數據庫密碼: [email protected]

在下一個窗口中,輸入管理員用戶詳細信息。另外,選擇默認語言。點擊 下一個

在CentOS 8上安裝Pydio Cells文件共享

完成詳細設置後, 現在安裝..確認設置並單擊 重裝..然後,Screed將提示您登錄pydio單元。提供管理員憑據以登錄。

在CentOS 8上安裝Pydio Cells文件共享

歡迎來到Pydio Cell。您可以啟動Pydio Tour或跳過它並開始使用它。

在CentOS 8上安裝Pydio Cells文件共享

單擊任意以開始上傳或創建新文件和文件夾 個人檔案 要麼 通用文件。

在CentOS 8上安裝Pydio Cells文件共享

點擊 上載 瀏覽要上傳的文件或文件夾。

在CentOS 8上安裝Pydio Cells文件共享

步驟7:從終端啟動Pydio單元

要從終端重新啟動Pydio單元,請運行以下命令。

sudo su - pydio
cd ~/
./cells start &

步驟8:在Ubuntu和其他基於Linux的系統上配置Pydio Cell Client。

Linux用戶可以使用內置的Nautilus文件管理器連接到Pydio。開啟檔案其他地方

在CentOS 8上安裝Pydio Cells文件共享

點擊 連接到服務器 提供憑據以連接到Pydio服務器。由於這是一個WebDav客戶端,因此連接URL將為dav://。:8080 /達夫/

在CentOS 8上安裝Pydio Cells文件共享

享受與Pydio Cells文件共享的共享。查看其他指南:

  • 如何在Ubuntu上安裝Pydio File Sharing Server
  • 如何在Ubuntu上安裝和配置Pydio File Sharing Server
  • 如何在Ubuntu上安裝Seafile文件共享
  • Nextcloud vs Owncloud vs Seafile vs Syncthing

這是續集。
您可以通過以下鏈接以PDF格式下載本文,以為我們提供支持。

以PDF格式下載指南


這是續集。

這是續集。
這是續集。

Sidebar