
LINUX管理
文章平均质量分 71
zhoul77777
这个作者很懒,什么都没留下…
展开
-
linux 共享内存段研究
无论是在unix或者是linux都有命令查看主机共享内存段的使用情况,以下研究来自linux平台。一、查看Oracle用户共享内存段使用情况[quote][oracle@capaa ~]$ ipcs------ Shared Memory Segments --------key shmid owner perms bytes ...2009-12-09 14:11:27 · 255 阅读 · 0 评论 -
linux as 4 bond网卡绑定
理论不赘述,简而言之,网卡绑定就是多张网卡逻辑上作为一张网卡用。可分为,负载均衡绑定和冗余绑定两种。以下为操作过程:linux的内核为[quote][root@test ~]# uname -aLinux test 2.6.9-22.EL #1 Mon Sep 19 18:20:28 EDT 2005 i686 i686 i386 GNU/Linux[/quote]查看网卡绑定之前...2009-08-19 15:48:28 · 150 阅读 · 0 评论 -
linux 绑定模式分别为冗余和均衡负载时信息显示
linux绑定网卡在《linux as 4 bond网卡绑定》中提到过了,下面观察一下不同绑定方式显示情况(注:以下信息摘自网络)主要讨论mode分别为0,1时的情况mode=1工作在主备模式下,这时eth1作为备份网卡是no arp的[quote][root@rhas-13 network-scripts]# ifconfig 验证网卡的配置信息bond0 Link encap:...2009-08-19 16:46:56 · 161 阅读 · 0 评论 -
Linux显示网卡流量
Linux操作系统版本为:[quote][root@hzmc tmp]# uname -aLinux hzmc 2.6.18-53.el5 #1 SMP Mon Nov 12 02:22:48 EST 2007 i686 i686 i386 GNU/Linux[/quote]需要的安装包为:[quote][root@hzmc tmp]# rpm -qa|grep byaccb...2009-09-03 14:24:49 · 113 阅读 · 0 评论 -
linux dmidecode 查看硬件信息
在linux平台可以利用命令dmidecode查看硬件信息,以下是输出信息,仅作记录[root@mcprod ~]# [color=red]dmidecode[/color] # dmidecode 2.7SMBIOS 2.5 present.51 structures occupying 2516 bytes.Table at 0x000EF510.Handle ...原创 2010-03-03 11:21:14 · 609 阅读 · 0 评论 -
oci8
[dbra@shenjp ruby-oci8-1.0.7]$ cd /home/dbra/instantclient_10_2[dbra@shenjp instantclient_10_2]$ ln -s libclntsh.so.10.1 libclntsh.so[dbra@shenjp instantclient_10_2]$ cd ..[dbra@shenjp ~]$ ls -r...原创 2010-09-10 17:30:36 · 130 阅读 · 0 评论 -
linux 5 裸设备绑定
在以前的redhat版本中,系统通过/etc/sysconfig/rawdevices配置raw的控制文件,通过/etc/init.d/rawdevices来管理raw设备的启动和关闭。redhat5正规的方法是通过udev来管理raw。裸设备绑定的重启命令为start_udev今天在数据库检查过程中碰到一客户,没有在系统启动过程实现裸设备自动绑定。简单做下记录,以便不时之需。[r...2010-11-17 14:33:02 · 162 阅读 · 0 评论 -
linux lvm创建文件系统
以下仅为安装记录1、创建lv[quote][root@Linux ~]# lvcreate -L 20480 VolGroup_ID_25519 -n lvdbra Logical volume "lvdbra" created[/quote]2、创建挂载点 [quote][root@Linux ~]# mkdir /dbra[/quote]3、直接挂载或用ext3格式挂...2010-11-25 12:00:55 · 149 阅读 · 0 评论 -
linux gcc rpm包安装过程
系统中发现gcc未安装,以下为gcc安装过程中的依赖包[quote][root@Linux Server]# rpm -ivh gcc-4.1.2-48.el5.x86_64.rpm warning: gcc-4.1.2-48.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186error: Failed de...原创 2010-11-25 12:02:41 · 276 阅读 · 0 评论 -
linux 5 x64上安装基础软件的一些错误修复
因项目需要,以下为linux as 5 上安装基础软件时一些错误修复,仅作备忘1、安装zlib时出现错误[quote]su – dbrasu rootcd /dbra/app/softs/ruby-1.8.6-p114/ext/zlib ruby extconf.rb --with-zlib-dir=/dbra/app/lib/zlibmake...2010-11-25 12:23:49 · 209 阅读 · 0 评论 -
vmware 网卡hostonly模式不能ping的问题
因测试需要,开启虚拟机,网卡为hostonly模式,启动之后不能ping通虚拟机。1、检查网卡是否共享[img]http://dl.iteye.com/upload/attachment/357874/046debaf-5c52-330d-a5fb-74ba21b5806d.jpg[/img]2、检查vmnet1网络配置情况[img]http://dl.iteye.co...2010-12-01 11:58:05 · 424 阅读 · 0 评论 -
OCI安装错误记录(二)
由于Oracle 11g R2 X64在windows 2008 R2 64位环境下,并没有提供$ORACLE_HOME/lib32目录,再加上OCI8只支持在32位环境下安装的天然特性,[url]http://itspace.iteye.com/blog/722876[/url]费了很大劲终于将OCI8成功装上。[quote]$ irbirb(main):001:0> require '...2010-07-31 15:22:39 · 198 阅读 · 0 评论 -
OCI安装错误记录(一)
主机环境:WINDOWS 2008 X64+ORACLE 11G R2 x64+CYGWIN初始安装时报以下错误:[quote]$ gem install -l --no-doc --no-ri ruby-oci8-1.0.2.gemBuilding native extensions. This could take a while...ERROR: Error inst...2010-07-28 09:36:05 · 794 阅读 · 0 评论 -
tar压缩使用方法
为了方便用户在打包解包的同时可以压缩或解压文件,tar提供了一种特殊的功能。这就是tar可以在打包或解包的同时调用其它的压缩程序,比如调用gzip、bzip2等。1) tar调用gzipgzip是GNU组织开发的一个压缩程序,.gz结尾的文件就是gzip压缩的结果。与gzip相对的解压程序是gunzip。tar中使用-z这个参数来调用gzip。下面来举例说明一下:# tar...原创 2009-12-10 16:47:48 · 304 阅读 · 0 评论 -
linux nmon的使用
nmon类似AIX的topas工具,可以很好的评估当前系统性能状态。下载地址为http://www.ibm.com/developerworks/wikis/display/WikiPtype/nmon下载下来解压缩即可。[root@dbsvr ora10g]# mv nmon_x86_64_rhel4 nmon[root@dbsvr ora10g]# ln -s /home/or...2009-06-23 18:17:31 · 117 阅读 · 0 评论 -
linux 划分文件系统
linux版本为[quote][root@hzmc ~]# uname -aLinux hzmc 2.6.18-53.el5xen #1 SMP Mon Nov 12 03:26:12 EST 2007 i686 i686 i386 GNU/Linux[/quote]1、查看主机硬盘划分情况,我们需要在/dev/sdb划分一文件系统,大小在80G左右。[quote][root@hz...2009-12-24 09:58:13 · 186 阅读 · 0 评论 -
linux 修改时区
一、修改时区1、查看当前使用的时区,可以看到当前系统使用美国纽约的时区[quote][root@hzmc ~]# dateThu Dec 24 01:15:44 EST 2009[root@hzmc Asia]# more /etc/sysconfig/clock# The ZONE parameter is only evaluated by system-config-...2009-12-24 14:46:48 · 2778 阅读 · 0 评论 -
linux vsftp 600s 超时设置
默认情况下,linux平台ftp,空闲会话超时时间为600s,以下为改变此设置过程[quote]vi /etc/vsftpd/vsftpd.conf[/quote]将idle_session_timeout改为6000s[quote]# You may change the default value for timing out an idle session.idle_sess...2009-07-14 17:02:17 · 1765 阅读 · 0 评论 -
exportfs: No host name问题处理
linux版本为[quote][root@red42 ~]# uname -aLinux red42 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:32:14 EDT 2005 i686 i686 i386 GNU/Linux[/quote]该主机作为nfs的server端,执行exportfs -a时报错[quote][root@red42 ~]# ...2009-07-15 11:58:05 · 1694 阅读 · 0 评论 -
linux vsftp 开放root权限
linux版本为[quote][root@mcprod share]# more /etc/redhat-release CentOS release 5 (Final)[/quote]内核为[quote][root@mcprod vsftpd]# uname -aLinux mcprod 2.6.18-53.el5PAE #1 SMP Mon Nov 12 02:55:09 ...2009-07-17 13:41:41 · 308 阅读 · 0 评论 -
Linux RPM包简介
安装rpm包十分便捷,省去了很多编译过程,但是很多情况下,我们需要知道rpm包解压之后文件安装路径。首先看一下rpm包的命名规则,如有一rpm包名字为ncurses4-5.0-5.i386.rpm,其命名规则为--..rpmo is the name of the program or package. The is usually assigned by th...2009-08-16 15:56:38 · 291 阅读 · 0 评论 -
xinetd: unrecognized service
linux xinetd 服务不能启动:[root@capaa xinetd.d]# service xinetd restartxinetd: unrecognized service安装xinetd 包[root@capaa ~]# yum -y install xinetdLoading "installonlyn" pluginSetting up Install ...2009-08-17 10:21:22 · 259 阅读 · 0 评论 -
sudo安装错误/usr/bin/ld: cannot find -lpam
centos 5.1版本为[quote][root@rztest sudo-1.7.2p6]# uname -aLinux rztest 2.6.18-53.el5 #1 SMP Mon Nov 12 02:22:48 EST 2007 i686 i686 i386 GNU/Linux[/quote]sudo编译包版本为sudo-1.7.2p6报如下错误[quote]#ma...原创 2010-05-10 17:10:22 · 569 阅读 · 0 评论 -
selinux引起的ftp故障
linux开通gssftp之后,客户端连接linux出现以下问题,简单记录之,备忘D:\>ftp 10.181.75.240Connected to 10.181.75.240.220 sbackup FTP server (Version 5.60) ready.User (10.181.75.240:(none)): root331 Password required fo...原创 2011-10-18 13:11:52 · 209 阅读 · 0 评论