管理Linux不想用命令行?可以试试Webmin!最新CentOS8上体验一下
nanshan 2025-08-05 20:08 10 浏览 0 评论
请关注本头条号,每天坚持更新原创干货技术文章。
如需学习视频,请在微信搜索公众号“智传网优”直接开始自助视频学习
1. 前言
在本教程中,我们将介绍如何在CentOS8或者RHEL8上安装Webmin。Webmin是领先的基于web的开源Linux/Unix系统管理控制面板。
使用Webmin,您可以设置用户帐户,管理Apache web服务器,DNS服务器,samba和文件配置,电子邮件服务器,本地/远程文件系统,软件包管理,管理数据库服务器等。
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
使用安装过程中指定的用户名及其密码登录
显示的默认页面是系统详细信息的摘要
4. 总结
通过本文,您应该可以了解到如何在RHEL8或者CentOS8系统上安装Webmin。通过Webmin 的web界面,您可以完成很多Linux管理工作。类似的工具是Cockpit,可以参考以下指南。
本文已同步至博客站,尊重原创,转载时请在正文中附带以下链接:
https://www.linuxrumen.com/rmxx/1555.html
点击了解更多,快速查看更多的技术文章列表。
相关推荐
- 0722-6.2.0-如何在RedHat7.2使用rpm安装CDH(无CM)
-
文档编写目的在前面的文档中,介绍了在有CM和无CM两种情况下使用rpm方式安装CDH5.10.0,本文档将介绍如何在无CM的情况下使用rpm方式安装CDH6.2.0,与之前安装C5进行对比。环境介绍:...
- ARM64 平台基于 openEuler + iSula 环境部署 Kubernetes
-
为什么要在arm64平台上部署Kubernetes,而且还是鲲鹏920的架构。说来话长。。。此处省略5000字。介绍下系统信息;o架构:鲲鹏920(Kunpeng920)oOS:ope...
- 生产环境starrocks 3.1存算一体集群部署
-
集群规划FE:节点主要负责元数据管理、客户端连接管理、查询计划和查询调度。>3节点。BE:节点负责数据存储和SQL执行。>3节点。CN:无存储功能能的BE。环境准备CPU检查JDK...
- 在CentOS上添加swap虚拟内存并设置优先级
-
现如今很多云服务器都会自己配置好虚拟内存,当然也有很多没有配置虚拟内存的,虚拟内存可以让我们的低配服务器使用更多的内存,可以减少很多硬件成本,比如我们运行很多服务的时候,内存常常会满,当配置了虚拟内存...
- 国产深度(deepin)操作系统优化指南
-
1.升级内核随着deepin版本的更新,会自动升级系统内核,但是我们依旧可以通过命令行手动升级内核,以获取更好的性能和更多的硬件支持。具体操作:-添加PPAs使用以下命令添加PPAs:```...
- postgresql-15.4 多节点主从(读写分离)
-
1、下载软件[root@TX-CN-PostgreSQL01-252software]#wgethttps://ftp.postgresql.org/pub/source/v15.4/postg...
- Docker 容器 Java 服务内存与 GC 优化实施方案
-
一、设置Docker容器内存限制(生产环境建议)1.查看宿主机可用内存bashfree-h#示例输出(假设宿主机剩余16GB可用内存)#Mem:64G...
- 虚拟内存设置、解决linux内存不够问题
-
虚拟内存设置(解决linux内存不够情况)背景介绍 Memory指机器物理内存,读写速度低于CPU一个量级,但是高于磁盘不止一个量级。所以,程序和数据如果在内存的话,会有非常快的读写速度。但是,内存...
- Elasticsearch性能调优(5):服务器配置选择
-
在选择elasticsearch服务器时,要尽可能地选择与当前业务量相匹配的服务器。如果服务器配置太低,则意味着需要更多的节点来满足需求,一个集群的节点太多时会增加集群管理的成本。如果服务器配置太高,...
- Es如何落地
-
一、配置准备节点类型CPU内存硬盘网络机器数操作系统data节点16C64G2000G本地SSD所有es同一可用区3(ecs)Centos7master节点2C8G200G云SSD所有es同一可用区...
- 针对Linux内存管理知识学习总结
-
现在的服务器大部分都是运行在Linux上面的,所以,作为一个程序员有必要简单地了解一下系统是如何运行的。对于内存部分需要知道:地址映射内存管理的方式缺页异常先来看一些基本的知识,在进程看来,内存分为内...
- MySQL进阶之性能优化
-
概述MySQL的性能优化,包括了服务器硬件优化、操作系统的优化、MySQL数据库配置优化、数据库表设计的优化、SQL语句优化等5个方面的优化。在进行优化之前,需要先掌握性能分析的思路和方法,找出问题,...
- Linux Cgroups(Control Groups)原理
-
LinuxCgroups(ControlGroups)是内核提供的资源分配、限制和监控机制,通过层级化进程分组实现资源的精细化控制。以下从核心原理、操作示例和版本演进三方面详细分析:一、核心原理与...
- linux 常用性能优化参数及理解
-
1.优化内核相关参数配置文件/etc/sysctl.conf配置方法直接将参数添加进文件每条一行.sysctl-a可以查看默认配置sysctl-p执行并检测是否有错误例如设置错了参数:[roo...
- 如何在 Linux 中使用 Sysctl 命令?
-
sysctl是一个用于配置和查询Linux内核参数的命令行工具。它通过与/proc/sys虚拟文件系统交互,允许用户在运行时动态修改内核参数。这些参数控制着系统的各种行为,包括网络设置、文件...
你 发表评论:
欢迎- 一周热门
-
-
UOS服务器操作系统防火墙设置(uos20关闭防火墙)
-
极空间如何无损移机,新Z4 Pro又有哪些升级?极空间Z4 Pro深度体验
-
手机如何设置与显示准确时间的详细指南
-
NAS:DS video/DS file/DS photo等群晖移动端APP远程访问的教程
-
如何在安装前及安装后修改黑群晖的Mac地址和Sn系列号
-
如何修复用户配置文件服务在 WINDOWS 上登录失败的问题
-
一加手机与电脑互传文件的便捷方法FileDash
-
日本海上自卫队的军衔制度(日本海上自卫队的军衔制度是什么)
-
10个免费文件中转服务站,分享文件简单方便,你知道几个?
-
爱折腾的特斯拉车主必看!手把手教你TESLAMATE的备份和恢复
-
- 最近发表
- 标签列表
-
- linux 查询端口号 (58)
- docker映射容器目录到宿主机 (66)
- 杀端口 (60)
- yum更换阿里源 (62)
- internet explorer 增强的安全配置已启用 (65)
- linux自动挂载 (56)
- 禁用selinux (55)
- sysv-rc-conf (69)
- ubuntu防火墙状态查看 (64)
- windows server 2022激活密钥 (56)
- 无法与服务器建立安全连接是什么意思 (74)
- 443/80端口被占用怎么解决 (56)
- ping无法访问目标主机怎么解决 (58)
- fdatasync (59)
- 405 not allowed (56)
- 免备案虚拟主机zxhost (55)
- linux根据pid查看进程 (60)
- dhcp工具 (62)
- mysql 1045 (57)
- 宝塔远程工具 (56)
- ssh服务器拒绝了密码 请再试一次 (56)
- ubuntu卸载docker (56)
- linux查看nginx状态 (63)
- tomcat 乱码 (76)
- 2008r2激活序列号 (65)