
linux
文章平均质量分 61
loryliu
这个作者很懒,什么都没留下…
展开
-
在linux上安装oracle时的limit设定
oracle 10g database在linux安装时,设定oracle用户limit时:为何在pam模组里面添加了limit限制然后又要在login shell里面修改呢,这样相互的设定会被影响。经过测试login shell的设定会覆盖pam模组的设定To increase the shell limits:1. Add the following lines to the /etc/sec原创 2015-05-28 11:12:46 · 2567 阅读 · 0 评论 -
Linux HugePages
Linux HugePages* What you may already know: - Larger (usually 2M depending on architecture) memory page size - Processes share page table entries, less kernel page table management overhead, les转载 2015-07-19 16:40:16 · 1591 阅读 · 0 评论 -
使用 lsof 查找打开的文件
使用 lsof 查找打开的文件通过查看打开的文件,了解更多关于系统的信息。了解应用程序打开了哪些文件或者哪个应用程序打开了特定的文件,作为系统管理员,这将使得您能够作出更好的决策。例如,您不应该卸载具有打开文件的文件系统。使用lsof,您可以检查打开的文件,并根据需要在卸载之前中止相应的进程。同样地,如果您发现了一个未知的文件,那么可以找出到底是哪个应用程序打开了这个文件。转载 2015-07-19 22:08:12 · 410 阅读 · 0 评论 -
vmstat 中swpd的意义
查看man page里面解.释swpd:the amount of virtual memory used.[oracle@sdb2 ~]$ vmstatprocs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------ r b swpd free buff ca原创 2015-07-20 22:24:53 · 3775 阅读 · 0 评论 -
linux特殊符号大全
在shell中常用的特殊符号罗列如下:# ; ;; . , / \ 'string'| ! $ ${} $? $$ $* "string"* ** ? : ^ $# $@ `command`{} [] [[]] () (()) ||转载 2014-05-14 21:33:52 · 672 阅读 · 0 评论 -
Monitoring Storage Devices with iostat
Monitoring Storage Devices with iostatJeff LaytonIf you are a system administrator of many systems, or even of just a desktop or laptop, you are likely monitoring your system in some转载 2015-10-27 13:05:30 · 491 阅读 · 0 评论 -
Understanding Linux /proc/cpuinfo
A hyperthreaded processor has the same number of function units as an older, non-hyperthreaded processor. It just has two execution contexts, so it can maybe achieve better function unit utilization b转载 2015-10-28 12:57:40 · 282 阅读 · 0 评论 -
vmstat 命令
第一个要使用的工具是 vmstat 命令,该命令可迅速提供关于各种系统资源和与之相关的性能问题的简要信息。vmstat 命令报告关于内核线程的统计信息,包括处于运行和等待队列中的、内存中的、页面调度中的、磁盘中的、中断、系统调用、上下文切换和 CPU 活动的内核线程。所报告的 CPU 活动是用户方式、系统方式、空闲时间和等待磁盘 I/O 的百分比细目分类。注: 如果在没有任何时间间隔的转载 2015-10-28 14:32:36 · 371 阅读 · 0 评论 -
配置ssh agent远程登录不用输入密码
两台机器:SDB1 和SDB2均使用帐号oracle远程登录对方,现在需要配置无需密码远程登录。1 创建.ssh文件夹在 home directory创建.ssh文件夹[oracle@sdb2 ~]$ mkdir .ssh[oracle@sdb2 ~]$ chmod 700 .ssh2 生成密钥两种密钥rsa及dsa[oracle@sdb2 ~]$ ss原创 2015-08-07 15:20:26 · 756 阅读 · 0 评论 -
在linux下disable 网卡
disable eth0 网卡ifconfig eth0 downenable eth0 网卡ifconfig eth0 up以下可以查看网卡连接的状态及速度 [root@sdb1 ~]# ethtool eth0Settings for eth0: Supported ports: [ TP ] Supported link modes原创 2015-07-13 16:14:32 · 4314 阅读 · 0 评论 -
ASM Instance 加载oracleasm lib创建disk时出现OS Hang现象
oracle db/asm:10.2.0.5os: oracle linux 5.8现象:使用oracleasm 创建了disk ,ASM Instance使用该disk创建diskgouo。刚开始还可以正常运行。之后由于其他操作,删除了其中几个disk的分区,如下:原创 2015-06-14 09:19:54 · 519 阅读 · 0 评论 -
使用cluvfy检查共享存储报错
版本信息:linux :oracle linux 5.8oracle:10.2.0.5nodes: sdb1, sdb2问题描述:1 在sdb2及sdb1上使用以下命令检查共享存储;2 在此之前已经配置好ssh无密码登陆:3 -在sdb1上使用ssh sdb2 date,在sdb2上使用ssh sdb1 date,命令都成功。 在sdb1上使用如下命令显示检查共享原创 2015-06-18 11:31:03 · 983 阅读 · 0 评论 -
Using Raw Devices for Oracle Databases
Redhat 513.3. Using Raw Devices for Oracle DatabasesThe rawdevices service can only initialize devices named according to the/dev/raw/rawN format. However, devices in this location do no转载 2015-06-23 21:59:17 · 620 阅读 · 0 评论 -
设定Linux OEL 5.8时间NTP server同步
Linux OEL 5.8 [root@sdb2 cron]# crontab -e按i开始编辑(如果不按i,即时保存了,文档也没有生效)*/5* * * * /sbin/ntpdate 10.128.7.101以上是设定每5分钟与NTPserver同步一次保存退出后,查看是否生效:crontab -l也可以在 /var/spool/cron下可以看到生原创 2015-06-24 16:46:48 · 822 阅读 · 0 评论 -
rlwrap for Command Line History and Editing in SQL*Plus and RMAN on Linux
此软件依赖readline的rpm,此rpm在redhat 安装介质里面The rlwrap (readline wrapper) utility provides a command history and editing of keyboard input for any other command. This is a really handy addition to SQL*Plu转载 2015-06-06 09:08:19 · 483 阅读 · 0 评论 -
Major and Minor Numbers
One of the basic features of the Linux kernel is that it abstracts the handling of devices.All hardware devices look like regular files; they can be opened, closed, readandwritten using the same, stan转载 2015-06-07 10:49:29 · 599 阅读 · 0 评论 -
Find Linux WWID’s and Fiber Channel Storage
Enterprise Linux the very term usually refers to some type of storage area network normally fiber channel. In all my experience I have not yet met a storage administrator who went to formal storage转载 2015-06-07 22:17:24 · 1138 阅读 · 0 评论 -
How to retrieve and change partition's UUID Universally Unique Identifier on linux
How to retrieve and change partition's UUID Universally Unique Identifier on linuxContents[Hide]blkid/dev/disk/by-uuid//dev/.udev/db/udevadmudevinfovol_idhwinfoChange UUIDOn转载 2015-06-07 22:18:53 · 782 阅读 · 0 评论 -
Using an ssh-agent, or how to type your ssh password once, safely.
If you work a lot on linux and use ssh often, you quicklyrealize that typing your password every time you connect to a remotehost gets annoying.Not only that, it is not the best solution in terms of转载 2015-06-11 22:50:57 · 1078 阅读 · 0 评论 -
如何得到linux的pagesize
这里不是指hugepage的pagesizeA. Most modern operating systems have their main memory divided into pages. It allows better utilization of memory. A page is a fixed length block of main memory, that is con转载 2015-11-22 10:50:20 · 4566 阅读 · 0 评论 -
虚拟机中为何使用scsi_id无法查到磁盘的unid
There is no link in /dev/disk/by-id for SCSI (sdx) devices.The OS is running as a host on VMWare ESXResolutionBy default VMWare doesn't provide information needed by udev to generate /dev/di原创 2015-11-18 21:12:24 · 5727 阅读 · 0 评论 -
linux特殊符号大全
linux特殊符号大全在shell中常用的特殊符号罗列如下:# ; ;; . , / \ 'string'| ! $ ${} $? $$ $* "string"* ** ? : ^ $# $@ `command`{} [] [[]]转载 2016-09-05 14:49:44 · 2740 阅读 · 0 评论 -
如何查看Linux是32位还是64位
查看linux机器是32位还是64位的方法: file /sbin/init 或者 file /bin/ls /sbin/init: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped转载 2016-08-26 13:45:47 · 410 阅读 · 0 评论 -
如何使用rpm查询安装包的架构
A. Almost each rpm package has i386 or x86_64 added to file extension. However some time you may see filename such as file-version.rpm. You can list all installed rpm packages with rpm -qa command b转载 2016-04-04 17:36:23 · 1885 阅读 · 0 评论 -
Linux Find 命令精通指南
http://www.oracle.com/technetwork/cn/topics/calish-find-096463-zhs.html 简单介绍这一无处不在的命令的强大的方面以及混乱的方面。2008 年 7 月发布Linux find 命令是所有 Linux 命令中最有用的一个,同时也是最混乱的一个。它很转载 2017-02-17 08:57:41 · 454 阅读 · 0 评论 -
linux less命令简介
less命令可以对文件或其它输出进行分页显示,与moe命令相似,但是比more命令要强大许多。在 less 中导航命令类似于 vi,如下:1 搜索当使用命令 less file-name 打开一个文件后,可以使用下面的方式在文件中搜索。搜索时整个文本中匹配的部分会被高亮显示。1) 向前搜索/ : 使用一个模式进行搜索,并定位到下一个匹配的文本n : 向前查找下一个匹配的文本转载 2017-02-26 10:59:29 · 415 阅读 · 0 评论 -
如何查看所有分区的文件系统类型?
file -s /dev/sdb1parted /dev/sdb1转载 2017-08-11 13:41:01 · 1966 阅读 · 0 评论 -
IBM developerWorks 上 《Linux环境进程间通信》系列文章链接
分类:linux文件系统(61) 作者同类文章X1. 深刻理解 Linux 进程间通信(IPC)http://www.ibm.com/developerworks/cn/linux/l-ipc/index.html2. Linux 环境进程间通信(一): 管道及有名管道http://www.ibm.com转载 2017-09-22 10:27:50 · 626 阅读 · 0 评论 -
使用du统计文件夹大小Tip
当发现某个分区满了时,此时会去看哪个文件夹占用的容量比较大。使用du -hs * 统计当前文件夹下子文件夹大小[root@sdb5-11g ~]# du -hs *8.0K anaconda-ks.cfg44K install.log8.0K install.log.syslog8.0K '\tmp\1.txt'[root@sdb5-11g原创 2016-07-11 14:42:31 · 587 阅读 · 0 评论 -
Linux 命令less 技巧 从文件底部往上看
Linux 命令less 技巧 从文件底部往上看对于一些很大的log文件,我们用more查看时会很费劲,没有办法直接跳到末尾再向前查看。 我们可以用less来解决,less查看一个文件时,可以使用类似vi的command命令,在command模式下按G跳到文件末尾,再使用f或B来翻页less filename :G 跳到底部,就可以用 向上 向下 箭头 或 向滚动鼠标来转载 2016-06-06 21:49:10 · 21502 阅读 · 1 评论 -
Linux 技巧:让进程在后台可靠运行的几种方法
我们经常会碰到这样的问题,用 telnet/ssh 登录了远程的 Linux 服务器,运行了一些耗时较长的任务, 结果却由于网络的不稳定导致任务中途失败。如何让命令提交后不受本地关闭终端窗口/网络断开连接的干扰呢?下面举了一些例子, 您可以针对不同的场景选择不同的方式来处理这个问题。nohup/setsid/&场景:如果只是临时有一个命令需要长时间运行,什么方法能最简便的保转载 2016-03-31 16:45:39 · 411 阅读 · 0 评论 -
如何用rpm查看package的架构
You can query RPM database for architecture of installed packages. This command will list all installed packages and their architecture:rpm -qa --queryformat '%{NAME} %{ARCH}\n'So if you want to find转载 2015-11-19 22:18:58 · 887 阅读 · 0 评论 -
ephemeral port的意义(ip_local_port_range )
转自维基百科:Ephemeral portFrom Wikipedia, the free encyclopediaAn ephemeral port is a short-lived transport protocol port for Internet Protocol (IP) communications allocated automatic转载 2015-11-21 09:38:13 · 1704 阅读 · 0 评论 -
关于/dev/shm的文章
https://wiki.archlinux.org/index.php/Tmpfshttp://www.walkernews.net/2010/05/04/how-to-resize-devshm-filesystem-in-linux/http://www.xifenfei.com/page/142?dt_portfolio_category=projects-4转载 2015-11-26 21:25:03 · 588 阅读 · 0 评论 -
为什么用ls和du显示出来的文件大小有差别?
曾经有几次,我用ls和du查看一个文件的大小,发现二者显示出来的大小并不一致,例如:bl@d3:~/test/sparse_file$ ls -l fs.img-rw-r--r-- 1 bl bl 1073741824 2012-02-17 05:09 fs.imgbl@d3:~/test/sparse_file$ du -sh fs.img0 fs.img转载 2014-05-08 21:10:15 · 5733 阅读 · 0 评论 -
Using Process Memory Matrix script for understanding Oracle process memory usage
This tool currently works only on Solaris. I will write support for (newer) Linux versions soon and possibly also for HP-UX.When working on a problem I wrote a script which helps to present the ou转载 2015-11-29 16:16:51 · 450 阅读 · 0 评论 -
Finding open files with lsof
http://www.ibm.com/developerworks/aix/library/au-lsof.htmlLearn more about your system by seeing which files are open. Knowing which files an application has open, or which application转载 2015-12-02 22:05:38 · 663 阅读 · 0 评论 -
How to use the Linux top command
http://alvinalexander.com/linux/unix-linux-top-command-cpu-memoryHow to use the Linux top commandBy Alvin Alexander. Last updated: Feb 14, 2014Linux processes FAQ: Is there a utili转载 2015-12-05 08:58:36 · 506 阅读 · 0 评论 -
10 Useful Sar (Sysstat) Examples for UNIX / Linux Performance Monitoring
10 Useful Sar (Sysstat) Examples for UNIX / Linux Performance Monitoringby RAMESH NATARAJAN on MARCH 29, 2011Using sar you can monitor performance of various Linux subsystems转载 2016-03-06 16:40:02 · 849 阅读 · 0 评论 -
(转)tar 解压.zip文件报错解决一例: gzip: stdin has more than one entry--rest ignored
1 tar -vxtf adtxxxx.zip结果报错提示gzip: stdin has more than one entry--rest ignoredtar: Child returned status 2tar: Error is not recoverable: exiting now百思不得其解,还以为自己半瓶子用错了,搜了几个其他配合的参数也不管用。最后终于发...转载 2019-02-14 20:18:54 · 3014 阅读 · 0 评论