百度360必应搜狗淘宝本站头条
当前位置:网站首页 > 技术资源 > 正文

管理Linux不想用命令行?可以试试Webmin!最新CentOS8上体验一下

moboyou 2025-03-18 22:04 5 浏览


请关注本头条号,每天坚持更新原创干货技术文章。

如需学习视频,请在微信搜索公众号“智传网优”直接开始自助视频学习

1. 前言

在本教程中,我们将介绍如何在CentOS8或者RHEL8上安装Webmin。Webmin是领先的基于web的开源Linux/Unix系统管理控制面板。

使用Webmin,您可以设置用户帐户,管理Apache web服务器,DNS服务器,samba和文件配置,电子邮件服务器,本地/远程文件系统,软件包管理,管理数据库服务器等。

如何在CentOS8或者RHEL8上安装Webmin


2. 在CentOS8或者RHEL8上安装Webmin

在本节中,我们将讨论在CentOS8或者RHEL8上安装Webmin的两种方法。

但首先,安装Perl和所需的依赖项。

sudo yum -y install @perl

2.1 在CentOS8或者RHEL8上从yum源仓库中安装Webmin

sudo tee /etc/yum.repos.d/webmin.repo<<EOF
[Webmin]
name=Webmin Distribution Neutral
baseurl=https://download.webmin.com/download/yum
enabled=1
EOF

导入软件仓库的GPG key:

sudo rpm --import http://www.webmin.com/jcameron-key.asc

然后使用yum包管理器安装webmin。

sudo dnf install webmin

按y接受安装

Webmin Distribution Neutral 2.9 MB/s | 11 MB 00:03 
Last metadata expiration check: 0:00:04 ago on Fri 04 Oct 2019 08:37:07 AM EAT.
Dependencies resolved.
===================================================================================================================================================
 Package Arch Version Repository Size
===================================================================================================================================================
Installing:
 webmin noarch 1.930-1 Webmin 22 M
Installing dependencies:
 perl-Encode-Detect x86_64 1.01-28.el8 AppStream 90 k

Transaction Summary
===================================================================================================================================================
Install 2 Packages

Total download size: 22 M
Installed size: 79 M
Is this ok [y/N]: y

要获取包版本和其他详细信息,请使用:

rpm -qi webmin 
 Name : webmin
 Version : 1.930
 Release : 1
 Architecture: noarch
 Install Date: Fri 04 Oct 2019 08:37:46 AM EAT
 Group : System/Tools
 Size : 82197335
 License : Freeware
 Signature : DSA/SHA1, Sun 18 Aug 2019 05:33:13 AM EAT, Key ID d97a3ae911f63c51
 Source RPM : webmin-1.930-1.src.rpm
 Build Date : Sun 18 Aug 2019 05:33:00 AM EAT
 Build Host : fudu2
 Relocations : (not relocatable)
 Vendor : Jamie Cameron
 Summary : A web-based administration interface for Unix systems.

2.2 方法2:手动在RHEL8或者CentOS 8上安装Webmin

我建议你用这个方法在CentOS8或者RHEL8上安装Webmin,以获得最新的Webmin安装。

访问Webmin发布页面,查看最新发布的Webmin并下载。

sudo yum -y install wget
wget http://www.webmin.com/download/webmin-current.tar.gz

解压刚刚下载的文件:

tar xvf webmin-current.tar.gz
rm -f webmin-current.tar.gz

移动到相应的目录:

sudo mv webmin* /usr/local/webmin

将工作目录更改为/usr/local/webmin/并运行Webmin安装程序脚本。

cd /usr/local/webmin/
sudo ./setup.sh

设置

  • 配置文件目录
  • 日志文件目录
  • 完整的Perl路径
  • 操作系统-类型和版本
  • Web服务器端口(默认10000)
  • 登录名(默认管理员)
  • 登录密码
  • SSL

输出类似于以下的内容:

sudo ./setup.sh

Welcome to the Webmin setup script, version 1.900 *

Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.
Installing Webmin in /usr/local/webmin …

Webmin uses separate directories for configuration files and log files.
Unless you want to run multiple versions of Webmin at the same time
you can just accept the defaults.
Config file directory [/etc/webmin]:
Log file directory [/var/webmin]:

Webmin is written entirely in Perl. Please enter the full path to the
Perl 5 interpreter on your system.
Full path to perl (default /usr/bin/perl):
Testing Perl …
Perl seems to be installed ok

