标签:ade type ldb epo 分享图片 dir player about modules
1.通过mount命令查看设备挂载状态中是否包含/dev/cdrom(sr0).
[root@CentOS6-node1 ~]# mount |grep "cdrom"
/dev/sr0 on /media/cdrom type iso9660 (ro) //如果显示本行,证明已有光盘,否则
证明没有光盘挂载。
2.如果有挂载,将其卸载,创建/media/cdrom目录,并将光盘挂载到/media/cdrom目录上。
[root@CentOS6-node1 ~]# umount /dev/cdrom
umount: /dev/cdrom: not mounted
[root@CentOS6-node1 ~]# mkdir -p /media/cdrom
[root@CentOS6-node1 ~]# mount /dev/cdrom /media/cdrom/
mount: block device /dev/sr0 is write-protected, mounting read-only
[root@CentOS6-node1 ~]# cd /media/cdrom/Packages/
[root@CentOS6-node1 Packages]# ls
.........
3.查询lrzsz软件包是否安装,如果未安装将其安装(软件包在光盘的Packages)
[root@CentOS6-node1 Packages]# rpm -q lrzsz
package lrzsz is not installed //表明未被安装rp,
=====================理论部分========================
======================操作部分==============================
[root@CentOS6-node1 Packages]# rpm -ivh lrzsz-0.12.20-27.1.el6.x86_64.rpm
warning: lrzsz-0.12.20-27.1.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Preparing... ########################################### [100%]
1:lrzsz ########################################### [100%]
[root@CentOS6-node1 Packages]# rpm -q lrzsz
lrzsz-0.12.20-27.1.el6.x86_64
[root@CentOS6-node1 Packages]#
4.通过xftp等工具上传文件夹中的软件包
5.安装 RealPlayer11GOLD.rpm 查看视频播放器是否安装成功
[root@CentOS6-node1 ~]# ls -l RealPlayer11GOLD.rpm
-rw-r--r--. 1 root root 8631282 1月 22 14:28 RealPlayer11GOLD.rpm
[root@CentOS6-node1 ~]# rpm -ivh RealPlayer11GOLD.rpm
Preparing... ########################################### [100%]
1:RealPlayer ########################################### [100%]
[root@CentOS6-node1 ~]# rpm -q RealPlayer
RealPlayer-11.0.0.4028-20080225.i586
[root@CentOS6-node1 ~]#
================关于软件包的依赖关系======================
7.通过源代码方式安装 httpd-2.2.17.tar.gz 软件确保web服务正常运行
Tarball 封包
.tar.gz 和 .tar.bz2 格式居多
软件素材参考:http://sourceforge.net
完整性校验
md5sum校验工具
n 计算MD5校验和,并与官方提供的值相比较,判断是否一致
[root@CentOS6-node1 ~]# md5sum httpd-2.2.17.tar.gz
66d8e107f85acc039fd5e624e85728a9 httpd-2.2.17.tar.gz
--------------------------------------------------------------------------------------------
[root@CentOS6-node1 ~]# rpm -q httpd
httpd-2.2.15-29.el6.centos.x86_64
[root@CentOS6-node1 ~]# rpm -e httpd --nodeps
[root@CentOS6-node1 ~]# rpm -q httpd
package httpd is not installed
//卸载本地用rpm方式安装的httpd服务器
========================================
[root@CentOS6-node1 ~]# rpm -q gcc gcc-c++ make
gcc-4.4.7-4.el6.x86_64
gcc-c++-4.4.7-4.el6.x86_64
make-3.81-20.el6.x86_64
=================理论部分==================
步骤1:tar解包
[root@CentOS6-node1 ~]# tar xf httpd-2.2.17.tar.gz -C /usr/src/
[root@CentOS6-node1 ~]# cd /usr/src/httpd-2.2.17/
[root@CentOS6-node1 httpd-2.2.17]# ls
ABOUT_APACHE buildconf emacs-style LAYOUT NOTICE ROADMAP
acinclude.m4 CHANGES httpd.dsp libhttpd.dsp NWGNUmakefile server
Apache.dsw config.layout httpd.spec LICENSE os srclib
build configure include Makefile.in README support
BuildAll.dsp configure.in INSTALL Makefile.win README.platforms test
BuildBin.dsp docs InstallBin.dsp modules README-win32.txt VERSIONING
----------------------------------------------------------------------------------------
步骤2:./configure配置
[root@CentOS6-node1 httpd-2.2.17]# ./configure --prefix=/usr/local/httpd
注意:
--prefix :指定安装路径
-------------------------------------------------------
步骤3:编译,将源码编译成系统能够识别的二进制可执行程序
[root@CentOS6-node1 httpd-2.2.17]# make
---------------------------------------------------------------
步骤4. 安装 ,创建安装目录,并将生成二进制可执行程序复制进去。
[root@CentOS6-node1 httpd-2.2.17]# make install
[root@CentOS6-node1 httpd-2.2.17]# ls /usr/local/httpd/
bin build cgi-bin conf error htdocs icons include lib logs man manual modules
----------------------------------
步骤5. 测试:
[root@CentOS6-node1 httpd-2.2.17]# /usr/local/httpd/bin/apachectl start
//启动httpd服务
8.查找出chkconfig命令由哪个软件包生成
[root@CentOS6-node1 ~]# which chkconfig
/sbin/chkconfig
[root@CentOS6-node1 ~]# rpm -qf /sbin/chkconfig
chkconfig-1.3.49.3-2.el6_4.1.x86_64
9.通过光盘导入软件包数字公钥
[root@CentOS6-node1 ~]# ls /media/cdrom/
CentOS_BuildTag RELEASE-NOTES-en-US.html
EFI repodata
EULA RPM-GPG-KEY-CentOS-6
GPL RPM-GPG-KEY-CentOS-Debug-6
images RPM-GPG-KEY-CentOS-Security-6
isolinux RPM-GPG-KEY-CentOS-Testing-6
Packages TRANS.TBL
[root@CentOS6-node1 ~]# rpm --import /media/cdrom/*K*
//通过光盘导入软件包数字公钥
10.将光盘卸载
[root@CentOS6-node1 ~]# umount /dev/cdrom
[root@CentOS6-node1 ~]# mount |grep "cdrom"
标签:ade type ldb epo 分享图片 dir player about modules
原文地址:https://www.cnblogs.com/zhugq/p/9335496.html