[zhuan]linux限制IP访问ssh
http://blog.donews.com/cailiwen/archive/2007/11/27/1232048.aspx转帖:在/etc/hosts.allow输入 (其中192.168.10.88是你要允许登陆ssh的ip,或者是一个网段192.168.10.0/24) sshd:192.168.10.88:allow 在/etc/hosts.deny输入(表示除了上面允许的,其他的ip 都拒绝登陆ssh) sshd:ALL[@more@]
linux vnc登录不了的一个原因
linux vnc登录不了的一个原因:linux系统防火墙被打开了。[@more@]
【转】find -atime -ctime -mtime区别
find -atime -ctime -mtime区别 find -atime -ctime -mtime区别 access time , atime在读取文件或执行文件时会修改 create time , ctime在文件写入,更改所有者,权限。链接时文件的ctime会随之改变 modified time ,mtime 在文件写入时会改变。 ls -lu 或者 ls -l --time=atime 显示文件的atime ls -lc 或者 ls -l --time=ctime 显示文件的ctime ls -l 显示文件的mtime[@more@]
rhel 4 update4 的内核版本号
[oracle@standby bdump]$ uname -aLinux standby 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux[oracle@standby bdump]$ cat /etc/redhat-release Red Hat Enterprise Linux AS release 4 (Nahant Update 4)[@more@]
red hat enterprise linux(rhel) 3 、4、 5对应的asmlib包下载网址
red hat enterprise linux 3 、4、 5对应的asmlib包下载网址 http://www.oracle.com/us/solutions/midsize/rhel5-084877.html http://www.oracle.com/us/solutions/midsize/rhel4-092650.htmlhttp://www.oracle.com/us/solutions/midsize/rhel3-098888.html [@more@]
linux下查看网卡是千M或者是百M的命令
linux下查看网卡是千M或者是百M的命令-ethtool[@more@]
[转]解决系统CPU个数识别不正确的问题
http://blog.chinaunix.net/space.php?uid=2469966&do=blog&id=2595410感谢原作者解决系统CPU个数识别不正确的问题 (2010-04-19 17:09) 分类: LINUX系统管理 目前 服务器上配置的CPU是越来越多,并且,单个物理CPU中也包括了更多的核心。以Intel E5504为例,一个CPU就拥有4个核心,并发的速度得到明显的提高。其中,部分CPU还同时拥有超线程技术,这样,系统中识别出来的核心数量会更多。 要让系统正确的识别出所有可用的CPU核心,系统使用Linux kernel是个关键,例如使用smp或largesmp,打开kernel编译时的
red flag asianux server 3 sp3 x86_64bit的内核版本情况
[root@rac1 ~]# uname -r2.6.18-194.1.AXS3[root@rac1 ~]# uname -aLinux rac1 2.6.18-194.1.AXS3 #1 SMP Fri May 7 10:03:53 CST 2010 x86_64 x86_64 x86_64 GNU/Linux[root@rac1 ~]# cat /etc/issueAsianux Server 3 (Quartet SP3)Kernel r on an m[root@rac1 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.5 (Tikanga)[@more@]
red flag asianux server 3 sp3 x86_64bit的内核版本及其oracle rac支持情况
[root@rac1 ~]# uname -r2.6.18-194.1.AXS3[root@rac1 ~]# uname -aLinux rac1 2.6.18-194.1.AXS3 #1 SMP Fri May 7 10:03:53 CST 2010 x86_64 x86_64 x86_64 GNU/Linux[root@rac1 ~]# cat /etc/issueAsianux Server 3 (Quartet SP3)Kernel r on an m[root@rac1 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.5 (Tikanga)注意:此内核版本2.6.18-194.1.AXS3 安装oracle rac的话,是不受oracle asmlib包支持的。也就是说,在oracle网站(http://www.oracle.com/us/solutions/midsize/rhel5-084877.html)上 ,是
【转】linux上创建本地yum源
1、把光盘放到光驱,挂载光驱: #mount /dev/hdc /mnt/cdrom 或者: # mount /dev/hdc /media/cdrom mount: block device /dev/hdc is write-protected, mounting read-only 如果本机有iso文件也可以将iso文件上传到服务器上,然后执行: # mount -o loop rhel-server-5.4-i386-dvd.iso /media/cdrom 2、设置yum源,在/etc/yum.repos.d目录下添加一个文件,文件的内容如下: # vi dvd.repo [dvd] name=install dvd baseurl=file:///media/cdrom/Server enabled=1 g
【转】各系统下查看cpu物理和逻辑个数
linux物理: cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l 逻辑: cat /proc/cpuinfo | grep "processor" | wc -l solaris10物理和逻辑: psrinfo -pv aix5 物理: smtctl | grep threads | wc -l prtconf | grep "Number Of Processors" | awk -F: '{print $2}' 逻辑: bindprocessor -q hpux11 物理: lsdev -C | grep Processes | wc -l echo runningprocs/D | adb -k /stand/vmunix /dev/mem freebsd6 物理:逻辑: dmesg | grep /SMP | awk -F: '{print $3}' | awk '{print $1
centos的 sosreport
centos的 sosreport 跟rhel的sysreport是一个作用,貌似sysreport -norpm 也能在centos里使用[@more@]
linux nfs实践
linux nfs实践以下是nfs服务器(需要共享出目录来的那个机器)上的操作修改/etc/exports,要将/home/work目录共享出来[root@rhel4u6 work]# cat /etc/exports /home/work 192.168.179.* (rw,sync,no_root_squash)[root@rhel4u6 home]# /etc/rc.d/init.d/portmap startStarting portmap: [ OK ][root@rhel4u6 home]# /etc/init.d/nfs startStarting NFS services: [ OK ]Starting NFS quotas: [ OK ]Starting NFS daemon: [ OK ]Starting NFS mountd: [ OK ] [root@rhel4u6 work]# exportfs exportfs: No host name given with /h
【转帖】locale的设定及其LANG、LC_ALL、LANGUAGE环境变量的区别
http://hi.baidu.com/edeed/blog/item/2e99a14440bd8884b2b7dcb1.html例如zh_CN.GB2312、zh_CN.GB18030或者zh_CN.UTF-8。很多人都不明白这些古里古怪的表达方式。这个外星表达式规定了什么东西呢?这个问题稍后详述,现在只需要知道,这是locale的表达方式就可以了。 locale这个单词中文翻译成地区或者地域,其实这个单词包含的意义要宽泛很多。Locale是根据计算机用户所使用的语言,所在国家或者地区,以及当地的文化传统所定义的一个软件运行时的语言环境。 [oracle@game ~]$ locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UT
su - grid 提示E297: Write error in swap file
E297: Write error in swap file原来是文件系统满了,df -h即可看到文件系统满了。[@more@]E297: Write error in swap file
How to Disable or set SELinux to Permissive mode [ID 457458.1]
Applies to: Linux OS - Version: Enterprise Linux 4.0 to Oracle Linux 5.0 - Release: RHEL4 to OL5Linux x86Linux x86-64 Linux Kernel - Version: 4.0 to 5.0 Goal How to fully disable SELinux (Security Enhanced Linux); or set it to "permissive" mode, in which case the SELinux software is loaded, but no enforcing is made of the rules, only logging is performed. Please note that disabling SELinux or setting to "permissive" mode may have some security considerations.
How to Check whether SELinux is Enabled or Disabled [ID 432988.1]
Applies to: Linux OS - Version: 4.0 to 5.3 - Release: RHEL4 to OEL5U3Linux x86Linux x86-64Linux Itanium ***Checked for relevance on 19-Jan-2011*** Linux Kernel - Version: 4.0 to 5.3 Goal From SELinux Frequently Asked Questions (FAQ):Security-enhanced Linux (SELinux) is a reference implementation of the Flask security architecture for flexible mandatory access control. It was created to demonstrate the value of flexible mandatory access controls and how such controls could be
rhel5.3修改主机名
[root@localhost ~]# hostname127.0.0.1 localhost.localdomain ::1 localhost6.localdomain6 localhost6localhost.localdomain[root@localhost ~]# hostname leitest[root@localhost ~]# vi /etc/sysconfig/networkNETWORKING=yesNETWORKING_IPV6=noHOSTNAME=leitest[root@localhost ~]# vi /etc/hosts127.0.0.1 localhost.localdomain ::1 localhost6.localdomain6 localhost6192.168.6.40 leitest[@more@]
在rhel3上安装oracle 9i 32bit or 64bit的需求
Requirements for Installing Oracle 9iR2 32-bit on RHEL3 [ID 252217.1]Requirements for Installing Oracle 9iR2 64-bit on RedHat 3 on x86_64 (AMD/EM64T) [ID 308588.1][@more@]
Master Note of Linux OS Requirements for Database Server [ID 851598.1]
Applies to: Oracle Server - Standard Edition - Version: 9.2.0.1 to 11.2.0.1 - Release: 9.2 to 11.2Oracle Server - Enterprise Edition - Version: 9.2.0.1 to 11.2.0.1 [Release: 9.2 to 11.2]Linux x86IBM: Linux on System zGeneric LinuxIBM: Linux on POWER SystemsLinux x86-64Linux Itanium Purpose This Master Note is intended to provide an index and references to the most frequently used My Oracle Support articles with respect to Linux OS Requirements for Oracle Database Software Installation.