For Webmin to work properly, it needs to know which operating system
type and version you are running. Please select your system type by
entering the number next to it from the list below
1) Pardus Linux 2) SmartOS 3) Sun Solaris
4) Lycoris Desktop/LX 5) Caldera OpenLinux eS 6) Caldera OpenLinux
7) Asianux Server 8) Asianux 9) Whitebox Linux
10) Tao Linux 11) CentOS Linux 12) Springdale Linux
13) Virtuozzo Linux 14) Scientific Linux 15) Gralinux
16) NeoShine Linux 17) Endian Firewall Linu 18) Oracle Enterprise Li
19) Oracle VM 20) XenServer Linux 21) CloudLinux
22) MostlyLinux 23) Cloudrouter Linux 24) Sangoma Linux
25) Redhat Enterprise Li 26) Redhat Linux Desktop 27) AlphaCore Linux
28) X/OS Linux 29) Haansoft Linux 30) cAos Linux
31) Wind River Linux 32) Amazon Linux 33) Redhat Linux
34) Fedora Linux 35) White Dwarf Linux 36) Slamd64 Linux
37) Slackware Linux 38) Xandros Linux 39) APLINUX
40) BigBlock 41) Ubuntu Linux 42) Mepis Linux
43) Devuan Linux 44) Raspbian Linux 45) Linux Mint
46) Debian Linux 47) SuSE OpenExchange Li 48) SuSE SLES Linux
49) SuSE Linux 50) United Linux 51) Corel Linux
52) TurboLinux 53) Cobalt Linux 54) Mandrake Linux Corpo
55) pclinuxos Linux 56) Mageia Linux 57) Mandrake Linux
58) Mandriva Linux 59) Mandriva Linux Enter 60) Conectiva Linux
61) ThizLinux Desktop 62) ThizServer 63) MSC Linux
64) SCI Linux 65) LinuxPPC 66) Trustix SE
67) Trustix 68) Tawie Server Linux 69) TinySofa Linux
70) Cendio LBS Linux 71) Ute Linux 72) Lanthan Linux
73) Yellow Dog Linux 74) Corvus Latinux 75) Immunix Linux
76) Gentoo Linux 77) Secure Linux 78) OpenNA Linux
79) SoL Linux 80) Coherent Technology 81) Playstation Linux
82) StartCom Linux 83) Yoper Linux 84) Caixa Magica
85) openmamba Linux 86) FreeBSD 87) DragonFly BSD
88) OpenBSD 89) NetBSD 90) BSDI
91) HP/UX 92) SGI Irix 93) DEC/Compaq OSF/1
94) IBM AIX 95) SCO UnixWare 96) SCO OpenServer
97) Mac OS X 98) Darwin 99) OpenDarwin
100) Cygwin 101) Sun Java Desktop Sys 102) Synology DSM
103) Generic Linux 104) Windows
Operating system: 25
Please enter the version of Redhat Enterprise Linux you are running
Version: 8
Operating system name: Redhat Enterprise Linux
Operating system version: 8

Webmin uses its own password protected web server to provide access
to the administration programs. The setup script needs to know :
What port to run the web server on. There must not be another
web server already using this port.
The login name required to access the web server.
The password required to access the web server.
If the webserver should use SSL (if your system supports it).
Whether to start webmin at boot time.
Web server port (default 10000):
Login name (default admin):
Login password:
Password again:
Use SSL (y/n): y
Webmin does not support being started at boot time on your system.

Creating web server config files..
..done
Creating access control file..
..done
Inserting path to perl into scripts..
..done
Creating start and stop scripts..
..done
Copying config files..
..done
Creating uninstall script /etc/webmin/uninstall.sh ..
..done
Changing ownership and permissions ..
..done
Running postinstall scripts ..
..done
Enabling background status collection ..
..done
Attempting to start Webmin mini web server..
Starting Webmin server in /usr/local/webmin
Cron 15467891196435 missing any time spec
..done

Webmin has been installed and started successfully. Use your web
browser to go to
https://rhel8.local:10000/
and login with the name and password you entered previously.
Because Webmin uses SSL for encryption only, the certificate
it uses is not signed by one of the recognized CAs such as
Verisign. When you first connect to the Webmin server, your
browser will ask you if you want to accept the certificate
presented, as it does not recognize the CA. Say yes.

3. 在CentOS8或RHEL8上配置webmin

为了能够从网络访问Webmin Web界面,您需要允许防火墙中的TCP端口10000。

sudo firewall-cmd --add-port=10000/tcp --permanent
sudo firewall-cmd --reload

访问Webmin界面:

现在你已经在CentOS8或者RHEL8上安装了Webmin,打开你的服务器URL或者IP地址端口10000。比如
https://192.168.122.197:10000

如果提示“Invalid Certificate”,点击Continue Anyway

在CentOS8或RHEL8上配置webmin访问Webmin界面


使用安装过程中指定的用户名及其密码登录

使用安装过程中指定的用户名及其密码登录webmin


显示的默认页面是系统详细信息的摘要

显示webmin的默认页面是系统详细信息的摘要


4. 总结

通过本文,您应该可以了解到如何在RHEL8或者CentOS8系统上安装Webmin。通过Webmin 的web界面,您可以完成很多Linux管理工作。类似的工具是Cockpit,可以参考以下指南。

