centos5.4下Webmin管理系列(一):webmin的安装

本文涉及的产品
云解析 DNS,旗舰版 1个月
全局流量管理 GTM,标准版 1个月
公共DNS(含HTTPDNS解析),每月1000万次HTTP解析
简介: 一、确定CentOS已经安装,并且所需服务也已成功装好    我在192.168.1.250的一台服务器上安装了CentOS5.4版本,安装了Apache+MySQL+Samba+FTP+DNS+DHCP+SQUID等。
一、确定CentOS已经安装,并且所需服务也已成功装好
    我在192.168.1.250的一台服务器上安装了CentOS5.4版本,安装了Apache+MySQL+Samba+FTP+DNS+DHCP+SQUID等。从inittab中修改启动级别为3。重启后离开机房,使用办公室里192.168.1.188的电脑远程SSH到服务器。

二、下载WebMin的最新版本,并安装
    进入www.webmin.com,点击左侧download区域中的RPM,复制链接的下载地址,回到pietty终端中:

[lk@hd ~]$ --2010-08-24 15:30:03--  http://downloads.sourceforge.net/project/webadmin/webmin/1.510/webmin-1.510-1.noarch.rpm?r=http%3A%2F%2Fwww.webmin.com%2F
正在解析主机 downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 302 Found
位置:http://cdnetworks-kr-2.dl.sourceforge.net/project/webadmin/webmin/1.510/webmin-1.510-1.noarch.rpm [跟随至新的 URL]
--2010-08-24 15:30:05--  http://cdnetworks-kr-2.dl.sourceforge.net/project/webadmin/webmin/1.510/webmin-1.510-1.noarch.rpm
正在解析主机 cdnetworks-kr-2.dl.sourceforge.net... 211.39.135.163
Connecting to cdnetworks-kr-2.dl.sourceforge.net|211.39.135.163|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:15995394 (15M) [application/x-rpm]
Saving to: `webmin-1.510-1.noarch.rpm'

100%[======================================>] 15,995,394  58.6K/s   in 6m 29s

2010-08-24 15:36:37 (40.2 KB/s) - `webmin-1.510-1.noarch.rpm' saved [15995394/15995394]


[1]-  Done                    wget http://downloads.sourceforge.net/project/webadmin/webmin/1.510/webmin-1.510-1.noarch.rpm?r=http%3A%2F%2Fwww.webmin.com%2F
[2]+  Done                    ts=1282634860
[lk@hd ~]$ ls
webmin-1.510-1.noarch.rpm
[lk@hd ~]$ rpm -ivh webmin-1.510-1.noarch.rpm
warning: webmin-1.510-1.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 11f63c51
error: can't create transaction lock on /var/lib/rpm/__db.000

出现错误,换用tar.gz包,再做一次:

[lk@hd ~]$ wget http://downloads.sourceforge.net/project/webadmin/webmin/1.510/webmin-1.510.tar.gz?r=http%3A%2F%2Fwww.webmin.com%2F&ts=1282635512&mirror=cdnetworks-kr-1
[1] 18084
[2] 18085
[lk@hd ~]$ --2010-08-24 15:40:35--  http://downloads.sourceforge.net/project/webadmin/webmin/1.510/webmin-1.510.tar.gz?r=http%3A%2F%2Fwww.webmin.com%2F
正在解析主机 downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 302 Found
位置:http://cdnetworks-kr-2.dl.sourceforge.net/project/webadmin/webmin/1.510/webmin-1.510.tar.gz [跟随至新的 URL]
--2010-08-24 15:40:37--  http://cdnetworks-kr-2.dl.sourceforge.net/project/webadmin/webmin/1.510/webmin-1.510.tar.gz
正在解析主机 cdnetworks-kr-2.dl.sourceforge.net... 211.39.135.163
Connecting to cdnetworks-kr-2.dl.sourceforge.net|211.39.135.163|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:14841163 (14M) [application/x-gzip]
Saving to: `webmin-1.510.tar.gz'

100%[======================================>] 14,841,163  45.6K/s   in 6m 49s

2010-08-24 15:47:26 (35.4 KB/s) - `webmin-1.510.tar.gz' saved [14841163/14841163]


