Ubuntu下WebMIN的安装

本文介绍了Webmin这款强大的基于Web的Unix系统管理工具。它支持多种Unix系统,包括Linux的不同版本。文章详细讲解了如何下载及安装Webmin,并通过浏览器进行远程配置和管理。
现在在互联网上可以找到非常多的免费的 Linux管理工具,这的确大大方便了对系统的管理。对于一个有经验的系统管理员来说,如果能够方便地找到这些工 具,并正确自如地加以运用,管理一个 Linux系统将是一个非常容易的事情。而Webmin就是一个免费的基于web界面的系统管理工具,可以通过浏览器 对 Linux系统进行远程配置和管理。

    从Webmin的主页( http://www.webmin.com) 介绍,可以知道, Webmin内置一个web server,web server和所有的cgi程序都是用perl 5编写的。目前的Webmin版本支持多种UNIX和Linux版本,支持最好的是Solaris、Linux (尤其是Redhat)和FreeBSD。Webmin同时提供多种语言的界面支持,包括简体中文,不过,考虑到老外对中文的翻译水平,其翻译并不彻底, 一些配置说明仍然是英文的。

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 来配置和管理。
官方网站: www.webmin.com
中文网: http://www.webmin.cn/


一. Webmin下载
http://www.webmin.com 或者这里
代码:
wget -c http://prdownloads.sourceforge.net/webadmin/webmin-1.270.tar.gz


在webmin首页的右上角即可看到最新版本的下载信息,其下载包括两种包装,一种是tar压缩包,一种是rpm安装包。

1. Webmin安装

1). 压缩包安装

代码:
我把它拷贝到了/usr/loacl


代码:
# tar xvzf webmin-1.100.tar.gz
# cd webmin-1.100


在该目录下有个README文件,指出了运行setup.sh即可完成安装过程,但是在安装后,不能删除本目录,因为webmin将从该目录运行。

代码:
如果是一般用户切换到root


代码:
#sudo su
# ./setup.sh


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

* Welcome to the Webmin setup script, version 1.100 *

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

Webmin is a web-based interface that allows Unix-like operating

systems and common Unix services to be easily administered.

Installing Webmin in /usr/webmin-1.100 ...


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

Webmin uses separate directories for configuration files and log files.

Unless you want to run multiple versions of Webmin at the same time

you can just accept the defaults.

Config file directory [/etc/webmin]: 默认配置文件目录[可以修改,或者直接键入回车]

Log file directory [/var/webmin]: 默认日志文件目录[可以修改,或者直接键入回车]

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

Webmin is written entirely in Perl. Please enter the full path to the

Perl 5 interpreter on your system.

Full path to perl (default /usr/bin/perl): 检查Perl安装

Testing Perl ...

Perl seems to be installed ok

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

Operating system name: Redhat Linux

Operating system version: 8.0

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

Webmin uses its own password protected web server to provide access

to the administration programs. The setup script needs to know :

- What port to run the web server on. There must not be another

web server already using this port.

- The login name required to access the web server.

- The password required to access the web server.

- If the webserver should use SSL (if your system supports it).

- Whether to start webmin at boot time.

Web server port (default 10000): 默认webmin web server的端口

Login name (default admin): 通过浏览器登录webmin的用户名,默认为admin[建议修改为自己的一个登录帐号]

Login password: 输入用户登录密码

Password again: 再次输入用户登录密码

The Perl SSLeay library is not installed. SSL not available.

Start Webmin at boot time (y/n): y 是否在linux启动时运行webmin

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

Creating web server config files..

..done

Creating access control file..

..done

Inserting path to perl into scripts..

..done

Creating start and stop scripts..

..done

Copying config files..

..done

Configuring Webmin to start at boot time..

Created init script /etc/rc.d/init.d/webmin

..done

Creating uninstall script /etc/webmin/uninstall.sh ..

..done

Changing ownership and permissions ..

..done

Running postinstall scripts ..

..done

Attempting to start Webmin mini web server..

Starting Webmin server in /usr/webmin-1.100

..done

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

Webmin has been installed and started successfully. Use your web browser to go to
http://hostname:10000/
and login with the name and password you entered previously.

安装结束。
如果没有让webmin开机启动可以用下面的方法启动

代码:
# /etc/webmin/stop
//停止服務

# /etc/webmin/start
//启动服務


现在您可以在浏览器里输入http://localhost:10000
或者 http://127.0.0.1:1000 来使用webmin管理你安装的php+apache2+mysql 正常登录
你可以修改语言为中文选中webmin的Change Language and Theme
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值