2023年3月7日 星期二

[研究]Webmin 2.013 on Rocky Linux 9.1安裝

[研究]Webmin 2.013 on Rocky Linux 9.1安裝

2023-03-06

********************************************************************************

Webmin 介面安裝,參考

https://webmin.com/download/

curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh

sudo sh setup-repos.sh

sudo dnf -y install webmin

實際狀況

[user1@localhost ~]$ curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4771  100  4771    0     0   8580      0 --:--:-- --:--:-- --:--:--  8565

[user1@localhost ~]$ sh setup-repos.sh
Error: `setup-repos.sh` script must be run as root!

[user1@localhost ~]$ sudo sh setup-repos.sh
Setup Webmin official repository? (y/N) y
  Downloading Webmin key ..
  .. done
  Installing Webmin key ..
  .. done
  Setting up Webmin repository ..
  .. done
  Cleaning repository metadata ..
  .. done
Webmin package can now be installed using dnf install webmin command.
[user1@localhost ~]$ 

[user1@localhost ~]$ dnf -y install webmin
Error: This command has to be run with superuser privileges (under the root user on most systems).

[user1@localhost ~]$ sudo dnf -y install webmin
Extra Packages for Enterprise Linux 9 - x86_64         471 kB/s |  14 MB     00:31    
Rocky Linux 9 - BaseOS                                 974 kB/s | 1.8 MB     00:01    
Rocky Linux 9 - AppStream                              3.2 MB/s | 6.6 MB     00:02    
Rocky Linux 9 - Extras                                 9.3 kB/s | 8.5 kB     00:00    
Webmin - noarch                                        427 kB/s |  22 MB     00:53    
Dependencies resolved.
=======================================================================================
 Package                  Architecture Version               Repository           Size
=======================================================================================
Installing:
 webmin                   noarch       2.013-1               webmin-noarch        40 M
Installing dependencies:
 perl-Digest-SHA          x86_64       1:6.02-461.el9        appstream            61 k
 perl-Encode-Detect       x86_64       1.01-37.el9           appstream            89 k
 perl-Filter              x86_64       2:1.60-4.el9          appstream            81 k
 perl-encoding            x86_64       4:3.00-462.el9        appstream            62 k
 perl-lib                 x86_64       0.65-479.el9          appstream            23 k
 perl-open                noarch       1.12-479.el9          appstream            25 k

Transaction Summary
=======================================================================================
Install  7 Packages

Total download size: 40 M
Installed size: 117 M
Downloading Packages:
(1/7): perl-encoding-3.00-462.el9.x86_64.rpm            31 kB/s |  62 kB     00:02    
(2/7): perl-Digest-SHA-6.02-461.el9.x86_64.rpm          31 kB/s |  61 kB     00:02    
(3/7): perl-Filter-1.60-4.el9.x86_64.rpm                40 kB/s |  81 kB     00:02    
(4/7): perl-lib-0.65-479.el9.x86_64.rpm                884 kB/s |  23 kB     00:00    
(5/7): perl-open-1.12-479.el9.noarch.rpm               512 kB/s |  25 kB     00:00    
(6/7): perl-Encode-Detect-1.01-37.el9.x86_64.rpm       1.1 MB/s |  89 kB     00:00    
(7/7): webmin-2.013-1.noarch.rpm                       2.3 MB/s |  40 MB     00:17    
---------------------------------------------------------------------------------------
Total                                                  2.0 MB/s |  40 MB     00:20     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                               1/1 
  Installing       : perl-Encode-Detect-1.01-37.el9.x86_64                         1/7 
  Installing       : perl-lib-0.65-479.el9.x86_64                                  2/7 
  Installing       : perl-Filter-2:1.60-4.el9.x86_64                               3/7 
  Installing       : perl-encoding-4:3.00-462.el9.x86_64                           4/7 
  Installing       : perl-open-1.12-479.el9.noarch                                 5/7 
  Installing       : perl-Digest-SHA-1:6.02-461.el9.x86_64                         6/7 
  Running scriptlet: webmin-2.013-1.noarch                                         7/7 
  Installing       : webmin-2.013-1.noarch                                         7/7 
  Running scriptlet: webmin-2.013-1.noarch                                         7/7 
  Verifying        : perl-encoding-4:3.00-462.el9.x86_64                           1/7 
  Verifying        : perl-Digest-SHA-1:6.02-461.el9.x86_64                         2/7 
  Verifying        : perl-Filter-2:1.60-4.el9.x86_64                               3/7 
  Verifying        : perl-lib-0.65-479.el9.x86_64                                  4/7 
  Verifying        : perl-open-1.12-479.el9.noarch                                 5/7 
  Verifying        : perl-Encode-Detect-1.01-37.el9.x86_64                         6/7 
  Verifying        : webmin-2.013-1.noarch                                         7/7 

Installed:
  perl-Digest-SHA-1:6.02-461.el9.x86_64      perl-Encode-Detect-1.01-37.el9.x86_64     
  perl-Filter-2:1.60-4.el9.x86_64            perl-encoding-4:3.00-462.el9.x86_64       
  perl-lib-0.65-479.el9.x86_64               perl-open-1.12-479.el9.noarch             
  webmin-2.013-1.noarch                     

Complete!
[user1@localhost ~]$ 


目前啟動狀態

user1@localhost ~]$ sudo systemctl status webmin
[sudo] password for user1: 
● webmin.service - Webmin server daemon
     Loaded: loaded (/usr/lib/systemd/system/webmin.service; enabled; vendor pr>
     Active: active (running) since Tue 2023-03-07 09:10:50 CST; 3h 53min ago
    Process: 33954 ExecStart=/usr/libexec/webmin/miniserv.pl /etc/webmin/minise>
   Main PID: 33955 (miniserv.pl)
      Tasks: 1 (limit: 22814)
     Memory: 28.7M
        CPU: 1min 44.744s
     CGroup: /system.slice/webmin.service
             └─33955 /usr/bin/perl /usr/libexec/webmin/miniserv.pl /etc/webmin/>

Mar 07 09:10:49 localhost.localdomain systemd[1]: Starting Webmin server daemon>
Mar 07 09:10:50 localhost.localdomain systemd[1]: Started Webmin server daemon.
[user1@localhost ~]$ 

文件

http://doxfer.webmin.com/Webmin/Main_Page







雖然Webmin可以做很多管理工作,但畢竟不是直接包在 Rocky Linux DVD中,和各套件 Apache, MySQL Server, Mariadb Database Server, sendmail, PostgreSQL, Postfix , ... 等,未必100%完美整合,可能還需要自行修改設定或目錄。

(完)

沒有留言:

張貼留言