Centos5 构建 webmin服务
Webmin是目前功能最强大的基于Web的Unix系统管理工具。管理员通过浏览器访问Webmin的各种管理功能并完成相应的管理动作。目前 Webmin支持绝大多数的Unix系统,这些系统除了各种版本的linux以外还包括:AIX、HPUX、Solaris、Unixware、Irix 和FreeBSD等。Webmin 让您能够在远程使用支持 HTTPS (SSL 上的 HTTP)协议的 Web 浏览器通过 Web 界面管理您的主机。这在保证了安全性的前提下提供了简单深入的远程管理。这使得 Webmin 对系统管理员非常理想,因为所有主流平台都有满足甚至超出上述需求的 Web 浏览器。而且,Webmin 有其自己的“Web 器”,因此不需要运行第三方软件(比如 Web器)。万事具备。Webmin 的模块化架构允许您在需要时编写您自己的配置模块。除了在此介绍的模块之外,Webmin 还包括许多模块。尽管目前我们将主要关注网络服务,但是您会看到,几乎您系统的每一部分都能够通过 Webmin 来配置和管理。(以上文字摘自百度百科——webmin)!
下面就来看看如何在centos5上搭建webmin服务吧!安装webmin时要求系统必须有Perl支持,如果启用ssl的话还须有openssl及 perl-net-ssleasy模块的支持!
[root@centos5 ~]# rpm -qa |grep perl
perl-5.8.8-10.el5_0.2
perl-PlRPC-0.2020-1.el5.rf
perl-String-CRC32-1.4-2.fc6
perl-DBD-MySQL-3.0007-2.el5
perl-Net-Daemon-0.43-1.el5.rf
perl-DBI-1.607-1.el5.rf
perl-rrdtool-1.2.30-1.el5.rf
[root@centos5 ~]# rpm -qa |grep openssl
openssl-0.9.8b-10.el5
[root@centos5 ~]# rpm -ivh perl-Net-SSLeay-1.32-1.el5.rf.i386.rpm
Preparing... ########################################### [100%]
1:perl-Net-SSLeay ########################################### [100%]
perl-net-ssleasy可以在这个网站下载到。
[root@centos5 ~]# tar zxvf webmin-1.470.tar.gz (下载webmin源码包,可以在webmin的官网下载到,地址是)
[root@centos5 ~]# ls
anaconda-ks.cfg cacti.tar.gz perl-Net-SSLeay-1.32-1.el5.rf.i386.rpm
bind-9.5.0a6 install.log webmin-1.470
bind-9.5.0a6.tar.gz install.log.syslog webmin-1.470.tar.gz
[root@centos5 ~]# cd webmin-1.470 (进入解压出来的目录)
[root@centos5 webmin-1.470]# ./setup.sh /usr/local/webmin (运行安装脚本setup.sh,并指定安装目录为/usr/local,在安装过程中系统将提示配置文件的选择位置,是否启用ssl,使用的端口,设置 用户名和密码等!)
[root@centos5 /]# ls /usr/local/ (安装完成后,查看/usr/local目录下出现了webmin目录)
bin etc games include lib libexec named sbin share src webmin
[root@centos5 /]# netstat -ntpl (安装完成后,系统自动启动了webmin服务,使用默认的端口10000)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2235/mysqld
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1823/portmap
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 2950/perl
tcp 0 0 0.0.0.0:758 0.0.0.0:* LISTEN 1848/rpc.statd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2140/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2278/sendmail: acce
tcp 0 0 :::80 :::* LISTEN 2318/httpd
tcp 0 0 :::22 :::* LISTEN 2103/sshd
[root@centos5 /]# /etc/webmin/stop (停止webmin服务)
Stopping Webmin server in /usr/local/webmin
[root@centos5 /]# netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2235/mysqld
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1823/portmap
tcp 0 0 0.0.0.0:758 0.0.0.0:* LISTEN 1848/rpc.statd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2140/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2278/sendmail: acce
tcp 0 0 :::80 :::* LISTEN 2318/httpd
tcp 0 0 :::22 :::* LISTEN 2103/sshd
[root@centos5 /]# /etc/webmin/start (启动webmin服务)
Starting Webmin server in /usr/local/webmin
Pre-loaded WebminCore
接下来及来看看webmin的登陆界面吧!(这里必须使用https方式访问!)
- 最新评论