本文已同步至博客站,尊重原创,转载时请在正文中附带以下链接:

https://www.linuxrumen.com/rmxx/1555.html

点击了解更多,快速查看更多的技术文章列表。

相关推荐

电子EI会议!投稿进度查

今天为大家推荐一个高性价比的电子类EI会议——IEEE电子与通信工程国际会议(ICECE2024)会议号:IEEE#62199截稿时间:2024年3月25日召开时间与地点:2024年8月15...

最“稳重”的滤波算法-中位值滤波算法的思想原理及C代码实现

在信号处理和图像处理领域,滤波算法是一类用于去除噪声、平滑信号或提取特定特征的关键技术。中位值滤波算法是一种常用的非线性滤波方法,它通过取一组数据的中位值来有效减小噪声,保留信号的有用特征,所以是最稳...

实际工程项目中是怎么用卡尔曼滤波的?

就是直接使用呀!个人认为,卡尔曼滤波有三个个关键点,一个是测量,一个是预测,一个是加权测量:通过传感器,获取传感器数据即可!预测:基于模型来进行数据预测;那么问题来了,如何建模?有难有易。加权:主要就...

我拿导弹公式算桃花,结果把自己炸成了烟花

第一章:学术圈混成“顶流”,全靠学生们把我写成段子最近总有人问我:“老师,您研究导弹飞行轨迹二十年,咋还顺带研究起月老红绳的抛物线了?”我扶了扶眼镜,深沉答道:“同志,导弹和爱情的本质都是动力学问题—...

如何更好地理解神经网络的正向传播?我们需要从「矩阵乘法」入手

图:pixabay原文来源:medium作者:MattRoss「机器人圈」编译:嗯~阿童木呀、多啦A亮介绍我为什么要写这篇文章呢?主要是因为我在构建神经网络的过程中遇到了一个令人沮丧的bug,最终迫...

电力系统EI会议·权威期刊推荐!

高录用率EI会议推荐:ICPSG2025(会议号:CFP25J66-PWR)截稿时间:2025年3月15日召开时间与地点:2025年8月18-20日·新加坡论文集上线:会后3个月内提交至S...

EI论文写作全流程指南

推荐期刊《AppliedEnergy》是新能源领域权威EI/SCI双检索期刊,专注能源创新技术应用。刊号:ISSN0306-2619|CN11-2107/TK影响因子:11.2(最新数...

JMSE投稿遇坑 实验结果被推翻

期刊基础信息刊号:ISSN2077-1312全称:JournalofMarineScienceandEngineering影响因子:3.7(最新JCR数据)分区:中科院3区JCRQ2(...

斩获国际特等奖!兰理工数学建模团队为百年校庆献礼

近日,2019年美国大学生数学建模竞赛(MCM-ICM)成绩正式公布。兰州理工大学数学建模团队再创佳绩,分别获得国际特等奖(OutstandingWinner)1项、一等奖(Meritorious...

省气象台开展人员大培训岗位大练兵学习活动

5月9日,省气象台组织开展首次基于Matlab编程语言的数值模式解释应用培训,为促进研究性业务发展,积极开展“人员大培训、岗位大练兵”学习活动起到了积极作用。此次培训基于实际业务需求,着眼高原天气特色...

嵌入式软件培训

培训效果:通过系统性的培训学习,理论与实践相结合,可以胜任相关方向的开发工作。承诺:七大块专业培训,可以任意选择其中感兴趣的内容进行针对性地学习,每期培训2个月,当期没学会,可免费学习一期。本培训内容...

轧机支承辊用重载中低速圆柱滚子轴承滚子修形探讨

摘 要:探讨了轧机支承辊用重载中低速圆柱滚子轴承滚子修形的理论和方法,确定关键自变量。使用Romax软件在特定载荷工况条件下对轴承进行数值模拟分析,确定关键量的取值范围。关键词:轧机;圆柱滚子轴承;滚...

数学建模EI刊,如何避雷?

---权威EI会议推荐会议名称:国际应用数学与工程建模大会(ICAMEM)截稿时间:2025年4月20日召开时间/地点:2025年8月15日-17日·新加坡论文集上线:会后2个月内由Sp...

制造工艺误差,三维共轭齿面怎样影响,双圆弧驱动的性能?

文/扶苏秘史编辑/扶苏秘史在现代工程领域,高效、精确的传动系统对于机械装置的性能和可靠性至关重要,谐波传动作为一种创新的机械传动方式,以其独特的特性在精密机械领域引起了广泛关注。在谐波传动的进一步优化...

测绘EI会议——超详细解析

【推荐会议】会议名称:国际测绘与地理信息工程大会(ICGGE)会议编号:71035截稿时间:2025年3月20日召开时间/地点:2025年8月15-17日·德国慕尼黑论文集上线:会后2个...