一、网络服务器:
1.服务器端:
2.客户机端:
2.1测试:
都在同一区域VMware 2 中
[root@www ~]# ping 192.168.2.100
PING 192.168.2.100 (192.168.2.100) 56(84) bytes of data.
64 bytes from 192.168.2.100: icmp_seq=1 ttl=64 time=34.4 ms
64 bytes from 192.168.2.100: icmp_seq=2 ttl=64 time=0.673 ms
[root@www Server]# firefox //linux自带的浏览器
2.2 编辑仓库文件(容器)
[root@www ~]# eject //光盘弹出,利用网络来升级!(安装我们需要的软件)
[root@www ~]# vim /etc/yum.repos.d/rhel-debuginfo.repo
2.3 测试从网络安装需要的服务等(升级)
[root@www yum.repos.d]# ll
//该目录下如果没有扩展名为.repo的文件,则手动创建!
总计 8
-rw-r--r-- 1 root root 697 08-12 11:34 rhel-debuginfo.repo
-rw-r--r-- 1 root root 652 07-13 10:32 server.repo
[root@www yum.repos.d]# mv server.repo aa
[root@www yum.repos.d]# ll
总计 8
-rw-r--r-- 1 root root 652 07-13 10:32 aa
-rw-r--r-- 1 root root 697 08-12 11:34 rhel-debuginfo.repo
[root@www ~]# yum clean
Packages:将下载的软件文件删除
和蔼的人生:将下载的软件的文件头删除
all //将所有容器数据都删除
[root@www ~]# yum clean all //删除已下载过的所有容器的相关数据(含软件本身与列表)
Loaded plugins: rhnplugin, security
Cleaning up Everything
[root@www ~]# yum repolist //列出目前yum server 所使用的容器有哪些
每个仓库都有1.3K的校验文件:
在服务器端的/mnt/cdrom/Server
目录repodata的作用:分析RPM软件后产生的软件属性依赖数据放置处!
[root@www ~]# yum list all |grep vsftpd
This system is not registered with RHN.
RHN support will be disabled.
vsftpd.i386 2.0.5-16.el5 rhel-server
[root@www ~]# yum install vsftpd –y
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package vsftpd.i386 0:2.0.5-16.el5 set to be updated
filelists.xml.gz | 110 kB 00:00
filelists.xml.gz | 2.3 MB 00:01
filelists.xml.gz | 11 kB 00:00
filelists.xml.gz | 26 kB 00:00
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
vsftpd i386 2.0.5-16.el5 rhel-server 140 k
Transaction Summary
================================================================================
Install 1 Package(s) // 安装
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 140 k
Downloading Packages:
vsftpd-2.0.5-16.el5.i386.rpm | 140 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : vsftpd [1/1]
Installed: vsftpd.i386 0:2.0.5-16.el5
Complete!
[root@www ~]# yum list all |grep vsftpd
This system is not registered with RHN.
RHN support will be disabled.
vsftpd.i386 2.0.5-16.el5 installed
[root@www ~]# yum info vsftpd //查看vsftpd的信息!
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Installed Packages
Name : vsftpd
Arch : i386
Version : 2.0.5
Release : 16.el5
Size : 285 k
Repo : installed
Summary : vsftpd - 非常安全 Ftp 守护进程
URL : http://vsftpd.beasts.org/
License : GPL
Description: vsftpd 是一个非常安全 FTP 守护进程。它是完全从零开始 编写的。
[root@www mail]# yum list available |grep httpd //查看可以安装而未安装的!
This system is not registered with RHN.
RHN support will be disabled.
httpd.i386 2.2.3-31.el5 rhel-server
httpd-devel.i386 2.2.3-31.el5 rhel-server
httpd-manual.i386 2.2.3-31.el5 rhel-server
system-config-httpd.noarch 5:1.3.3.3-1.el5 rhel-server
[root@www mail]# yum list installed |grep vsftpd //查看已安装的服务
This system is not registered with RHN.
RHN support will be disabled.
vsftpd.i386 2.0.5-16.el5 installed
yum的软件组功能:
yum grouplist :列出所有可使用的组列表,例如 Development Tools之类的;
yum groupinfo :后面接group name,则可了解该group内含的所有组名称;
yum groupinstall :可以安装一整组的软件,相当不错
yum groupremove:删除某个组
[root@www ~]# yum grouplist all
//查看目前容器与本机上面的可用与安装过的软件组有哪些
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Group Process
Installed Groups:
FTP 服务器
GNOME 桌面环境
GNOME 软件开发
MySQL 数据库
X 窗口系统
X 软件开发
万维网服务器
办公/生产率
图形
图形化互联网
基于文本的互联网
开发工具
开发库
打印支持
授权和出版
服务器配置工具
游戏和娱乐
管理工具
系统工具
编辑器
网络服务器
老的网络服务器
老的软件开发
老的软件支持
视频和音频
邮件服务器
Available Groups:
DNS 名称服务器
Java开发
KDE 软件开发
KDE (K 桌面环境) //还未安装
OpenFabrics 企业版发行
PostgreSQL 数据库
Windows 文件服务器
工程和科学
新闻服务器
群集存储
虚拟化
集群
Done
[root@www ~]# yum groupinstall "KDE" // 整个安装
Installed: arts.i386 8:1.5.4-1 kdeaccessibility.i386 1:3.5.4-1.fc6 kdeartwork.i386 0:3.5.4-1.fc6 kdebase.i386 6:3.5.4-20.el5 kdenetwork.i386 7:3.5.4-9.el5 kdeutils.i386 6:3.5.4-5.fc6
Dependency Installed: avahi-qt3.i386 0:0.6.16-6.el5 htdig.i386 3:3.2.0b6-11.el5 kdelibs.i386 6:3.5.4-22.el5_3 kdnssd-avahi.i386 0:0.1.3-0.1.20060713svn.fc6 lm_sensors.i386 0:2.10.7-4.el5
Complete!
[root@www ~]# runlevel //运行级别
N 5 //图形界面
[root@www ~]# init 6 //重启
只是发现任务栏在下面(风格不同)
二、本地服务器:
1.服务器端关闭FTP服务
2.客户端配置:
[root@www ~]# mount /dev/cdrom /mnt/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only
Vim /etc/yum.repos.d/ rhel-debuginfo.repo
底行模式输入:
:1,$ s$ftp://192.168.2.100/pub/$file:///mnt/cdrom/$ //红色$表示分界符
[root@www ~]# rpm -qa |grep dovecot //查看是否已安装
[root@www ~]# yum list all |grep dovecot
This system is not registered with RHN.
RHN support will be disabled.
dovecot.i386 1.0.7-7.el5 rhel-server
[root@www ~]# yum install dovecot –y //安装一直YES
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package dovecot.i386 0:1.0.7-7.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================
Package Arch Version Repository Size
====================================================================================
Installing:
dovecot i386 1.0.7-7.el5 rhel-server 1.7 M
Transaction Summary
====================================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 1.7 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : dovecot [1/1]
Installed: dovecot.i386 0:1.0.7-7.el5
Complete!
[root@www ~]# yum list all |grep dovecot
This system is not registered with RHN.
RHN support will be disabled.
dovecot.i386 1.0.7-7.el5 installed