[1]-  Done                    wget http://downloads.sourceforge.net/project/webadmin/webmin/1.510/webmin-1.510.tar.gz?r=http%3A%2F%2Fwww.webmin.com%2F
[2]+  Done                    ts=1282635512

解压缩,并进入文件夹,开始安装:
[lk@hd ~]$ tar zxvf webmin-1.510.tar.gz
[lk@hd ~]$ ls
webmin-1.510  webmin-1.510-1.noarch.rpm  webmin-1.510.tar.gz
[lk@hd ~]$ cd webmin-1.510
[lk@hd webmin-1.510]$ ./setup.sh
***********************************************************************
*            Welcome to the Webmin setup script, version 1.510        *
***********************************************************************
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.

ERROR: The Webmin install script must be run as root

[lk@hd webmin-1.510]$
需要使用root身份。
[lk@hd webmin-1.510]$ su
口令:
[root@hd webmin-1.510]# ./setup.sh
***********************************************************************
*            Welcome to the Webmin setup script, version 1.510        *
***********************************************************************
Webmin is a web-based interface that allows Unix-like operating
systems and common Unix services to be easily administered.

Installing Webmin in /home/lk/webmin-1.510 ...

***********************************************************************
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):

Testing Perl ...
Perl seems to be installed ok

***********************************************************************
Operating system name:    CentOS Linux
Operating system version: 5.4

***********************************************************************
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):
Login name (default admin):
Login password:
Password again:
Use SSL (y/n): y
Start Webmin at boot time (y/n): y
***********************************************************************
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 /home/lk/webmin-1.510
Pre-loaded WebminCore
..done

***********************************************************************
Webmin has been installed and started successfully. Use your web
browser to go to

  https://hd:10000/

and login with the name and password you entered previously.

Because Webmin uses SSL for encryption only, the certificate
it uses is not signed by one of the recognized CAs such as
Verisign. When you first connect to the Webmin server, your
browser will ask you if you want to accept the certificate
presented, as it does not recognize the CA. Say yes.

[root@hd webmin-1.510]#

ok,安装成功。
现在再思考刚才RPM没能安装成功的原因,很可能是非root身份导致的。
今天重新安装系统,又重新试了一遍rpm包,安装成功,注意身份必须是root:
[root@lk lk]# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.510-1.noarch.rpm
--2010-08-27 09:37:56--  http://prdownloads.sourceforge.net/webadmin/webmin-1.510-1.noarch.rpm
正在解析主机 prdownloads.sourceforge.net... 216.34.181.59
Connecting to prdownloads.sourceforge.net|216.34.181.59|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 301 Moved Permanently
位置:http://downloads.sourceforge.net/project/webadmin/webmin/1.510/webmin-1.510-1.noarch.rpm [跟随至新的 URL]
--2010-08-27 09:37:57--  http://downloads.sourceforge.net/project/webadmin/webmin/1.510/webmin-1.510-1.noarch.rpm
正在解析主机 downloads.sourceforge.net... 216.34.181.59
Reusing existing connection to prdownloads.sourceforge.net:80.
已发出 HTTP 请求,正在等待回应... 302 Found
位置:http://cdnetworks-kr-2.dl.sourceforge.net/project/webadmin/webmin/1.510/webmin-1.510-1.noarch.rpm [跟随至新的 URL]
--2010-08-27 09:37:58--  http://cdnetworks-kr-2.dl.sourceforge.net/project/webadmin/webmin/1.510/webmin-1.510-1.noarch.rpm
正在解析主机 cdnetworks-kr-2.dl.sourceforge.net... 211.39.135.163
Connecting to cdnetworks-kr-2.dl.sourceforge.net|211.39.135.163|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:15995394 (15M) [application/x-rpm]
Saving to: `webmin-1.510-1.noarch.rpm'

100%[======================================>] 15,995,394   593K/s   in 44s

2010-08-27 09:38:42 (354 KB/s) - `webmin-1.510-1.noarch.rpm' saved [15995394/15995394]

[root@lk lk]# rpm -ivh webmin-1.510-1.noarch.rpm
warning: webmin-1.510-1.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 11f63c51
Preparing...                ########################################### [100%]
Operating system is CentOS Linux
   1:webmin                 ########################################### [100%]
