Linux系统的web管理工具——webmin搭建

简介: Linux系统的web管理工具——webmin搭建

一、webmin介绍

Webmin是目前功能最强大的基于Web的Unix系统管理工具。管理员通过浏览器访问Webmin的各种管理功能并完成相应的管理动作。目前Webmin支持绝大多数的Unix系统,这些系统除了各种版本的linux以外还包括:AIX、HPUX、Solaris、Unixware、Irix和FreeBSD等。

二、添加webmin的yum仓库

[root@192 ~]# vim /etc/yum.repos.d/webmin.repo
[root@192 ~]# cat /etc/yum.repos.d/webmin.repo 
[Webmin]
name=Webmin Distribution Neutral
baseurl=http://download.webmin.com/download/yum
enabled=1

三、检查yum仓库状态

[root@192 ~]# yum repolist all
Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Webmin                                                                                                                                                             | 2.9 kB  00:00:00     
base                                                                                                                                                               | 3.6 kB  00:00:00     
epel                                                                                                                                                               | 4.7 kB  00:00:00     
extras                                                                                                                                                             | 2.9 kB  00:00:00     
updates                                                                                                                                                            | 2.9 kB  00:00:00     
(1/3): epel/x86_64/updateinfo                                                                                                                                      | 1.0 MB  00:00:01     
(2/3): Webmin/primary_db                                                                                                                                           | 179 kB  00:00:04     
(3/3): epel/x86_64/primary_db                                                                                                                                      | 7.0 MB  00:00:11     
repo id                                                             repo name                                                                                              status
Webmin                                                              Webmin Distribution Neutral                                                                            enabled:    212
base/7/x86_64                                                       CentOS-7 - Base - mirrors.aliyun.com                                                                   enabled: 10,072
centosplus/7/x86_64                                                 CentOS-7 - Plus - mirrors.aliyun.com                                                                   disabled
contrib/7/x86_64                                                    CentOS-7 - Contrib - mirrors.aliyun.com                                                                disabled
epel/x86_64                                                         Extra Packages for Enterprise Linux 7 - x86_64                                                         enabled: 13,753
epel-debuginfo/x86_64                                               Extra Packages for Enterprise Linux 7 - x86_64 - Debug                                                 disabled
epel-source                                                         Extra Packages for Enterprise Linux 7 - x86_64 - Source                                                disabled
extras/7/x86_64                                                     CentOS-7 - Extras - mirrors.aliyun.com                                                                 enabled:    512
updates/7/x86_64                                                    CentOS-7 - Updates - mirrors.aliyun.com                                                                enabled:  3,842
repolist: 28,391

三、安装webmin

1.添加GPG密钥

 wget http://www.webmin.com/jcameron-key.asc --no-check-certificate
 rpm --import jcameron-key.asc

2.安装webmin

rpm --import jcameron-key.asc

3.检查webmin状态

