在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