|NO.Z.00029|——————————|^^部署^^|——|Linux&软件包安装.V08|——|脚本安装|webmin|web图形化|系统管理|

一年好景君须记,最是橙黄橘绿时。这篇文章主要讲述|NO.Z.00029|——————————|^^部署^^|——|Linux&软件包安装.V08|——|脚本安装|webmin|web图形化|系统管理|相关的知识,希望能为你提供帮助。
一、脚本安装程序

### --- 脚本程序简介~~~脚本程序包并不多见,所以在软件包分类中并没有把它列为一类。 ~~~它更加类似于 Windows 下的程序安装,有一个可执行的安装程序,只要运行安装程序, ~~~然后进行简单的功能定制选择(比如指定安装目录等),就可以安装成功, ~~~只不过是在字符界面下完成的。 ~~~目前常见的脚本程序以各类硬件的驱动居多,我们需要学习一下这类软件的安装方式, ~~~以备将来不时之需。

### ---Webmin 安装 ### ---简介~~~我们来看看脚本程序如何安装和使用。安装一个叫作 Webmin 的工具软件, ~~~Webmin 是一个基于Web 的系统管理界面。 ~~~借助任何支持表格和表单的浏览器(和 File Manager 模块所需要的 java), ~~~你就可以设置用户账号、apache、DNS、文件共享等。 ~~~Webmin 包括一个简单的 Web 服务器和许多 CGI程序, ~~~这些程序可以直接修改系统文件, ~~~比如/etc/inetd.conf 和 /etc/passwd。 ~~~Web 服务器和所有的 CGI程序都是用 Perl 5 编写的, ~~~没有使用任何非标准 Perl 模块。也就是说,Webmin 是一个用 Perl 语言写的、 ~~~可以通过浏览器管理 Linux 的软件。

二、Webmin 安装步骤:
### --- 首先下载 Webmin 软件, ### --- 地址为 http://sourceforge.net/projects/webadmin/files/webmin/, ### --- 这里下载的是 webmin-1.610.tar.gz。 ~~~接下来解压缩软件,命令如下: [root@localhost ~]# tar -zxvf webmin-1.610.tar.gz ~~~进入解压目录,命令如下: [root@localhost ~]# cd webmin-1.610

### --- 执行安装程序 setup.sh,并指定功能选项,命令如下:[root@localhost webmin-1.610]# ./setup.sh *********************************************************************** * Welcome to the Webmin setup script, version 1.610 * *********************************************************************** Webmin is a web-based interface that allows Unix-like operating systems and common Unix services to be easily administered. Installing Webmin in /root/webmin-1.610 ... *********************************************************************** 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]: ~~~选择安装位置,默认安装在/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 语言的安装位置,直接回车,选择默认位置,Perl 默认就安装在这里 Testing Perl ... Perl seems to be installed ok *********************************************************************** Operating system name: CentOS Linux Operating system version: 6.3 *********************************************************************** 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 监听的端口,直接回车,默认选定 10000 Login name (default admin):admin ~~~输入登录 Webmin 的用户名 Login password: Password again: ~~~输入登录密码 The Perl SSLeay library is not installed. SSL not available. ~~~apache 默认没有启动 SSL 功能,所以 SSL 没有被激活 Start Webmin at boot time (y/n):y ~~~是否在开机的同时启动 Webmin …安装过程省略… Webmin has been installed and started successfully. Use your web browser to go to http://localhost:10000/ and login with the name and password you entered previously. ### --- 安装完成

三、通过脚本构建webmin:实验专题
### --- 将webmin上传至服务器[root@server11 ~]# ls webmin-1.580.tar.gz [root@server11 ~]# tar zxvf webmin-1.580.tar.gz// tar可以省略选项减号 [root@server11 ~]# cd webmin-1.580/

### --- 安装webmin[root@server11 webmin-1.580]# ./setup.sh [root@server11 webmin-1.580]# ./setup.sh Config file directory [/etc/webmin]:// 程序安装在该位置;默认回车,需要修改添加修改的地址即可 Log file directory [/var/webmin]:// 日志安装位置 Full path to perl (default /usr/bin/perl):// perl安装位置 Web server port (default 10000):// 默认端口 Login name (default admin):// 默认管理员是admin Login password: 123456// 密码 Password again:123456 Start Webmin at boot time (y/n):y// 默认是否需要开机自启动 Webmin has been installed and started successfully. Use your web browser to go to http://server11:10000/ and login with the name and password you entered previously.

四、访问webmin:http://10.10.10.11:10000/
|NO.Z.00029|——————————|^^部署^^|——|Linux&软件包安装.V08|——|脚本安装|webmin|web图形化|系统管理|

文章图片
Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warmd both hands before the fire of life.It sinks, and I am ready to depart ——W.S.Landor 【|NO.Z.00029|——————————|^^部署^^|——|Linux&软件包安装.V08|——|脚本安装|webmin|web图形化|系统管理|】

    推荐阅读