如何在 Debian 10 Linux 上安装 Webmin
Webmin 是用于管理 Linux 服务器的开源 Web 控制面板。它使您可以管理系统用户,组,磁盘配额,以及安装和配置 Web , ssh , ftp ,电子邮件和数据库服务器。
使用 Webmin ,您几乎可以配置系统的每个方面。
在本教程中,我们将向您展示如何在 Debian 10 Buster 上安装 Webmin 。
先决条件
您需要以具有 sudo 访问权限的用户身份登录才能安装软件包。
在 Debian 上安装 Webmin
在 Debian Linux 上安装 Webmin 是一个简单而轻松的过程,只需几分钟。该软件包可从 Webmin 官方存储库中获得。
-
首先,更新软件包索引并安装依赖项:
sudo apt update sudo apt install software-properties-common apt-transport-https wget
-
使用以下 wget 命令导入 Webmin GPG 密钥并启用 Webmin 存储库:
wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add - sudo add-apt-repository " deb [arch=amd64] http://download.webmin.com/download/repository sarge contrib "
-
启用存储库后,通过运行以下命令安装 Webmin 软件包:
sudo apt update && sudo apt install webmin
成功安装后,将输出以下输出:
Webmin install complete. You can now login to https://your_server_ip_or_hostname:10000/ as root with your root password, or as any user who can use sudo to run commands as root.
Webmin服务将自动启动。
现在,Webmin 已安装在您的 Debian Linux 服务器上。
调整防火墙
默认情况下, Webmin 在所有网络接口上的 10000
端口上侦听连接。如果您的服务器运行防火墙,则需要打开 Webmin 端口。
UFW 用户可以通过键入以下内容打开 10000
端口:
sudo ufw allow 10000/tcp
如果使用 nftable 管理系统的连接,请通过以下命令来打开必要的端口:
nft add rule inet filter input tcp dport 10000 ct state new,established counter accept
访问 Webmin Web 界面
现在, Webmin 已安装在 Debian 服务器上,启动 Web 浏览器然后键入服务器的主机名或公共 IP 地址,然后键入 Webmin 端口 10000
:
https://your_server_ip_or_hostname:10000/
浏览器将显示证书无效。默认情况下, Webmin 使用不受信任的自签名 SSL 证书。
使用您的 root 或 sudo 用户凭据登录到 Webmin Web 界面:
登录后,您将被重定向到 Webmin 仪表板,您可以在其中查看有关系统的基本信息。
在这里,您可以根据需要开始配置和管理 Debian 10 服务器。
升级 Webmin
要在发布新版本时升级 Webmin 安装,请使用 apt
软件包管理器正常升级:
sudo apt update
sudo apt upgrade
结论
Webmin 是一个基于 Web 的工具,可让您管理 Linux 服务器。要在 Debian Buster 上安装 Webmin ,只需启用官方 Webmin 存储库并安装软件包。
有关 Webmin 的更多信息,请访问其官方文档页面。