本文我們介紹在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
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 如果出現證書無效警告,請單擊仍然繼續:
使用安裝期間指定的用戶名登錄及其密碼:
顯示的默認頁面是系統詳細信息摘要,如下圖所示:
|