如何在 Rocky Linux 9 上安装 Seafile

Linux命令 Edge插件网 1年前 (2023-07-08) 415次浏览 已收录 0个评论

Seafile能够跨设备存储和共享文件,并提供备份和同步功能,是企业和个人的热门选择。在Rocky Linux 9上使用Seafile的好处之一是操作系统附带的安全性。Rocky Linux 9 是一个社区驱动的企业级 Linux 发行版,强调稳定性和安全性。通过在 Rocky Linux 9 上托管 Seafile,您可以放心地知道您的文件存储在安全的平台上。

如何在 Rocky Linux 9 上安装 Seafile

在 Rocky Linux 9 上安装 Seafile

第 1 步。首先,通过运行以下命令更新系统软件包:

<span class="pln">sudo dnf update
sudo dnf install epel</span><span class="pun">-</span><span class="pln">release</span>

第 2 步。安装海文件依赖项。

Seafile 是用 Python Django 框架编写的,你需要安装它的依赖项和 Python 包才能让它工作。运行以下命令以安装 Python 工具、Pip 包管理器、SQL 库和 Memcached:

<span class="pln">sudo dnf install python3 python3</span><span class="pun">-</span><span class="pln">devel python3</span><span class="pun">-</span><span class="pln">imaging </span><span class="typ">MySQL</span><span class="pun">-</span><span class="pln">python3 python3</span><span class="pun">-</span><span class="pln">simplejson python3</span><span class="pun">-</span><span class="pln">setuptools mariadb mariadb</span><span class="pun">-</span><span class="pln">server nginx gcc mysql</span><span class="pun">-</span><span class="pln">devel</span>

接下来,使用 pip3 安装 Python 所需的模块:

<span class="pln">sudo pip3 install </span><span class="pun">--</span><span class="pln">upgrade pip
sudo python3 </span><span class="pun">-</span><span class="pln">m pip install </span><span class="pun">--</span><span class="pln">upgrade </span><span class="typ">Pillow</span><span class="pln">
sudo pip3 install pylibmc captcha jinja2 django</span><span class="pun">-</span><span class="pln">pylibmc django</span><span class="pun">-</span><span class="pln">simple</span><span class="pun">-</span><span class="pln">captcha python3</span><span class="pun">-</span><span class="pln">ldap mysqlclient
sudo pip3 install future sqlalchemy</span><span class="pun">==</span><span class="lit">1.4</span><span class="pun">.</span><span class="lit">3</span>

第 3 步。在 Rocky Linux 9 上安装 MariaDB 数据库。

默认情况下,MariaDB 在 Rocky Linux 9 基础存储库中可用。现在运行以下命令将最新的稳定版本的 MariaDB 安装到您的系统中:

<span class="pln">sudo dnf install mariadb</span><span class="pun">-</span><span class="pln">server mariadb</span>

安装完成后,启动 MariaDB 服务并通过运行以下命令使其在启动时自动启动:

<span class="pln">sudo systemctl enable mariadb </span><span class="pun">--</span><span class="pln">now
sudo systemctl start mariadb
sudo systemctl status mariadb</span>

要检查安装的 MariaDB 版本,请运行以下命令:

<span class="pln">mariadb </span><span class="pun">--</span><span class="pln">version</span>

默认情况下,MariaDB 未强化。您可以使用脚本保护 MariaDB。您应该仔细阅读并在每个步骤下方仔细阅读,这将设置root密码,删除匿名用户,禁止远程root登录,并删除测试数据库和对安全MariaDB的访问权限:mysql_secure_installation

<span class="pln">mysql_secure_installation</span>

像这样配置它:

