linux下webserver_linux下启动redis

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


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

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

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

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

sudo tee /etc/yum.repos.d/webmin.repo<

导入软件仓库的GPG key:

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

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

sudo dnf install webmin

按y接受安装

Webmin Distribution Neutral  MB/s |  MB : 
Last metadata expiration check: 0:: ago on Fri  Oct :: AM EAT.
Dependencies resolved.
===================================================================================================================================================
 Package Arch Version Repository Size
===================================================================================================================================================
Installing:
 webmin noarch  Webmin  M
Installing dependencies:
 perl-Encode-Detect x86_64 .el8 AppStream  k

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

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

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

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

方法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服务器端口(默认)
  • 登录名(默认管理员)
  • 登录密码
  • SSL

输出类似于以下的内容:

sudo ./setup.sh

Welcome to the Webmin setup script, version *

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
) Tao Linux ) CentOS Linux ) Springdale Linux
) Virtuozzo Linux ) Scientific Linux ) Gralinux
) NeoShine Linux ) Endian Firewall Linu ) Oracle Enterprise Li
) Oracle VM ) XenServer Linux ) CloudLinux
) MostlyLinux ) Cloudrouter Linux ) Sangoma Linux
) Redhat Enterprise Li ) Redhat Linux Desktop ) AlphaCore Linux
) X/OS Linux ) Haansoft Linux ) cAos Linux
) Wind River Linux ) Amazon Linux ) Redhat Linux
) Fedora Linux ) White Dwarf Linux ) Slamd64 Linux
) Slackware Linux ) Xandros Linux ) APLINUX
) BigBlock ) Ubuntu Linux ) Mepis Linux
) Devuan Linux ) Raspbian Linux ) Linux Mint
) Debian Linux ) SuSE OpenExchange Li ) SuSE SLES Linux
) SuSE Linux ) United Linux ) Corel Linux
) TurboLinux ) Cobalt Linux ) Mandrake Linux Corpo
) pclinuxos Linux ) Mageia Linux ) Mandrake Linux
) Mandriva Linux ) Mandriva Linux Enter ) Conectiva Linux
) ThizLinux Desktop ) ThizServer ) MSC Linux
) SCI Linux ) LinuxPPC ) Trustix SE
) Trustix ) Tawie Server Linux ) TinySofa Linux
) Cendio LBS Linux ) Ute Linux ) Lanthan Linux
) Yellow Dog Linux ) Corvus Latinux ) Immunix Linux
) Gentoo Linux ) Secure Linux ) OpenNA Linux
) SoL Linux ) Coherent Technology ) Playstation Linux
) StartCom Linux ) Yoper Linux ) Caixa Magica
) openmamba Linux ) FreeBSD ) DragonFly BSD
) OpenBSD ) NetBSD ) BSDI
) HP/UX ) SGI Irix ) DEC/Compaq OSF/1
) IBM AIX ) SCO UnixWare ) SCO OpenServer
) Mac OS X ) Darwin ) OpenDarwin
) Cygwin ) Sun Java Desktop Sys ) Synology DSM
) Generic Linux ) Windows
Operating system:
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 ):
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 missing any time spec
..done

Webmin has been installed and started successfully. Use your web
browser to go to
https://rhel8.local:/
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端口。

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

访问Webmin界面:

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

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


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


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


4. 总结

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

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

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

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

原文链接:,转发请注明来源!