SSH Host key verification failed
Host key verification failed1. .ssh/known_hosts 裡面记录的目标主机 key 值不正确。这是最普遍的情况,只要删除对应的主机记录就能恢复正常。2. .ssh 目录或者 .ssh/known_hosts 对当前用户的chmod.html' target='_blank'>权限设置不正确。这种情况比较少,一般正确设置读写权限以后也能恢复正常。3. /dev/tty 对 other 用户没有放开读写权限。这种情况极为罕见。出现的现象是,只有 root 用户能够使用 ssh client,而所有其他的普通用户都会出现错误。我今天遇到的就是第三种情况,修改 /dev/tty 的权限后,一切正常。为了避免以后
linux 查看网络端口
key: linux 查看网络端口link:http://www.linuxdiyf.com/viewarticle.php?id=187139netstat -an 查看网络端口 lsof -i :port,使用lsof -i :port就能看见所指定端口运行的程序,同时还有当前连接。 nmap 端口扫描作者: freeice 发布日期: 2010-10-291)统计80端口连接数 netstat -nat|grep -i "80"|wc -l 1 2)统计httpd协议连接数 ps -ef|grep httpd|wc -l 1 3)、统计已连接上的,状态为“established' netstat -na|grep ESTABLISHED|wc -l 2 4)、查出哪个IP地址连接最多,将其封了. netstat -na|grep ESTABLISHED|awk '{print
nmon for linux
http://bluedata.org/2009/08/31/linux-nmon/http://nmon.sourceforge.net/pmwiki.php?n=Site.Download[@more@]
linux timezone 设置LINUX 时区
http://www.examda.com/linux/fudao/20110402/114135243.htmlhttp://c20031776.blog.163.com/blog/static/684716252008101011026123/[@more@]
VNC 配置
1, SERVER端安装,系统安装光盘上有。使用GNOME-SESSION:--change in server :vncpasswd , set the user password.-- close firewall ,$home_dir/.vnc/xstartup :uncomment following: unset SESSION_MANAGER exec /etc/X11/xinit/xinitrccomment : #twm &add this line: gnome-session &2,客户端VNCVIEWER版本号须与SERVER端一致,否则会报“the connection closed unexpectedly”错误。[@more@]
linux find command study
by default , find command use 512 byte as one size unit, and file size will round up to times of 512 bytes. See below and think .If you encounter trouble at default size unit, please use suffix "c" or "k" for exactly file size match.[oracle@tomy_4 test]$ find ./ -size 13c -ls133975 0 lrwxrwxrwx 1 oracle oinstall 13 Sep 5 2009 ./me3 -> /boot/message[oracle@tomy_4 test]$ find ./ -size 6c -ls133963 4 -rw-rw-rw- 1 oracle oinstall 6 Sep 5 2009
五年26个版本:Linux系统内核全程回顾-- performance test
五年26个版本:Linux系统内核全程回顾performance compare:http://news.mydrivers.com/1/178/178740_3.htm[@more@]
rlwrap sqlplus in linux
http://comtv.blog.51cto.com/17037/222889[@more@]
给Oracle BIGFILE表空间增加磁盘(通用的LINUX增加磁盘空间方案)
给Oracle BIGFILE表空间增加磁盘(通用的LINUX增加磁盘空间方案)文章分类:操作系统bigfile tablespace由于数据库采用了bigfile表空间,结果磁盘空间200GB用光了。 BIGFILE机制是没有办法加数据文件的,只有一个数据文件。 alter tablespace xxx add datafile '/ora_data/xxx_01.dbf' size 3000m autoextend on next 100M maxsize 10000M; 报: ORA-32771: cannot add file to bigfile tablespace; 解决涉及到的实际操作如下: 0.关闭数据库 1.创建物理卷 pvcreate /dev/sdk 2.加入卷组 vgextend data8vg /dev/sdk 3.把新空间加到逻辑卷中 l
用命令行提高UNIX工作效率大合集
用命令行提高UNIX工作效率大合集http://www.linuxgoo.com/html/unix/2008-12-25/246.html[@more@]
vi editor
Vi的3种运行模式 , sample command.http://linux.chinaunix.net/bbs/thread-1173682-1-1.html[@more@]
configure vnc server in linux
前言:作为一名DBA,在创建Oracle数据库的过程中一般要使用dbca和netca图像化进行建库和创建监听(如果使用脚本建库另说),如果您身体好估计可以在瑟瑟发抖的机房中完成数据库的创建过程,由于本人对寒冷比较敏感,又不想通过这样的方式锻炼身体,所以更愿意在舒适的房间内一边品味着咖啡的浓香,顺便度过相对枯燥的数据库安装和配置的过程,So,图形化操作工具是必不可少的,在Linux操作系统最流行的图形化操作软件莫过于VNC,俺本着总结、共享及提醒的目的完成了这个详细的小文儿,希望大家喜欢。 [@more@]1.确认VNC是否安装 默认情况下
rhel4 xmanager settings
Xmanager连接RHEL4的Linux端配置个人总结:对于GNOME,从第4步开始就行了,主要设置参数有3个。第4步前面是针对KDE的,一般用不到。/etc/X11/gdm/gdm.confEnable=true #DisplaysPerHost=2 #动态注册两个SESSION。Port=177[@more@]简单介绍Xmanager等工具连接Red Hat Enterprise Linux V4之前需要在Linux上做的配置。1、/etc/inittab文件的修改此文件中有两处需要确认一是确认默认的运行级别为5,即文件开头处有一行id:5:initdefault二是运行gdm,一般在文件最后处有:# Run xdm in runlevel 5x:5:respawn:/etc/X11/prefdm -nodaemon把最
configure ssh service in linux :
1, make sure the sshd service is installed on system.service sshd status2, create public/private key pairs:ssh-keygen # answer with default value.3, now private and public key pairs are created as OpenSSH format.if we use other client tool not ssh program (such as secureCRT,PUTTY)We must first have a clear concept about the public key format.In fact, Linux use OpenSSH format ,however Others (windows remote client tools)use SECSH file format. So if we want use other tool connect to Linux SSHD ser
use sed to replace text
# first declaration : the follow signs "()" should be prefixed by back-slash,but the blog doesn't support back-slash render . So here the command you see is just with a little flaw.[root@ibm-baoyuan jok]# sed -n '/MOBILE(.*)/p' emp46012 DULANEY EVAN MOBILE AL46013 DURHAM JEFF MOBILE AL46015 STEEN BILL MOBILE AL46017 FELDMAN EVAN MOBILE AL[root@ibm-baoyuan jok]# sed -n 's/MOBILE(.*)/MOBILE K_999/p' emp46012 DULANEY EVAN MOBILE K_99946013 DURHAM JEFF MOBILE K_99946015 STEEN BILL MOBILE
workaround with install oracle database 10G on redhat ES5
1, cd into the install CD directory ,and locate the oracle install parameter file , such as :database/install/oraparam.ini2, find and change the follwing section , add your os version to the certified version List.original:[Certified Versions]Linux=redhat-3,SuSE-9,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2patched:[Certified Versions]Linux=redhat-3,SuSE-9,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2,redhat-53, run "./runInstaller " again . Good luck![@more@]But the cheat will failure
autoTelnet within Linux
1, auto Telnet in linux assumption:host : localhostuser/passwd : oracle/oraclerun the following command at bash shell environment, you will see an interesting automatic output . So we have the Linux's amazing experience.( sleep 2; echo "oracle" ; sleep 2 ; echo "oracle" ;sleep 2; echo "echo hello I'm oracle person."; sleep 2; echo "ls " ;sleep 2)|telnet localhost2, use xargs , process only ONE parameter each time:As we all knows, xargs could convert the