<span class="pun">-</span> <span class="typ">Set</span><span class="pln"> root password</span><span class="pun">?</span> <span class="pun">[</span><span class="pln">Y</span><span class="pun">/</span><span class="pln">n</span><span class="pun">]</span><span class="pln"> y
</span><span class="pun">-</span> <span class="typ">Remove</span><span class="pln"> anonymous users</span><span class="pun">?</span> <span class="pun">[</span><span class="pln">Y</span><span class="pun">/</span><span class="pln">n</span><span class="pun">]</span><span class="pln"> y
</span><span class="pun">-</span> <span class="typ">Disallow</span><span class="pln"> root login remotely</span><span class="pun">?</span> <span class="pun">[</span><span class="pln">Y</span><span class="pun">/</span><span class="pln">n</span><span class="pun">]</span><span class="pln"> y
</span><span class="pun">-</span> <span class="typ">Remove</span><span class="pln"> test database </span><span class="kwd">and</span><span class="pln"> access to it</span><span class="pun">?</span> <span class="pun">[</span><span class="pln">Y</span><span class="pun">/</span><span class="pln">n</span><span class="pun">]</span><span class="pln"> y
</span><span class="pun">-</span> <span class="typ">Reload</span><span class="pln"> privilege tables now</span><span class="pun">?</span> <span class="pun">[</span><span class="pln">Y</span><span class="pun">/</span><span class="pln">n</span><span class="pun">]</span><span class="pln"> y</span>

接下来,为Seafile主要组件创建数据库,即,和:ccnetseafileseahub

<span class="pln">CREATE DATABASE ccnet_server</span><span class="pun">;</span><span class="pln">
CREATE DATABASE seahub_server</span><span class="pun">;</span><span class="pln">
CREATE DATABASE seafile_server</span><span class="pun">;</span>

然后创建一个数据库用户并授予他对数据库的权限:

<span class="pln">CREATE USER </span><span class="str">'</span><strong><span class="has-inline-color has-vivid-purple-color"><span class="str">seafile</span></span></strong><span class="str">'</span><span class="pun">@</span><span class="str">'localhost'</span><span class="pln"> IDENTIFIED BY </span><span class="str">'</span><strong><span class="has-inline-color has-vivid-green-cyan-color"><span class="str">your-strong-passwd</span></span></strong><span class="str">'</span><span class="pun">;</span>

接下来,授予他数据库的所有权限:

<span class="pln">GRANT ALL PRIVILEGES ON ccnet_server</span><span class="pun">.*</span><span class="pln"> TO </span><span class="str">'seafile'</span><span class="pun">@</span><span class="str">'localhost'</span><span class="pun">;</span><span class="pln">
GRANT ALL PRIVILEGES ON seahub_server</span><span class="pun">.*</span><span class="pln"> TO </span><span class="str">'seafile'</span><span class="pun">@</span><span class="str">'localhost'</span><span class="pun">;</span><span class="pln">
GRANT ALL PRIVILEGES ON seafile_server</span><span class="pun">.*</span><span class="pln"> TO </span><span class="str">'seafile'</span><span class="pun">@</span><span class="str">'localhost'</span><span class="pun">;</span>

第 3 步。在 Rocky Linux 9安装 Seafile

现在转到Seafile下载页面并获取Seafile最新版本的下载链接:

<span class="pln">wget https</span><span class="pun">:</span><span class="com">//s3.eu-central-1.amazonaws.com/download.seadrive.org/seafile-server_10.0.1_x86-64.tar.gz</span>

接下来,将 tar 文件解压缩到目录:/srv

<span class="pln">sudo tar </span><span class="pun">-</span><span class="pln">xvf seafile</span><span class="pun">-</span><span class="pln">server_10</span><span class="pun">.</span><span class="lit">0.1</span><span class="pln">_x86</span><span class="pun">-</span><span class="lit">64.tar</span><span class="pun">.</span><span class="pln">gz </span><span class="pun">-</span><span class="pln">C </span><span class="pun">/</span><span class="pln">srv
sudo mv </span><span class="pun">/</span><span class="pln">srv</span><span class="pun">/</span><span class="pln">seafile</span><span class="pun">-</span><span class="pln">server_10</span><span class="pun">.</span><span class="lit">0.1</span> <span class="pun">/</span><span class="pln">srv</span><span class="pun">/</span><span class="pln">seafile</span>

