目前分類:Linux筆記 (11)
- Apr 28 Thu 2011 12:59
linux 更改 hostname
- Apr 08 Fri 2011 16:18
CentOS 5.5 Oracle 安裝
http://www.oracle-base.com/articles/10g/OracleDB10gR2InstallationOnRHEL5.php
http://blog.csdn.net/xujunjie/archive/2010/07/24/5758402.aspx
http://onaxer.com/blog/blog/2010/08/25/oracle-10g-r2-installtion-on-centos-5-5rhel/
http://www.08.la/news2010/newshtml/JiShuWenZhang/ORACLE/18758.html
http://space.itpub.net/12778571/viewspace-165720
http://blog.csdn.net/xujunjie/archive/2010/07/24/5758402.aspx
http://onaxer.com/blog/blog/2010/08/25/oracle-10g-r2-installtion-on-centos-5-5rhel/
http://www.08.la/news2010/newshtml/JiShuWenZhang/ORACLE/18758.html
http://space.itpub.net/12778571/viewspace-165720
- Mar 24 Thu 2011 11:21
Linux 效能分析
iostat
[root@hqu-mysql ~]# iostat -x
Linux 2.6.9-89.0.15.ELsmp (hqu-mysql) 2009年11月25日
avg-cpu: %user %nice %sys %iowait %idle
7.95 0.00 5.96 1.24 84.85
[root@hqu-mysql ~]# iostat -x
Linux 2.6.9-89.0.15.ELsmp (hqu-mysql) 2009年11月25日
avg-cpu: %user %nice %sys %iowait %idle
7.95 0.00 5.96 1.24 84.85
- Mar 15 Tue 2011 09:45
Linux DMA 關閉
當Linux 出現
Mar 15 05:52:23 kernel: ide-cd: cmd 0x3 timed out
Mar 15 05:52:23 qwfnhrep02 kernel: hda: irq timeout: status=0xd0 { Busy }
Mar 15 05:52:23 qwfnhrep02 kernel: hda: irq timeout: error=0x00
Mar 15 05:52:24 qwfnhrep02 kernel: hda: ATAPI reset complete
Mar 15 05:52:23 kernel: ide-cd: cmd 0x3 timed out
Mar 15 05:52:23 qwfnhrep02 kernel: hda: irq timeout: status=0xd0 { Busy }
Mar 15 05:52:23 qwfnhrep02 kernel: hda: irq timeout: error=0x00
Mar 15 05:52:24 qwfnhrep02 kernel: hda: ATAPI reset complete
- Mar 11 Fri 2011 16:08
將messages log 裡的snmp log 切出來
messages log 被 大量的 snmp log Received SNMP packet(s) from UDP:佔滿
修改/etc/sysconfig/snmpd.options
新增OPTIONS="-Lf /dev/null -p /var/run/snmpd.pid"
然後重新restart snmpd
修改/etc/sysconfig/snmpd.options
新增OPTIONS="-Lf /dev/null -p /var/run/snmpd.pid"
然後重新restart snmpd
- Mar 10 Thu 2011 16:27
Oracle CPU 100% debug 資料
- Mar 08 Tue 2011 10:37
sendmail : STARTTLS: read error=generic SSL error (0)
sendmail 出現下列訊息,並一直重覆出現 STARTTLS: read error=generic SSL error (0)
Mar 7 13:52:09 QWFNHMAIL01 sendmail[17353]: STARTTLS: write error=syscall error (-1)
Mar 7 13:52:09 QWFNHMAIL01 sendmail[17353]: STARTTLS: write error=generic SSL error (-1)
Mar 7 13:52:09 QWFNHMAIL01 sendmail[17353]: p275hbkf017322: SYSERR(root): putbody: write error: Input/output error
Mar 7 13:52:09 QWFNHMAIL01 sendmail[17353]: STARTTLS: write error=syscall error (-1)
Mar 7 13:52:09 QWFNHMAIL01 sendmail[17353]: STARTTLS: write error=generic SSL error (-1)
Mar 7 13:52:09 QWFNHMAIL01 sendmail[17353]: p275hbkf017322: SYSERR(root): putbody: write error: Input/output error
- Jan 06 Thu 2011 10:57
IPv6 位址表示
IPv4與IPv6的差別
IPv4 | IPv6 | |
表示方法 | IPv4使用10進位,用「.」隔開 | IPv6 使用 16 進位數字和「:」分隔 |
書寫方式 | 完全表示 | 數字前的0可用:簡化,唯只可簡化1次.(為了位址的正確判別) |
http協定的網址輸入 | http://IP | http://[IP] |
傳輸表頭(Header Length) | 20byte-60bytes不等 | 固定為40bytes |
IP數量 | IPv4有四個class,亦即4組,1組有2個16進位數字,共有2的32次方個ip位置 | IPv6使用8組數字,1組有4個16進位數字,共有2的128次方個IP位置(即128bits的長度,換算成十進位可以有39位數之多) |
在IP表示的"/"後面的數字 | 代表netmask | 代表prefix,即網路位址部份的表示(又分為global routing prefix與subnet ID),例如2001:288:4677:1234::1/64,前面的48個位元(2001:288:4677)就是global routing prefix,之後的16位元(1234)是subnet ID.而基本上全域的單一IP位址都是/64,可以說不會再有設錯netmask的問題了. (謎之聲:不過,其實還是會有/48之類的數字出現...Orz) |
本機位址(localhost address) | 127:0:0:1 | ::1 |
區網範圍(即私人定址IP) | 192.168.xxx.xxx/16、172.16.0.0/12、10.0.0.0/8 | 僅內部可用的範圍包括fe8x,fe9x,feax,febx,即fe8x::/10(目前只有fe80在用,例如fe80::224:73ff:fe02:f701)、類似10.0.0.0/8般私人定址意義的範圍是fecx,fedx,feex,fefx,即fecx::/10 |
代表全部的位址 | 0:0:0:0 | :: |
IPv4映射的IPv6地址 | ::ffff:a.b.c.d/96 | |
自動分配的位址 | 依DHCP動態給予 | 依機器MAC產生唯一位址 |
- Jan 06 Thu 2011 10:14
IPv6 DNS Server 設定
IPv6 DNS Server設定
設定方法如下:
1. 修改 named.conf,加入以下設定: |
- Jan 05 Wed 2011 17:52
IPv6 over IPv4
IPv6 隧道(tunnel)
並不是每個人都,可以玩到純 IPv6 的環境,比如在家中使用的 ADSL。不過,只有 IPv4 的網路環境,照樣可以玩 IPv6。解決之道,便是隧道(tunnel)。簡單地來說,所謂的隧道是把 IPv6 的封包,封裝在 IPv4 裡面,經 IPv4 的路由傳輸到對方,最後由對方的路由器解開封包,還原成 IPv6 的封包,藉此達到傳輸 IPv6 網路的目的。這種作法,和 VPN(虛擬私有網路)很像。
IPv6 在 IPv4 建立隧道的方法很多,比如 6in4、6to4、6over4、ISATAP、GRE、Teredo、OpenVPN 等等,除此之外,還有許多提供 Tunnel 服務的供應商,稱為 Tunnel Brokers,都可以協助我們突破現實網路環境的障礙, Teredo 這種隧道機制,它最大的好處是可以穿越 NAT,讓躲在 NAT/防火牆後面的主機,也能和 IPv6 的站台連接。
安裝方法很簡單:
yum install miredo |
- Jan 05 Wed 2011 17:32
Linux IPv6 設定