Webmin 是一個網頁介面的 UNIX 管理工具, 可以進行管理系統帳號, 磁碟, 網路, 防火牆, 排程, Apache, DNS, 檔案分等等, 以下是 Debian 及 Ubuntu 安裝 Webmin 的方法:
首先加入 Webmin 官方 repository, 開啟檔案 /etc/apt/sources.list
# vi /etc/apt/sources.list
加入以下兩行:
1 2 |
deb http://download.webmin.com/download/repository sarge contrib deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib |
然後取得以上 repository 的 GPG key:
# cd /root
# wget http://www.webmin.com/jcameron-key.asc
# apt-key add jcameron-key.asc
# wget http://www.webmin.com/jcameron-key.asc
# apt-key add jcameron-key.asc
加入 Webmin 的 repository 後, 用安就很簡單了, 更新 apt-get 就可以開始安裝了:
# apt-get update
# apt-get install webmin
# apt-get install webmin
Webmin 預設使用 10000 埠號, 設定 firewall 開通 10000 埠號:
# ufw allow 10000
Webmin 預設使用的埠號是 10000, 可以這樣存取:
http://localhost:10000
或
https://localhost:10000
如果要更改 Webmin 的埠號, 可以用 root 登入 Webmin 後, 按 Webmin -> Webmin Configuration -> Ports and Addresses… 到那裡更改。
感謝您的教學,終於可以順利安裝webmin了!