运行安装脚本。无需安装,只需解压缩并运行安装脚本

<span class="pln">cd </span><span class="pun">/</span><span class="pln">srv</span><span class="pun">/</span><span class="pln">seafile 
sudo </span><span class="pun">./</span><span class="pln">setup</span><span class="pun">-</span><span class="pln">seafile</span><span class="pun">-</span><span class="pln">mysql</span><span class="pun">.</span><span class="pln">sh</span>

按照提示使用 MariaDB 设置您的 Seafile 服务器。

<span class="typ">Checking</span><span class="pln"> python on </span><span class="kwd">this</span><span class="pln"> machine </span><span class="pun">...</span>

<span class="pun">-----------------------------------------------------------------</span>
<span class="typ">This</span><span class="pln"> script will guide you to setup your seafile server </span><span class="kwd">using</span> <span class="typ">MySQL</span><span class="pun">.</span>
<span class="typ">Make</span><span class="pln"> sure you have read seafile server manual at

        https</span><span class="pun">:</span><span class="com">//download.seafile.com/published/seafile-manual/home.md</span>

<span class="typ">Press</span><span class="pln"> ENTER to </span><span class="kwd">continue</span>
<span class="pun">-----------------------------------------------------------------</span>

接下来,通过为服务器提供一个名称(域名)来配置您的 Seafile 服务器:

<span class="typ">What</span> <span class="kwd">is</span><span class="pln"> the name </span><span class="kwd">of</span><span class="pln"> the server</span><span class="pun">?</span> <span class="typ">It</span><span class="pln"> will be displayed on the client</span><span class="pun">.</span>
<span class="lit">3</span> <span class="pun">-</span> <span class="lit">15</span><span class="pln"> letters </span><span class="kwd">or</span><span class="pln"> digits
</span><span class="pun">[</span><span class="pln"> server name </span><span class="pun">]</span><span class="pln"> idroot

