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了!