
RHCA实验笔记
文章平均质量分 65
记录RHCA考试过程中的一些实验步骤, 常见问题与解决方法.
t0nsha
ocp/rhce/rhcds/rhca oracle dba/ebs dba/ebs dev
展开
-
rh423 - Linux客户端利用winbind加入Windows 2008 Enterprise R1/SP1的AD
版本:[root@station19 ~]# uname -aLinux station19.example.com 2.6.18-308.el5xen #1 SMP Fri Jan 27 17:59:00 EST 2012 i686 i686 i386 GNU/Linux[root@station19 ~]# lsb_release -aLSB Version: :core-4.0-ia3原创 2013-08-06 00:57:31 · 2942 阅读 · 0 评论 -
rh423 - 主辅同步报错:there is no replicated area "dc=server119,dc=example,dc=com" on the consumer server
版本:[root@server119 slapd-server119]# uname -aLinux server119.example.com 2.6.18-308.el5xen #1 SMP Fri Jan 27 17:59:00 EST 2012 i686 i686 i386 GNU/Linux[root@server119 slapd-server119]#RHDS Version: Re原创 2013-07-27 21:21:01 · 2397 阅读 · 0 评论 -
rh423 - redhat-ds如何移除已有ds并重新部署新的ds
rh423 - redhat-ds如何移除已有ds并重新部署新的ds版本:[root@server219 dirsrv]# cat /proc/version Linux version 2.6.18-308.el5xen (mockbuild@x86-010.build.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-50))原创 2013-07-27 21:07:08 · 1975 阅读 · 0 评论 -
rh436 - rhel6.2如何在host关闭时不保存kvm虚拟机的状态
在rhel5时代使用xen虚拟化的时候,默认/etc/init.d/xendomains服务是启动的,这个服务是确保当正常关闭物理机(不是突然断电)时,如果有虚拟机正在运行,则默认会先保存正在运行的虚拟机状态然后才关闭宿主系统(host),这样下次物理机启动的启动的时候就会再把虚拟机恢复到上次关机前的状态。但是这样会导致关机的时间变长,需要保存的虚拟机越多耗时越长;如果在虚拟机上面配置了集群,还会原创 2013-06-21 15:03:03 · 3841 阅读 · 0 评论 -
rh436 - 基于rhel6.2的apache集群排错 - Cannot assign requested address: make_sock: could not bind to address
版本:[root@node2 ~]# cat /proc/version Linux version 2.6.32-220.el6.x86_64 (mockbuild@x86-004.build.bos.redhat.com) (gcc version 4.4.5 20110214 (Red Hat 4.4.5-6) (GCC) ) #1 SMP Wed Nov 9 08:03:13 EST 20原创 2013-06-19 01:31:30 · 5954 阅读 · 0 评论 -
rh436 - rhel6.2下如何使/etc/iscsi/iscsid.conf里面的timeout参数生效
版本:[root@node2 ~]# cat /proc/version Linux version 2.6.32-220.el6.x86_64 (mockbuild@x86-004.build.bos.redhat.com) (gcc version 4.4.5 20110214 (Red Hat 4.4.5-6) (GCC) ) #1 SMP Wed Nov 9 08:03:13 EST 20原创 2013-06-18 01:05:51 · 4622 阅读 · 0 评论 -
rh436 - Facing "Volume group for uuid not found" error while run lvcreate on shared storage
Version:[root@node2 ~]# cat /proc/version Linux version 2.6.32-220.el6.x86_64 (mockbuild@x86-004.build.bos.redhat.com) (gcc version 4.4.5 20110214 (Red Hat 4.4.5-6) (GCC) ) #1 SMP Wed Nov 9 08:03:13 E原创 2013-06-16 23:25:16 · 4279 阅读 · 0 评论 -
rh436 - 错把“Netmask Bits”当“Netmask”
版本:[root@desktop20 ~]# cat /proc/version Linux version 2.6.32-220.el6.x86_64 (mockbuild@x86-004.build.bos.redhat.com) (gcc version 4.4.5 20110214 (Red Hat 4.4.5-6) (GCC) ) #1 SMP Wed Nov 9 08:03:13 ES原创 2013-06-11 01:19:21 · 2064 阅读 · 0 评论 -
rh442 - Linux下性能监控命令vmstat的简单理解
以下解释都是通过man vmstat加上自己的一些理解得到的,每秒刷新一次监控数据可直接运行vmstat 1。vmstat - Report virtual memory statisticsDESCRIPTION vmstat reports information about processes, memory, paging, block IO, traps, and原创 2013-06-02 13:27:14 · 3071 阅读 · 0 评论 -
rh436 - Linux下如何根据fdisk/tune2fs -l/dumpe2fs来计算分区的大小
版本:┌─[root@tp]─[~]─[2+1]─[100%=]└─# cat /proc/version Linux version 3.7.9-2-ARCH (tobias@T-POWA-LX) (gcc version 4.7.2 (GCC) ) #1 SMP PREEMPT Mon Feb 25 12:04:25 CET 2013用fdisk来计算分区大小┌─[root@tp]─[~]─[原创 2013-05-08 02:20:03 · 2338 阅读 · 0 评论 -
rh436 - ssh验证/连接很慢
版本:客户端(client):[root@desktop20 ~]# cat /proc/version Linux version 2.6.32-220.el6.x86_64 (mockbuild@x86-004.build.bos.redhat.com) (gcc version 4.4.5 20110214 (Red Hat 4.4.5-6) (GCC) ) #1 SMP Wed Nov 9原创 2013-05-06 00:52:32 · 2319 阅读 · 0 评论 -
rh333 - 利用apache搭建简易https服务器
rh333 - 利用apache搭建简易https服务器安装httpd以及ssl包yum install httpd mod_ssl -y生成web服务器私钥和证书请求文件(csr)cd /etc/httpd/conf/openssl genrsa out httpd.key 1024openssl req -new -key httpd.key -out httpd.csr使用自建的CA中心签名原创 2013-04-17 21:45:03 · 2142 阅读 · 0 评论 -
rh333 - 搭建简易CA中心
rh333 - 搭建简易CA中心Version: RHEL 5.8 x32修改搭建CA的配置文件:vim /etc/pki/tls/openssl.cnfdir = /etc/pki/CAcertificate = $dir/my-ca.crtprivate_key = $dir/private/my-ca.key根据CA中心默认的配置策略,可以找到如下3个原创 2013-04-17 21:44:10 · 2786 阅读 · 0 评论 -
rh333 - kinit(v5): Password incorrect while getting initial credentials
1. version[root@station20 ~]# cat /proc/version Linux version 2.6.18-308.el5xen (mockbuild@x86-010.build.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)) #1 SMP Fri Jan 27 17:59:00 EST原创 2013-04-06 22:51:28 · 10751 阅读 · 1 评论 -
rh333 - 启用apache的UserDir(~user)支持
1. 版本与SELINUX[root@server120 ~]# cat /proc/version Linux version 2.6.18-308.el5xen (mockbuild@x86-010.build.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)) #1 SMP Fri Jan 27 17:59:00 E原创 2013-04-03 00:08:23 · 1889 阅读 · 0 评论 -
rh442 - Linux下cpu使用率load average的简单理解
Linux下cpu使用率load average的简单理解(本文的核数亦指采用超线程技术HT虚拟出来的核心,即在top命令下按1得出几个cpu即为几核)load average一般可以通过top或者uptime观察到,格式如下:load average: 0.10, 0.05, 0.58load average后面有由逗号分割的3列数字,分别代表了最近1分钟,5分钟,15分钟CPU的平均负载情况。原创 2013-02-22 21:06:09 · 11933 阅读 · 3 评论 -
RH442 - 如何通过lvm快照克隆一个kvm虚拟机
系统版本[root@desktop2 ~]# cat /proc/version Linux version 2.6.32-220.el6.x86_64 (mockbuild@x86-004.build.bos.redhat.com) (gcc version 4.4.5 20110214 (Red Hat 4.4.5-6) (GCC) ) #1 SMP Wed Nov 9 08:03:13 ES原创 2013-01-17 00:43:21 · 3399 阅读 · 0 评论 -
RH442 - 通过cgroup来限制kvm虚拟机只使用host的某个cpu和内存大小
测试使用的系统版本[root@desktop2 ~]# cat /proc/version Linux version 2.6.32-220.el6.x86_64 (mockbuild@x86-004.build.bos.redhat.com) (gcc version 4.4.5 20110214 (Red Hat 4.4.5-6) (GCC) ) #1 SMP Wed Nov 9 08:03:原创 2013-01-17 00:14:01 · 8862 阅读 · 4 评论 -
rh401 - rpmbuild更改BuildArch后碰到错误(error: Arch dependent binaries in noarch package)
spec文件里没有BuildArch的时候可以正常生成rpm文件,加上BuildArch:noarch报如下错误:error: Arch dependent binaries in noarch packageRPM build errors: Arch dependent binaries in noarch packagegoogle的解决方法是在spec文件里加上下面这行:%原创 2012-09-26 23:50:53 · 6515 阅读 · 1 评论 -
rh401 - RPM编包示例 - 一份Makefile文件和与之对应hello.spec文件
Makefile:## Makefile for the "hello" open source library and application#VERSION=1.0CC=gccCFLAGS=-O2.PHONY: libhello allall: hellohello: libhello.so.1 hello.o $(CC) $(CFLAGS) hello.o -L.原创 2012-09-09 22:44:42 · 2798 阅读 · 0 评论 -
rh401 - 简单pxe网络引导环境的搭建
1. 安装与配置dhcp服务器:yum install dhcpvim /etc/dhcp/dhcpd.confnext-server 10.100.0.254;filename "/pxelinux.0";subnet 10.100.0.0 netmask 255.255.0.0 { range 10.100.0.100 10.100.0.200; default-lease-time 60原创 2012-08-12 19:02:52 · 1406 阅读 · 0 评论 -
rh436 - 软件raid的配置(mdadm)
软件环境:[root@station18 ~]# lsb_release -aLSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarchDistributor ID: RedHatEnterpriseServerDescription: Red Hat Enterprise L原创 2012-07-03 01:58:07 · 3797 阅读 · 0 评论 -
rh436 - 通过udev配置iscsi共享磁盘名称及权限(rhel5.5)
通过udev配置iscsi共享磁盘名称:[root@localhost ~]# udevinfo -q path -n /dev/sdb /block/sdb[root@localhost ~]# /sbin/scsi_id -g -s /block/sdb1IET 00020001[root@localhost ~]# vim /etc/udev/rules.d/99-iscsi.rul原创 2012-05-26 19:13:15 · 2306 阅读 · 0 评论 -
rh436 - iscsi服务端配置(rhel5.5)
iscsi服务端配置操作系统版本:[root@ex333server ~]# lsb_release -aLSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarchDistributor ID: RedHatEnte原创 2012-05-26 18:24:13 · 2136 阅读 · 0 评论 -
rh436 - 使用udev重命名usb设备(rhel5.5)
[root@localhost rules.d]# lsb_release -aLSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarchDistributor ID: RedHatEnterpriseServerD原创 2012-05-26 16:37:00 · 1719 阅读 · 0 评论 -
rh436 - 网卡重命名/网卡绑定(rhel5.5)
rhel ver:[root@localhost ~]# lsb_release -aLSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarchDistributor ID: RedHatEnterpriseServ原创 2012-05-26 15:06:23 · 1685 阅读 · 0 评论