root@192 yum.repos.d]# systemctl status webmin
● webmin.service - Webmin server daemon
   Loaded: loaded (/usr/lib/systemd/system/webmin.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2022-06-03 19:40:23 CST; 45s ago
  Process: 41185 ExecStart=/etc/webmin/.start-init (code=exited, status=0/SUCCESS)
 Main PID: 41186 (miniserv.pl)
    Tasks: 1
   Memory: 44.7M
   CGroup: /system.slice/webmin.service
           └─41186 /usr/bin/perl /usr/libexec/webmin/miniserv.pl /etc/webmin/miniserv.conf

Jun 03 19:40:23 192.168.3.146 systemd[1]: Starting Webmin server daemon...
Jun 03 19:40:23 192.168.3.146 .start-init[41185]: Starting Webmin server in /usr/libexec/webmin
Jun 03 19:40:23 192.168.3.146 systemd[1]: Started Webmin server daemon.

4.放行firewalld及关闭selinux

①关闭selinux

sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
setenforce 0
getenforce

②放行firewalld

[root@192 yum.repos.d]# firewall-cmd --permanent --add-port=10000/tcp
success
[root@192 yum.repos.d]# firewall-cmd --reload 
success
[root@192 yum.repos.d]# firewall-cmd --list-ports 
80/tcp 10000/tcp
[root@192 yum.repos.d]#

四、web界面访问

1.登录web

https://192.168.3.146:10000/

在这里插入图片描述

2.查看webmin的首页

在这里插入图片描述

五、webmin的汉化

webmin–改变语言和主题–中文字体

在这里插入图片描述
在这里插入图片描述

相关实践学习
CentOS 8迁移Anolis OS 8
Anolis OS 8在做出差异性开发同时,在生态上和依赖管理上保持跟CentOS 8.x兼容,本文为您介绍如何通过AOMS迁移工具实现CentOS 8.x到Anolis OS 8的迁移。
相关文章
|
2月前
|
存储 缓存 监控
Linux缓存管理:如何安全地清理系统缓存
在Linux系统中,内存管理至关重要。本文详细介绍了如何安全地清理系统缓存,特别是通过使用`/proc/sys/vm/drop_caches`接口。内容包括清理缓存的原因、步骤、注意事项和最佳实践,帮助你在必要时优化系统性能。
215 78
|
24天前
|
缓存 安全 Linux
Linux系统查看操作系统版本信息、CPU信息、模块信息
在Linux系统中,常用命令可帮助用户查看操作系统版本、CPU信息和模块信息
87 23
|
2月前
|
Linux Shell 网络安全
Kali Linux系统Metasploit框架利用 HTA 文件进行渗透测试实验
本指南介绍如何利用 HTA 文件和 Metasploit 框架进行渗透测试。通过创建反向 shell、生成 HTA 文件、设置 HTTP 服务器和发送文件,最终实现对目标系统的控制。适用于教育目的,需合法授权。
82 9
Kali Linux系统Metasploit框架利用 HTA 文件进行渗透测试实验
|
2月前
|
存储 监控 Linux
嵌入式Linux系统编程 — 5.3 times、clock函数获取进程时间
在嵌入式Linux系统编程中,`times`和 `clock`函数是获取进程时间的两个重要工具。`times`函数提供了更详细的进程和子进程时间信息,而 `clock`函数则提供了更简单的处理器时间获取方法。根据具体需求选择合适的函数,可以更有效地进行性能分析和资源管理。通过本文的介绍,希望能帮助您更好地理解和使用这两个函数,提高嵌入式系统编程的效率和效果。
117 13
|
2月前
|
Ubuntu Linux C++
Win10系统上直接使用linux子系统教程(仅需五步!超简单,快速上手)
本文介绍了如何在Windows 10上安装并使用Linux子系统。首先,通过应用商店安装Windows Terminal和Linux系统(如Ubuntu)。接着,在控制面板中启用“适用于Linux的Windows子系统”并重启电脑。最后,在Windows Terminal中选择安装的Linux系统即可开始使用。文中还提供了注意事项和进一步配置的链接。
52 0
|
9月前
|
监控 Linux
掌握Linux系统管理利器:深度解读Linux top命令
掌握Linux系统管理利器:深度解读Linux top命令
86 0
|
7月前
|
网络协议 Linux 网络安全
linux基本命令之系统管理命令
linux基本命令之系统管理命令
|
缓存 安全 Linux
一文掌握linux系统管理命令
一文掌握linux系统管理命令
282 0
|
Unix Linux
Linux系统-【系统管理】uname命令 – 显示系统内核信息
uname命令来自于英文词组”Unix name“的缩写,其功能是用于查看系统主机名、内核及硬件架构等信息。如果不加任何参数,默认仅显示系统内核名称,相当于-s参数。
100 1
|
Linux
Linux系统【系统管理】resize2fs命令 – 同步文件系统容量到内核
resize2fs命令来自于英文词组“resize to filesystem”的缩写,其功能是用于同步文件系统容量到内核。如对ext3、ext4、XFS等设备卷容量进行了调整,则需要使用resize2fs命令同步信息到系统内核。
426 0

热门文章

最新文章