</span><span class="typ">What</span> <span class="kwd">is</span><span class="pln"> the ip </span><span class="kwd">or</span><span class="pln"> domain </span><span class="kwd">of</span><span class="pln"> the server</span><span class="pun">?</span>
<span class="typ">For</span><span class="pln"> example</span><span class="pun">:</span><span class="pln"> www</span><span class="pun">.</span><span class="pln">idroot</span><span class="pun">.</span><span class="pln">us</span><span class="pun">,</span> <span class="lit">192.168</span><span class="pun">.</span><span class="lit">1.101</span>
<span class="pun">[</span> <span class="typ">This</span><span class="pln"> server</span><span class="str">'s ip or domain ] seafile.idroot.us

Which port do you want to use for the seafile fileserver?
[ default "8082" ]</span>

接下来,系统将要求您选择一种初始化 Seafile 数据库的方法:

<span class="pun">-------------------------------------------------------</span>
<span class="typ">Please</span><span class="pln"> choose a way to initialize seafile databases</span><span class="pun">:</span>
<span class="pun">-------------------------------------------------------</span>

<span class="pun">[</span><span class="lit">1</span><span class="pun">]</span> <span class="typ">Create</span> <span class="kwd">new</span><span class="pln"> ccnet</span><span class="pun">/</span><span class="pln">seafile</span><span class="pun">/</span><span class="pln">seahub databases
</span><span class="pun">[</span><span class="lit">2</span><span class="pun">]</span> <span class="typ">Use</span><span class="pln"> existing ccnet</span><span class="pun">/</span><span class="pln">seafile</span><span class="pun">/</span><span class="pln">seahub databases

</span><span class="pun">[</span> <span class="lit">1</span> <span class="kwd">or</span> <span class="lit">2</span> <span class="pun">]</span> <span class="lit">2</span>

接下来,系统将要求您输入 Seafile 的数据库详细信息:

<span class="typ">What</span> <span class="kwd">is</span><span class="pln"> the host </span><span class="kwd">of</span><span class="pln"> mysql server</span><span class="pun">?</span>
<span class="pun">[</span> <span class="kwd">default</span> <span class="str">"localhost"</span> <span class="pun">]</span>

<span class="typ">What</span> <span class="kwd">is</span><span class="pln"> the port </span><span class="kwd">of</span><span class="pln"> mysql server</span><span class="pun">?</span>
<span class="pun">[</span> <span class="kwd">default</span> <span class="str">"3306"</span> <span class="pun">]</span>

<span class="typ">Which</span><span class="pln"> mysql user to </span><span class="kwd">use</span> <span class="kwd">for</span><span class="pln"> seafile</span><span class="pun">?</span>
<span class="pun">[</span><span class="pln"> mysql user </span><span class="kwd">for</span><span class="pln"> seafile </span><span class="pun">]</span><span class="pln"> seafile

</span><span class="typ">What</span> <span class="kwd">is</span><span class="pln"> the password </span><span class="kwd">for</span><span class="pln"> mysql user </span><span class="str">"seafile"</span><span class="pun">?</span>
<span class="pun">[</span><span class="pln"> password </span><span class="kwd">for</span><span class="pln"> seafile </span><span class="pun">]</span><span class="pln">

verifying password </span><span class="kwd">of</span><span class="pln"> user seafile </span><span class="pun">...</span>  <span class="kwd">done</span>

<span class="typ">Enter</span><span class="pln"> the existing database name </span><span class="kwd">for</span><span class="pln"> ccnet</span><span class="pun">:</span>
<span class="pun">[</span><span class="pln"> ccnet database </span><span class="pun">]</span><span class="pln"> ccnet_server

verifying user </span><span class="str">"seafile"</span><span class="pln"> access to database ccnet_db </span><span class="pun">...</span>  <span class="kwd">done</span>

<span class="typ">Enter</span><span class="pln"> the existing database name </span><span class="kwd">for</span><span class="pln"> seafile</span><span class="pun">:</span>
<span class="pun">[</span><span class="pln"> seafile database </span><span class="pun">]</span><span class="pln"> seafile_server

verifying user </span><span class="str">"seafile"</span><span class="pln"> access to database seafile_db </span><span class="pun">...</span>  <span class="kwd">done</span>

<span class="typ">Enter</span><span class="pln"> the existing database name </span><span class="kwd">for</span><span class="pln"> seahub</span><span class="pun">:</span>
<span class="pun">[</span><span class="pln"> seahub database </span><span class="pun">]</span><span class="pln"> seahub_server

verifying user </span><span class="str">"seafile"</span><span class="pln"> access to database seahub_db </span><span class="pun">...</span>  <span class="kwd">done</span>

您将看到您的 Seafile 配置。按回车键继续安装:

<span class="pun">---------------------------------</span>
<span class="typ">This</span> <span class="kwd">is</span><span class="pln"> your configuration
</span><span class="pun">---------------------------------</span><span class="pln">

    server name</span><span class="pun">:</span><span class="pln">            idroot
    server ip</span><span class="pun">/</span><span class="pln">domain</span><span class="pun">:</span><span class="pln">       seafile</span><span class="pun">.</span><span class="pln">idroot</span><span class="pun">.</span><span class="pln">us

    seafile data dir</span><span class="pun">:</span>       <span class="str">/opt/</span><span class="pln">seafile</span><span class="pun">/</span><span class="pln">seafile</span><span class="pun">-</span><span class="pln">data
    fileserver port</span><span class="pun">:</span>        <span class="lit">8082</span><span class="pln">

    database</span><span class="pun">:</span>               <span class="kwd">use</span><span class="pln"> existing
    ccnet database</span><span class="pun">:</span><span class="pln">         ccnet_server
    seafile database</span><span class="pun">:</span><span class="pln">       seafile_server
    seahub database</span><span class="pun">:</span><span class="pln">        seahub_server
    database user</span><span class="pun">:</span><span class="pln">          seafile


</span><span class="pun">---------------------------------</span>
<span class="typ">Press</span><span class="pln"> ENTER to </span><span class="kwd">continue</span><span class="pun">,</span> <span class="kwd">or</span> <span class="typ">Ctrl</span><span class="pun">-</span><span class="pln">C to abort
</span><span class="pun">---------------------------------</span>

如果安装成功,您将看到以下屏幕:

<span class="typ">Generating</span><span class="pln"> ccnet configuration </span><span class="pun">...</span>

<span class="typ">Generating</span><span class="pln"> seafile configuration </span><span class="pun">...</span>

<span class="kwd">done</span>
<span class="typ">Generating</span><span class="pln"> seahub configuration </span><span class="pun">...</span>

<span class="pun">----------------------------------------</span>
<span class="typ">Now</span><span class="pln"> creating ccnet database tables </span><span class="pun">...</span>

<span class="pun">----------------------------------------</span>
<span class="pun">----------------------------------------</span>
<span class="typ">Now</span><span class="pln"> creating seafile database tables </span><span class="pun">...</span>

<span class="pun">----------------------------------------</span>
<span class="pun">----------------------------------------</span>
<span class="typ">Now</span><span class="pln"> creating seahub database tables </span><span class="pun">...</span>

<span class="pun">----------------------------------------</span><span class="pln">

creating seafile</span><span class="pun">-</span><span class="pln">server</span><span class="pun">-</span><span class="pln">latest symbolic link </span><span class="pun">...</span>  <span class="kwd">done</span>

<span class="pun">-----------------------------------------------------------------</span>
<span class="typ">Your</span><span class="pln"> seafile server configuration has been finished successfully</span><span class="pun">.</span>
<span class="pun">-----------------------------------------------------------------</span><span class="pln">

run seafile server</span><span class="pun">:</span>     <span class="pun">./</span><span class="pln">seafile</span><span class="pun">.</span><span class="pln">sh </span><span class="pun">{</span><span class="pln"> start </span><span class="pun">|</span><span class="pln"> stop </span><span class="pun">|</span><span class="pln"> restart </span><span class="pun">}</span><span class="pln">
run seahub  server</span><span class="pun">:</span>     <span class="pun">./</span><span class="pln">seahub</span><span class="pun">.</span><span class="pln">sh  </span><span class="pun">{</span><span class="pln"> start </span><span class="str"><port></span> <span class="pun">|</span><span class="pln"> stop </span><span class="pun">|</span><span class="pln"> restart </span><span class="str"><port></span> <span class="pun">}</span>

<span class="pun">-----------------------------------------------------------------</span>
<span class="typ">If</span><span class="pln"> you are behind a firewall</span><span class="pun">,</span><span class="pln"> remember to allow input</span><span class="pun">/</span><span class="pln">output </span><span class="kwd">of</span><span class="pln"> these tcp ports</span><span class="pun">:</span>
<span class="pun">-----------------------------------------------------------------</span><span class="pln">

port </span><span class="kwd">of</span><span class="pln"> seafile fileserver</span><span class="pun">:</span>   <span class="lit">8082</span><span class="pln">
port </span><span class="kwd">of</span><span class="pln"> seahub</span><span class="pun">:</span>               <span class="lit">8000</span>

<span class="typ">When</span><span class="pln"> problems occur</span><span class="pun">,</span> <span class="typ">Refer</span><span class="pln"> to

        https</span><span class="pun">:</span><span class="com">//download.seafile.com/published/seafile-manual/home.md</span>

<span class="kwd">for</span><span class="pln"> information</span><span class="pun">.</span>

最后,启动 Seafile 服务器服务以帮助我们进行文件上传、文件下载和文件同步:

<span class="has-inline-color has-pale-pink-color"><span class="pln">cd </span><span class="pun">/</span><span class="pln">srv</span><span class="pun">/</span><span class="pln">seafile</span><span class="pun">/</span>    </span>
<span class="has-inline-color has-luminous-vivid-amber-color"><span class="pln">sudo </span><span class="pun">./</span><span class="pln">seafile</span><span class="pun">.</span><span class="pln">sh start</span></span>

现在启动Seahub Web UI服务:

<span class="pln">cd </span><span class="pun">/</span><span class="pln">srv</span><span class="pun">/</span><span class="pln">seafile</span><span class="pun">/</span><span class="pln">
sudo </span><span class="pun">./</span><span class="pln">seahub</span><span class="pun">.</span><span class="pln">sh start</span>

输出:

<span class="pun">----------------------------------------</span>
<span class="typ">It</span><span class="str">'s the first time you start the seafile server. Now let'</span><span class="pln">s create the admin account
</span><span class="pun">----------------------------------------</span>

<span class="typ">What</span> <span class="kwd">is</span><span class="pln"> the email </span><span class="kwd">for</span><span class="pln"> the admin account</span><span class="pun">?</span>
<span class="pun">[</span><span class="pln"> admin email </span><span class="pun">]</span><span class="pln"> ngadimin@idroot</span><span class="pun">.</span><span class="pln">us

</span><span class="typ">What</span> <span class="kwd">is</span><span class="pln"> the password </span><span class="kwd">for</span><span class="pln"> the admin account</span><span class="pun">?</span>
<span class="pun">[</span><span class="pln"> admin password </span><span class="pun">]</span>

<span class="typ">Enter</span><span class="pln"> the password again</span><span class="pun">:</span>
<span class="pun">[</span><span class="pln"> admin password again </span><span class="pun">]</span>

<span class="pun">----------------------------------------</span>
<span class="typ">Successfully</span><span class="pln"> created seafile admin
</span><span class="pun">----------------------------------------</span>

<span class="typ">Seahub</span> <span class="kwd">is</span><span class="pln"> started

</span><span class="typ">Done</span><span class="pun">.</span>

第 4 步。创建海文件系统服务。

现在我们将Seafile和Seahub设置为服务:systemd

<span class="pln">sudo tee  </span><span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">systemd</span><span class="pun">/</span><span class="pln">system</span><span class="pun">/</span><span class="pln">seafile</span><span class="pun">.</span><span class="pln">service</span><span class="pun"><<</span><span class="pln">EOF
</span><span class="pun">[</span><span class="typ">Unit</span><span class="pun">]</span>
<span class="typ">Description</span><span class="pun">=</span><span class="typ">Seafile</span>
<span class="typ">After</span><span class="pun">=</span><span class="pln"> mysql</span><span class="pun">.</span><span class="pln">service
</span><span class="typ">After</span><span class="pun">=</span><span class="pln">network</span><span class="pun">.</span><span class="pln">target

</span><span class="pun">[</span><span class="typ">Service</span><span class="pun">]</span>
<span class="typ">Type</span><span class="pun">=</span><span class="pln">forking
</span><span class="typ">ExecStart</span><span class="pun">=</span><span class="str">/srv/</span><span class="pln">seafile</span><span class="pun">-</span><span class="pln">server</span><span class="pun">-</span><span class="pln">latest</span><span class="pun">/</span><span class="pln">seafile</span><span class="pun">.</span><span class="pln">sh start
</span><span class="typ">ExecStop</span><span class="pun">=</span><span class="str">/srv/</span><span class="pln">seafile</span><span class="pun">-</span><span class="pln">server</span><span class="pun">-</span><span class="pln">latest</span><span class="pun">/</span><span class="pln">seafile</span><span class="pun">.</span><span class="pln">sh stop

</span><span class="pun">[</span><span class="typ">Install</span><span class="pun">]</span>
<span class="typ">WantedBy</span><span class="pun">=</span><span class="pln">multi</span><span class="pun">-</span><span class="pln">user</span><span class="pun">.</span><span class="pln">target
EOF</span>

为Seahub Web UI创建一个systemd单元文件:

<span class="pln">sudo tee  </span><span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">systemd</span><span class="pun">/</span><span class="pln">system</span><span class="pun">/</span><span class="pln">seahub</span><span class="pun">.</span><span class="pln">service</span><span class="pun"><<</span><span class="pln">EOF
</span><span class="pun">[</span><span class="typ">Unit</span><span class="pun">]</span>
<span class="typ">Description</span><span class="pun">=</span><span class="typ">Seafile</span>
<span class="typ">After</span><span class="pun">=</span><span class="pln"> mysql</span><span class="pun">.</span><span class="pln">service
</span><span class="typ">After</span><span class="pun">=</span><span class="pln">network</span><span class="pun">.</span><span class="pln">target

</span><span class="pun">[</span><span class="typ">Service</span><span class="pun">]</span>
<span class="typ">Type</span><span class="pun">=</span><span class="pln">forking
</span><span class="typ">ExecStart</span><span class="pun">=</span><span class="str">/srv/</span><span class="pln">seafile</span><span class="pun">-</span><span class="pln">server</span><span class="pun">-</span><span class="pln">latest</span><span class="pun">/</span><span class="pln">seahub</span><span class="pun">.</span><span class="pln">sh start
</span><span class="typ">ExecStop</span><span class="pun">=</span><span class="str">/srv/</span><span class="pln">seafile</span><span class="pun">-</span><span class="pln">server</span><span class="pun">-</span><span class="pln">latest</span><span class="pun">/</span><span class="pln">seahub</span><span class="pun">.</span><span class="pln">sh stop

</span><span class="pun">[</span><span class="typ">Install</span><span class="pun">]</span>
<span class="typ">WantedBy</span><span class="pun">=</span><span class="pln">multi</span><span class="pun">-</span><span class="pln">user</span><span class="pun">.</span><span class="pln">target
EOF</span>

第5步。配置防火墙。

默认情况下,防火墙在 Rocky Linux 上启用。Seafile 的默认端口是端口号,而 Seahub 的默认端口是端口 。要允许端口通过防火墙,请发出以下命令:80828000

<span class="pln">sudo firewall</span><span class="pun">-</span><span class="pln">cmd </span><span class="pun">--</span><span class="pln">zone</span><span class="pun">=</span><span class="kwd">public</span> <span class="pun">--</span><span class="kwd">add</span><span class="pun">-</span><span class="pln">port</span><span class="pun">=</span><span class="lit">8000</span><span class="pun">/</span><span class="pln">tcp </span><span class="pun">--</span><span class="pln">permanent
sudo firewall</span><span class="pun">-</span><span class="pln">cmd </span><span class="pun">--</span><span class="pln">zone</span><span class="pun">=</span><span class="kwd">public</span> <span class="pun">--</span><span class="kwd">add</span><span class="pun">-</span><span class="pln">port</span><span class="pun">=</span><span class="lit">8082</span><span class="pun">/</span><span class="pln">tcp </span><span class="pun">--</span><span class="pln">permanent
sudo firewall</span><span class="pun">-</span><span class="pln">cmd </span><span class="pun">--</span><span class="pln">reload</span>

第 6 步。访问海文件网页界面。

成功安装后,打开您的 Web 浏览器并使用 URL 访问 Seafile Web 界面。您应该看到以下页面:http://seafile.idroot.us:8000

如何在 Rocky Linux 9 上安装 Seafile

感谢您使用本教程在您的 Rocky Linux 9 系统上安装 Seafile。如需其他帮助或有用信息,我们建议您查看官方 Seafile 网站。


Edge插件网 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:如何在 Rocky Linux 9 上安装 Seafile
喜欢 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址