1.新增YUM repository
/etc/yum.repos.d/webmin.repo
內容如下:
[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1
2.匯入GPG key
wget http://www.webmin.com/jcameron-key.asc
rpm --import jcameron-key.asc
執行結果:
[root@dns log]# vi /etc/yum.repos.d/webmin.repo
[root@dns log]# wget http://www.webmin.com/jcameron-key.asc
--2013-11-27 11:27:42-- http://www.webmin.com/jcameron-key.asc
正在查找主機 www.webmin.com... 216.34.181.97
正在連接 www.webmin.com|216.34.181.97|:80... 連上了。
已送出 HTTP 要求,正在等候回應... 200 OK
長度: 1320 (1.3K) [text/plain]
Saving to: `jcameron-key.asc'
100%[=============================================================================================================>] 1,320 --.-K/s in 0.001s
2013-11-27 11:27:43 (1.63 MB/s) - `jcameron-key.asc' saved [1320/1320]
[root@dns log]# rpm --import jcameron-key.asc
[root@dns log]#
3.透過yum 安裝webmin
[root@dns log]# yum install webmin
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* Webmin: download.webmin.com
* base: ftp.cs.pu.edu.tw
* elrepo: repos.lax-noc.com
* epel: mirrors.vinahost.vn
* extras: ftp.cs.pu.edu.tw
* rpmforge: mirror.oscc.org.my
* updates: ftp.cs.pu.edu.tw
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package webmin.noarch 0:1.660-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================================================================================
Package Arch Version Repository Size
=======================================================================================================================================================
Installing:
webmin noarch 1.660-1 Webmin 21 M
Transaction Summary
=======================================================================================================================================================
Install 1 Package(s)
Total size: 21 M
Installed size: 21 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : webmin-1.660-1.noarch 1/1
Operating system is CentOS Linux
Webmin install complete. You can now login to https://dns.idindon.idv.tw:10000/
as root with your root password.
Verifying : webmin-1.660-1.noarch 1/1
Installed:
webmin.noarch 0:1.660-1
Complete!
[root@dns log]#
4.執行https://localhost:10000 並使用管理者登入root登入
參考資料:
留言列表