Webmin 是一个很好的选择,如果你想找一个易于使用的
用于管理 VPS 的界面。我们来看看如何在
VPS.
Step 1: Install
Dependency Packages
首先,你需要安装依赖包。输入
在您的终端中运行以下命令。
sudo yum install nano -y
Step
2: 将 Webmin 存储库添加到存储库列表
打开终端,输入以下命令来添加 Webmin
repository:
sudo nano /etc/yum.repos.d/webmin.repo
步骤 3:写入新内容
File
将以下几行添加到已打开的文件中:
[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1
Step 4:
下载并安装 GPG 密钥
现在,你需要使用以下命令下载并安装 GPG 密钥:
following command:
wget http://www.webmin.com/jcameron-key.asc
sudo rpm --import jcameron-key.asc
第 5 步:更新
Repository
输入以下命令更新仓库:
sudo yum check-update
Step 6: Install
Webmin
现在,输入以下命令来安装 Webmin:
sudo yum install webmin -y
如果安装失败是因为依赖项还未就绪,只需
重新运行安装命令。
第 7 步:启动
Service
要启动服务并让它自动启动,使用此命令
command:
chkconfig webmin on
service webmin start
Step 8:
修改防火墙设置以允许 Webmin
如果你使用了防火墙,需要在防火墙中启用 Webmin
使用以下命令:
firewall-cmd --permanent --add-port=10000/tcp
firewall-cmd --reload
Step 9: Log in to
Webmin
现在,你可以登录 Webmin。在你的浏览器中打开以下网站
browser:
https://your-ip-addres:10000
Step 10: Enter
用户名和密码
然后,使用 HTTPS 协议输入你的用户名和密码。
默认用户名是 root,密码是 root 用户的密码
password.
步骤 11:配置你的
VPS
现在,请前往以下地址配置你的 VPS 和 Webmin
Webmin configuration.
第12步:更改
Standard Port
如果您的 Webmin VPS 有公网 IP,请前往 ports and
addresses 并启用标准端口
some.
搞定。现在你知道怎么在 VPS 上安装 Webmin 了。
如果你想修改 Webmin 的密码,可以在这里输入
command:
/usr/libexec/webmin/changepass.pl /etc/webmin root NEWPASSWORD
但是无法为 Webmin 的特定用户更改密码
recommended.
Webmin 虚拟主机
Webmin 的众多功能之一是 Webmin 虚拟主机。它可以
你在单台服务器上托管多个网站。安装后
在 VPS 上的 Webmin,您可以按照以下步骤创建虚拟主机
steps:
Step 1: Go to the control
panel.
Step 2: 更新你的 Webmin 以确保你使用其
latest version.
Step 3: 登录到 Webmin 并点击
Servers icon.
Step 4: Click on Apache
WebServer.
Step 5: Select any address in the
创建新虚拟服务器 part.
Step 6: In the port section, enter
80,然后选择最后一个单选按钮。
Step 7: In the document root
部分,填入你的虚拟主机将使用的 HTML 文件的名称。
Step 8: 在下方输入域名 server
name section.
现在,您已经创建了 Webmin 虚拟主机。
How
在 Ubuntu 服务器或基于 Debian 的系统上安装 Webmin
Server
在第一部分中,我们讨论了在基于 REHL 的系统上安装 Webmin
VPS。现在我们来演示如何在 Ubuntu 或 Webmin 上安装
基于 Debian 的服务器。
首先,你需要通过输入以下命令来安装依赖包
following command:
sudo apt install software-properties-common apt-transport-https -y
Add the Webmin repository and the GPG
key.
sudo 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 install webmin -y
如果你有防火墙,需要使用以下方式将其放行
command:
sudo ufw allow 10000/tcp
完成!你已成功在服务器上安装了 Webmin。
default username is root,密码是你的
当前 root 密码
现在,打开网络浏览器并访问以下地址
address:
有时 Debian 或 Ubuntu 发行版不允许用户登录
by the root 用户及其密码。在这种情况下,你必须
enter sudo 作为用户名
登录后,你可以根据自己的需求和目标配置网络服务器
需求和目标
很好!你现在知道如何在 Linux VPS 上安装 Webmin。如果你有任何问题,
可以随时通过以下方式联系我们 submitting a
ticket.