CentOS 8系统上安装Webmin方法

Posted 骇客黑界

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS 8系统上安装Webmin方法相关的知识,希望对你有一定的参考价值。

本文我们介绍在CentOS 8系统上安装Webmin的两种方法,

不管使用哪种方法,都得要安装Perl和所需的依赖项,

在终端中运行sudo yum -y install @perl命令即可。

 

简介

Webmin是领先的基于Web的开源Linux/Unix系统管理控制面板,使用Webmin可以设置用户帐户,管理器Apache Web服务器,DNS服务器,samba和文件配置,电子邮件服务器,包管理,管理数据库服务器等。

 

CentOS 8上安装Webmin

1、我建议你使用此方法在RHEL 8/CentOS 8上安装Webmin以获取Webmin的最新版本。

      访问Webmin下载页面以检查Webmin的最新版本并下载它:

sudo yum -y install wget

wget https://www.webmin.com/download/webmin-current.tar.gz

 

2、压缩下载的文件:

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

 

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

3、下面是安装的输出信息:

$ 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

 

在RHEL 8/CentOS 8系统上安装Webmin的两种方法

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.

 

4、允许Webmin防火墙端口

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

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

sudo firewall-cmd --reload

 

5、访问Webmin界面

既然已在RHEL 8上安装了Webmin,请打开你的服务器URL/IP地址端口10000,例如https://192.168.122.197:10000

如果出现证书无效警告,请单击仍然继续:

 

 使用安装期间指定的用户名登录及其密码:

 

 显示的默认页面是系统详细信息摘要,如下图所示:

 

 

以上是关于CentOS 8系统上安装Webmin方法的主要内容,如果未能解决你的问题,请参考以下文章

安装Webmin1.860(RPM方式)

在CentOS 安装Webmin

CentOS 7 基础配置与安装Webmin

在ubuntu上安装Webmin

基于操作系统原理的Webmin管理工具的安装使用

webmin安装简介