【转】HP-UX基本常识
本文转自:http://hi.baidu.com/shxr/blog/item/8e2bd488ca611a9fa4c272b3.html HP-UX基本常识 2010-02-05 14:31 1,机型 # model 9000/861/D270 2,CPU个数 # top LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS 0.15 0.4% 0.0% 0.6% 99.0% 0.0% 0.0% 0.0% 0.0% 3,硬盘个数 # ioscan -funC disk Class I H/W Path Driver S/W State H/W Type Description ===================================================================== disk 0 8/16/5
虚拟机中新装的rhel4u6无法用ssh客户端软件访问
虚拟机中新装的rhel4u6无法用ssh客户端软件访问,但是ping命令是能ping通的。原因是rhel的防火墙开着。service iptables stopchkconfig iptables off之后ssh客户端软件就能正常访问了。[@more@]
linux的alias
linux中alias 的定义,在~/.bashrc中添加即可,比如加入 alias ll='ls -lht' 若是所有用户都能使用ll,请在/etc/.bashrc中添加。[@more@]
rac2节点上配置iscsi 遇到iscsiadm: failing authentication, received incorrect username from target
在rac2节点上配置iscsi 连接共享存储(使用openfiler做共享存储)时遇到:注意:192.168.0.222是openfiler服务器ip[root@rac2 nodes]# iscsiadm -m discovery -t st -p 192.168.0.222iscsiadm: failing authentication, received incorrect username from target iscsiadm: Login authentication failed with target iscsiadm: discovery login to 192.168.0.222 failed, giving up最终发现是/etc/iscsi/iscsid.conf 配置文件的问题。[root@rac2 nodes]# cat /etc/iscsi/iscsid.conf ## Open-iSCSI default configuration.# Could be locate
查看selinux的状态以及关闭selinux
查看selinux的状态:[root@rac1 ~]# getenforceDisabled[root@rac1 ~]# sestatusSELinux status: disabled[root@rac1 ~]# 修改selinux为disabled(禁用),重启后此修改生效[root@rac1 ~]# cat /etc/selinux/config # This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing - SELinux security policy is enforced.# permissive - SELinux prints warnings instead of enforcing.# disabled - SELinux is fully disabled.SELINUX=disabled#
linux下的防火墙
1.检查linux防火墙是否处于开机自动启动状态: chkconfig --list |grep iptables2.检查linux防火墙当前是否处于运行状态:[root@rac1 ~]# service iptables statusFirewall is stopped.若是running的话, service iptables status的输出会有很多行。[@more@]
fsck 和chkdsk
fsck 和chkdsk[@more@]
linux partprobe 识别新分区
使用partprobe可以不用重启系统即可配合fdisk工具创建新的分区 partprobe使kernel重新读取分区表,避免重启os,当然,重启os也行。[@more@]
linux aix 查询inode的命令
red hat linuxLast login: Fri Jul 1 17:08:24 2011 from 192.168.0.82[oracle@ODD ~]$ df -hFilesystem Size Used Avail Use% Mounted on/dev/hda3 15G 14G 863M 95% //dev/hda1 487M 17M 445M 4% /bootnone 506M 0 506M 0% /dev/shm[oracle@ODD ~]$ df -iFilesystem Inodes IUsed IFree IUse% Mounted on/dev/hda3 1974720 336966 1637754 18% //dev/hda1 128520 42 128478 1% /bootnone
开机grub提示的解决
开机grub提示的解决pc机装了双系统,windows2003和rhel5.3,开机启动直接到了grub>界面下从google上搜了搜,http://www.linuxsir.org/main/?q=node/129写的不错grub> root (hd0,6) --可以用tab键来辅助完成grub> kernel /boot/vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/ --可以用tab键来辅助完成grub> initrd /boot/initrd-2.6.11-1.1369_FC4.img --可以用tab键来辅助完成grub>boot --可以用tab键来辅助完成就可以启动rhel了。注意:整个过程中,可以使用cat命令来间接确定/分区和boot分区所在[@more@]
【转】fdisk与parted GPT(GUID Partition Table)
GPT (GUID Partition Table) 大 | 中 | 小 [ 2009/03/29 13:26 | by askwan ] Linux早可以支持大于2T的块设备(Large Block Device),但是分区的时候却不能用常见的fdisk工具了,一定要用的话,会有下面的警告信息: 引用 [root@host2001 data]# fdisk -lDisk /dev/sda: 500.1 GB, 500107862016 bytes255 heads, 63 sectors/track, 60801 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/sda1 * 1 33 265041
[转]Linux系统时区时间配置详解
Linux系统时区时间配置详解Linux时区相关 1. 查看当前时区 # vi /etc/sysconfig/clock # date -u # date -R 2. 修改设置时区 方法(1) tzselect 方法(2) 仅限于RedHat Linux 和 CentOS timeconfig 方法(3) 适用于Debian dpkg-reconfigure tzdata 3. 复制相应的时区文件,替换系统默认时区 # ln -sf /usr/share/zoneinfo/$主时区/$次时区 /etc/localtime 对于中国服务器则执行: # ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 4. 将当前时间写入BIOS永久生效(避免重启后失效) # hwclo
在11gR2 rac linux中修改os的系统时间
1.每个节点用root停止cluster (先进入到grid_home/bin目录) crsctl stop cluster2. 每个节点用root执行:date -s '12:00:00'3. 每个节点用root执行(此步是写入机器的cmos时钟):clock -w 4.重启每个节点验证修改是否生效。[@more@]
使.bash_profile 文件中环境变量马上生效的命令
http://hi.baidu.com/oracle__/blog/item/e0fd35d2ebe198083bf3cf71.html执行 source .bash_profile 或者 . .bash_profile
linux的目录
linux的目录表示方法 ~ 表示 home目录,也就是执行cd命令所显示出来的命了.. 代表上级目录 (2 个点)./ 代表当前目录 (1个点1个/) ...
tar命令详解--转
http://linux.chinaunix.net/techdoc/system/2008/02/09/978179.shtml格式: tar 选项 文件目录列表功能: 对文件目录进行打包备份选项:-c 建立新...
vnc简介及配置
以下摘自:http://www.cnblogs.com/cy163/archive/2007/05/23/757625.htmlVNC(Virtual Network Computing)是一套由AT&T实验室所开发的可操控远程的计算机的软件,其采用了GPL授权条款,任何人都可免费取得该软件。...
[转] Linux Ext3文件系统超级块损坏后的修复
Linux Ext3文件系统超级块损坏后的修复在mount 文件系统时,有时会遇到如下的情况:mount: wrong fs type, bad option, bad superblock on /dev/sdc, or too many mounted file systems比如:(以下摘自:http://...
red hat as 4 启动报错:checking filesystems fsck.ext3: bad magic number ...
red hat as 4 启动报错:checking filesystems fsck.ext3: bad magic number in super-block while trying to open /dev/sdc报错原因: red hat as4中的fstab中写错导致sdc1不能mount首先说明系统环境:vmware...
secureCRT显示乱码解决方法
昨天做试验的时候,在客户端使用secureCRT连上red hat服务器,在secureCRT中,汉字显示乱码,经过google.com,http://huaaqingchen.blog.sohu.com/108008537.html ,采用此链接的方法解决了.感谢此博客的作者.原文摘抄如...