^[[B
Webmin install complete. You can now login to https://lk:10000/
as root with your root password.

相关文章
|
5天前
|
缓存 Ubuntu Linux
Linux中yum、rpm、apt-get、wget的区别,yum、rpm、apt-get常用命令,CentOS、Ubuntu中安装wget
通过本文,我们详细了解了 `yum`、`rpm`、`apt-get`和 `wget`的区别、常用命令以及在CentOS和Ubuntu中安装 `wget`的方法。`yum`和 `apt-get`是高层次的包管理器,分别用于RPM系和Debian系发行版,能够自动解决依赖问题;而 `rpm`是低层次的包管理工具,适合处理单个包;`wget`则是一个功能强大的下载工具,适用于各种下载任务。在实际使用中,根据系统类型和任务需求选择合适的工具,可以大大提高工作效率和系统管理的便利性。
54 25
|
15天前
|
监控 Linux PHP
【02】客户端服务端C语言-go语言-web端PHP语言整合内容发布-优雅草网络设备监控系统-2月12日优雅草简化Centos stream8安装zabbix7教程-本搭建教程非docker搭建教程-优雅草solution
【02】客户端服务端C语言-go语言-web端PHP语言整合内容发布-优雅草网络设备监控系统-2月12日优雅草简化Centos stream8安装zabbix7教程-本搭建教程非docker搭建教程-优雅草solution
65 20
|
1月前
|
存储 分布式计算 Hadoop
Centos7.9安装kerberos
Centos7.9安装kerberos
86 25
|
1月前
|
存储 Shell 网络安全
Centos7.9安装openldap
Centos7.9安装openldap
58 16
|
1月前
|
数据可视化 Linux 应用服务中间件
Centos7.9安装phpldapadmin
Centos7.9安装phpldapadmin
62 15
|
1月前
|
网络协议 Java 应用服务中间件
centos7环境下tomcat8的安装与配置
本文介绍了在Linux环境下安装和配置Tomcat 8的详细步骤。首先,通过无网络条件下的文件交互软件(如Xftp 6或MobaXterm)下载并解压Tomcat安装包至指定路径,启动Tomcat服务并测试访问。接着,修改Tomcat端口号以避免冲突,并部署Java Web应用项目至Tomcat服务器。最后,调整Linux防火墙规则,确保外部可以正常访问部署的应用。关键步骤包括关闭或配置防火墙、添加必要的端口规则,确保Tomcat服务稳定运行。
|
3月前
|
SQL 存储 Linux
从配置源到数据库初始化一步步教你在CentOS 7.9上安装SQL Server 2019
【11月更文挑战第16天】本文介绍了在 CentOS 7.9 上安装 SQL Server 2019 的详细步骤,包括配置系统源、安装 SQL Server 2019 软件包以及数据库初始化,确保 SQL Server 正常运行。
168 4
|
4月前
|
Linux 网络安全 数据安全/隐私保护
Linux系统之Centos7安装cockpit图形管理界面
【10月更文挑战第12天】Linux系统之Centos7安装cockpit图形管理界面
187 1
Linux系统之Centos7安装cockpit图形管理界面
|
3月前
|
SQL 存储 Linux
从配置源到数据库初始化一步步教你在CentOS 7.9上安装SQL Server 2019
【11月更文挑战第8天】本文介绍了在 CentOS 7.9 上安装 SQL Server 2019 的详细步骤,包括系统准备、配置安装源、安装 SQL Server 软件包、运行安装程序、初始化数据库以及配置远程连接。通过这些步骤,您可以顺利地在 CentOS 系统上部署和使用 SQL Server 2019。
178 1
|
3月前
|
SQL 存储 Linux
从配置源到数据库初始化一步步教你在CentOS 7.9上安装SQL Server 2019
【11月更文挑战第7天】本文介绍了在 CentOS 7.9 上安装 SQL Server 2019 的详细步骤,包括系统要求检查与准备、配置安装源、安装 SQL Server 2019、配置 SQL Server 以及数据库初始化(可选)。通过这些步骤,你可以成功安装并初步配置 SQL Server 2019,进行简单的数据库操作。
108 1

热门文章

最新文章