网上绑定 for Redhat
Redhat Linux的网络配置,基本上是通过修改几个配置文件来实现的,虽然也可以用ifconfig来设置IP,用route来配置默认网关,用hostname来配置主机名,但是重启后会丢失。相关的配置文件/ect/hosts 配置主机名和IP地址的对应/etc/sysconfig/network 配置主机名和网关/etc/sysconfig/network-scripts/ifcfg-eth0 eth0配置文件,eth1则文件名为ifcfg-eth1,以此类推一、网卡配置假设我们要配置主机名为test,eth0的IP地址192.168.168.1/24,网关地址192.168.168.250则/etc/sysconfig/network文件内容如下:NETWORKING=yesHOSTNAME=testGATEWAY
ORACLE Install (10g r2) FOR Red Hat Enterprise Linux Server release 5.5 (64 bit)
OS Info----------# cat /etc/redhat-releaseRed Hat Enterprise Linux Server release 5.5 (Tikanga)# cat /etc/issue.netRed Hat Enterprise Linux Server release 5.5 (Tikanga)Kernel r on an m# uname -rm2.6.18-194.el5 x86_64# echo $MACHTYPEx86_64-redhat-linux-gnu# cat /proc/cpuinfo|grep "model name"model name : Intel(R) Core(TM) i7 CPU 950 @ 3.07GHzmodel name : Intel(R) Core(TM) i7 CPU 950 @ 3.07GHzmodel name : Intel(R) Core(TM) i7 CPU 950 @ 3.07GHzmod
Error 15: File not found for Redhat
Error 15: File not foundroot (hd0,0)kernel /vmlinuz-2.6.18-155.el5 ro root=LABEL=/1 rhgb quietinitrd /initrd-2.6.18-155.el5.imgSolution:1.按任意键返回之后,选择以下内容后按E进行编辑,给root指定正确的LABLEkernel /vmlinuz-2.6.18-155.el5 ro root=LABEL=/ rhgb quiet2.编辑完成之后,按enter3.确认无误后,按b,启动系统。[@more@]Grub下进行加载Kernel方法(输入过程中按tab可以获得提示):根据具体情况,进行设置在菜单界面按'c'进入grub命令行界面grub>root (hd0,0)grub>setup (hd0)grub>cat (hd0,0)/grub/grub.
Mount ISO on liunx/aix/solaris
Redhat Liunx:mount -o loop -t iso9660 /tmp/iso.iso /media/cdromAix:Mounting ISO images on AIXThere is a known problem with mounting ISO images on the AIX platform. To workaround the problem, complete the following instructions:Obtain the size of the image. For example:# ls -altotal 731594drwxr-xr-x 2 root system 512 Aug 18 11:33 .drwxr-xr-x 6 root system 512 Aug 18 11:32 ..-rw-r--r-- 1 root system 374575104 Apr 29 02:59 fim_console_rios_aix_5.isoIdentify the nearest multiple of 128 MB that will
History(历史)命令用法 15 例
如果你经常使用 Linux 命令行,那么使用 history(历史)命令可以有效地提升你的效率。本文将通过实例的方式向你介绍 history 命令的 15 个用法。1 使用 HISTTIMEFORMAT 显示时间戳当你从命令行执行 history 命令后,通常只会显示已执行命令的序号和命令本身。如果你想要查看命令历史的时间戳,那么可以执行:# export HISTTIMEFORMAT='%F %T '# history | more1 2008-08-05 19:02:39 service network restart2 2008-08-05 19:02:39 exit3 2008-08-05 19:02:39 id4 2008-08-05 19:02:39 cat /etc/redhat-release [@more@]2 使用 Ctrl+R 搜
nmon for redhat 4.7(64bit)
1.下载makefile http://ncu.dl.sourceforge.net/project/nmon/makefile 2.下载source code http://ncu.dl.sourceforge.net/project/nmon/lmon14a.c 3. mv lmon14a.c lmon.c 4. vi makefile add : nmon_x86_64_rhel47: cc -o nmon_x86_64_rhel47 $(FILE) $(CFLAGS) $(LDFLAGS) 5.CompilingNmon # make nmon_x86_64_rhel47 cc -o nmon_x86_64_rhel47 lmon.c -g -O2 -D JFS -D GETUSER -Wall -D LARGEMEM -lncurses -g 6.test # ls lmon.c makefile nmon_x86_64_rhel47# cp nmon_x86_64_rhel47 /usr/local/bin/nmon[@
Nohup命令让Linux下的程序在后台执行 - 转
nohup命令让Linux下的程序在后台执行 Unix/Linux下一般想让某个程序在后台运行,很多都是使用 在程序结尾来让程序自动运行。比如我们要运行mysql在后台: /usr/local/mysql/bin/mysqld_safe user=mysql 但是我们很多程序并不象mysqld一样可以做成守护进程,可能我们的程序只是普通程序而已,一般这种程序即使使用 结尾,如 - Nohup命令让Linux下的程序在后台执行 Unix/Linux下一般想让某个程序在后台运行,很多都是使用 & 在程序结尾来让程序自动运行。比如我们要运行mysql在后台: /usr/local/mysql/bin/mysqld_safe –
Linux中/usr和/var目录详解 -- 转自网络
/usr文件系统 /usr 文件系统经常很大,因为所有程序安装在这里. /usr 里的所有文件一般来自Linux distribution;本地安装的程序和其他东西在/usr/local 下.这样可能在升级新版系统或新distribution时无须重新安装全部程序. /usr/X11R6 X Window系统的所有文件.为简化X的开发和安装,X的文件没有集成到系统中. X自己在/usr/X11R6 下类似/usr . /usr/X386 类似/usr/X11R6 ,但是给X11 Release 5的. [@more@]/usr/bin 几乎所有用户命令.有些命令在/bin 或/usr/local/bin 中. /usr/sbin 根文件系统不必要的系统管理
ORA-07445 & ORA-00108 问题处理
Mon Sep 27 15:53:12 2010Errors in file /orahome/admin/SES3CMES/bdump/ses3cmes_ora_10658.trc:ORA-07445: exception encountered: core dump [kslgetl()+80] [SIGSEGV] [Address not mapped to object] [0x130] [] []ORA-00108: failed to set up dispatcher to accept connection asynchronouslyMon Sep 27 15:53:15 2010found dead dispatcher 'D000', pid = (15, 163)Mon Sep 27 15:53:15 2010dispatcher 'D000' encountered error getting listening addressMon Sep 27 15:53:15 2010Errors in file /orahome/admin/SES3CMES/bdum
去掉linux中"You have new mail in /var/spool/mail/root"的提示
我们在用命令行操作 linux的时候经常会出现You have new mail in /var/spool/mail/root的提示,很不爽,而且/var/spool/mail/root这个文件越来越大,占用系统资源.有没有办法屏 蔽这个提示呢?答案的肯定的.下面介绍一种方法.需要修改系统配置文件/etc/profile,告诉系统不要去检查邮箱.#echo "unset MAILCHECK" >> /etc/profile 其实就是把unset MAILCHECK加到文件/etc/profile 的尾部即可然后重新登陆控制台就没有这个讨厌的提示了 [@more@]
Redhat 网络相关配置文件详解 - (转自网络)
在linux系统中,TCP/IP网络是通过若干个文本文件进行配置的,需要编辑这些文件来完成联网工作。系统中重要的有关网络配置文件为: ◆ /etc/sysconfig/network ◆ /etc/HOSTNAME ◆ /etc/hosts ◆ /etc/services ◆ /etc/host.conf ◆ /etc/nsswitch.conf ◆ /etc/resolv.conf ◆ /etc/rc.d/init.d/network[@more@] 接下来我们将对这些文件逐一讲述,这些文件都可以在系统运行时进行修改,不用启动或者停止任何守护程序,更改会立刻生效(除了/etc /sysconfig/network)。另外,这些文件都支持由”#”开头的注释,每一个文件都有在
IF 的使用 for Linux Shell
无论什么编程语言都离不开条件判断。SHELL也不例外。 if list then do something here elif list then do another thing here else do something else here fi [@more@] 无论什么编程语言都离不开条件判断。SHELL也不例外。 if list then do something here elif list then do another thing here else do something else here fi EX1:#!/bin/shSYSTEM=`uname -s` #获取操作系统类型,我本地是linuxif [ $SYSTEM = "Linux&q
Mac address setting For Redhat
临时生效:# ifconfig eth0 down# ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx# ifconfig eth0 up永久生效:# vi /etc/sysconfig/network-scripts/ifcfg-eth0HWADDR=xx:xx:xx:xx:xx:xx[@more@]