CC00029.LinuxBasic——|Linux&软件包安装.V08|

一、脚本安装程序
### --- 脚本程序简介

~~~     脚本程序包并不多见,所以在软件包分类中并没有把它列为一类。
~~~     它更加类似于 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/
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

yanqi_vip

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值