Pank: July 2014 Archives

Windows 64 bit 版本中的 registry 其實有分 32bit 及 64bit

C:\Windows\regedit.exe (To view/edit 32bit/64bit registry, 32bit in HKEY_LOCAL_MACHINE\Software\WOW6432Node)
C:\Windows\SysWOW64\regedit.exe (To view/edit 32bit registry)

ref. 如何使用 Windows 64 位元版本檢視系統登錄

PHP 5.2 Security Fix

user-pic
Vote 0 Votes

php52-backports
wget http://museum.php.net/php5/php-5.2.17.tar.bz2
tar jxf php-5.2.17.tar.bz2
cd php-5.2.17

# full trunk patch
wget http://php52-backports.googlecode.com/files/php52-backports-20130717.patch
patch -p1 < php52-backports-20130717.patch

# security branch patch
wget http://php52-backports.googlecode.com/files/php52-backports-security-20130717.patch
patch -p1 < php52-backports-security-20130717.patch

Mutt couldn't lock /sent

user-pic
Vote 0 Votes

比較新版的 Mutt 會有預設寄件備份的參數 in /etc/Muttrc
預設值 set record="~/sent"
若要取消這個功能, 參數設定 set record=no

SNMP sysUpTimeInstance limit

user-pic
Vote 0 Votes

sysUpTimeInstance 是 32bit 的 counter, 設備的開機時間是以 0.01 秒為單位,
能顯示最大的開機時間是 (2^32-1)/100=42949672.95 = 497 days 2:27:52.95
當設備開機超過這個時間, 32bit counter 就會 loop

替代的方式是抓 snmpEngineTime.0, 這是指 snmpEngine 的 uptime, 單位秒,
通常等同開機時間, 除非 SNMP 服務有被重啟

CentOS 7 Notes

user-pic
Vote 0 Votes

只有 x86_64 版

服務管理已改用 systemctl

/etc/rc.local 也變成 systemctl 控制, 名稱 rc-local.service, 執行條件是 /etc/rc.local 有執行權限 (預設無),
若要寫東西到 /etc/rc.local 記得要 chmod +x /etc/rc.local

已移除的套件
例如其中 vconfig 已移除, 需用 ip link 取代
CentOS6# vconfig add eth0 100
CentOS7# ip link add link eth0 name eth0.100 type vlan id 100

Google NTP Server

user-pic
Vote 0 Votes

time1.google.com
time2.google.com
time3.google.com
time4.google.com

About this Archive

This page is an archive of recent entries written by Pank in July 2014.

Pank: June 2014 is the previous archive.

Pank: August 2014 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives