這句話叫我茅塞頓開:
文件file是OS提供的一部分,很重要的一个东西,文件定义后,程序可以看到这个文件,并進行操作,数据库 是爲了方便组织资料的(信息,資訊)
所以數據庫是爲了一個組織的信息提供井然有序的服務而存在的,它的一切活動是爲了"方便"二字!
記錄一下!
Study NoteBook of Oracle, Security, PMP, Linux,☯...
這句話叫我茅塞頓開:
文件file是OS提供的一部分,很重要的一个东西,文件定义后,程序可以看到这个文件,并進行操作,数据库 是爲了方便组织资料的(信息,資訊)
所以數據庫是爲了一個組織的信息提供井然有序的服務而存在的,它的一切活動是爲了"方便"二字!
記錄一下!
一直不是太明白IPSec的工作模式,youTube上的一個視頻講解的很清楚
IPSec provides an automated solution for three areas:
. authentication
. integrity
. confidentiality
IPSec is application independent 這句話最重要
IPsec Tunnel Mode packet---Using IPsec with virtual priviate networking
(IP Header (IPSec Header (IP Header( TCP Header(Data)))))
參考 http://www.youtube.com/watch?v=DH1zI8QYi4A
從twitter上推友那裡找到的
http://oyc.yale.edu/courselist
課程可以下載,當然我正在下載,可惜我的英文還不行,而且心思目前還不能放在這個上面,這麼好的資源記錄一下.
見笑,最近學習python,用到numpy這個包,因為裏面有array, python building-in沒有這個容器,所以要從外面安裝,Mac OS的直接從
http://sourceforge.net/projects/numpy/files/NumPy/ 下載最新的安裝即可.
但是開發環境是CentOS,咋整呢?只能用源代碼編譯的方式,摸索了半天,裝上了,記錄一下,估計Python的第三方包都是這樣安裝的吧:
下載最新的tar包
wget –c http://sourceforge.net/projects/numpy/files/NumPy/1.3.0/numpy-1.3.0.tar.gz/download
tar xvfz numpy-1.3.0.tar.gz
[root@CRRACTEST2 software]# cd numpy-1.3.0
[root@CRRACTEST2 numpy-1.3.0]# ls
build doc MANIFEST.in README.txt setupscons.py
COMPATIBILITY INSTALL.txt numpy setupegg.py site.cfg.example
DEV_README.txt LICENSE.txt PKG-INFO setup.py THANKS.txt
[root@CRRACTEST2 numpy-1.3.0]#
安裝:
python ./setup.py build ##第一步是build
python ./setup.py install ##第二步是install
測試:
[root@CRRACTEST2 ~]# python
Python 2.6.2 (r262:71600, Aug 19 2009, 12:13:04)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from numpy import *
>>> vec = array([1,2])
>>> vec +2
array([3, 4])
>>> vec *3
array([3, 6])
>>>
可用了,繼續研究!
N多年前,因為改CVS server的ip, 但是文件中所有的ip地址都要改,當時google了半天沒有結果,這個事情一直記得,今天發現了一個腳本很簡單,
Shell批量修改文件内容
比如说,我想把网页文件里的foo都替换成bar,主要是利用sed的-i参数:
find /path -type f | grep -i -E '(htm|html)$' | xargs sed -i 's/foo/bar/g'
參考:http://hi.baidu.com/thinkinginlamp/blog/item/2297a7efb470541ffdfa3ca2.html
記錄一下,以備后查
All security controls should be built on the concept of preventive security .
所有的安全相關的控制都是建立在"預防,防止preventive”基礎上的
To take this concept further, what you can't prevent, you should be able to detect, and if you detect something, it means you weren't able to prevent it, and therefore you should take corrective action to make sure it is indeed prevented the next time around.
這個概念上延展一下,如果你不能預防該, 你應該能夠探測(detect)得到,如果你可以探測到什麽東西,就意味著你不能預防它,並且你應該對它有矯正(corrective)的行動,確保不會出現下一次
therefore, all three types work together: preventive ,detective and corrective.
因此,這三種類型的控制應該一起工作: 預防,探測和矯正.
生產環境的數據庫,經常不定期的重新啟動,OS系統報錯:
/var/log/message
…
Aug 10 14:14:28 oracle01 logger: Oracle clsomon failed with fatal status 13.
Aug 10 14:14:29 oracle01 logger: Oracle CRS failure. Rebooting for cluster integrity.
Aug 10 14:16:21 oracle01 syslogd 1.4.1: restart.
根據oracle文檔說明,懷疑是一個bug
http://download.oracle.com/docs/cd/B28359_01/relnotes.111/b32001/toc.htm
因為是生產環境,一直在等待時機,終於在上周更換了
1,将节点的crs stop
crsctl stop crs
2 更新glibc相关的包
[root@oracle02 glibc2.5-24]# rpm -qa |grep glibc
glibc-devel-2.5-18
glibc-devel-2.5-18
glibc-2.5-18
glibc-common-2.5-18
glibc-headers-2.5-18
compat-glibc-headers-2.3.4-2.26
compat-glibc-2.3.4-2.26
glibc-2.5-18
compat-glibc-2.3.4-2.26
[root@oracle02 glibc2.5-24]#
======
[root@oracle02 glibc2.5-24]# rpm -Uvh --force glibc*.rpm
warning: glibc-2.5-24.i686.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing... ########################################### [100%]
1:glibc-common ########################################### [ 14%]
2:glibc ########################################### [ 29%]
3:glibc warning: /etc/ld.so.conf created as /etc/ld.so.conf.rpmnew
warning: /etc/nsswitch.conf created as /etc/nsswitch.conf.rpmnew
########################################### [ 43%]
4:glibc-headers ########################################### [ 57%]
5:glibc-devel ########################################### [ 71%]
6:glibc-devel ########################################### [ 86%]
7:glibc-utils ########################################### [100%]
[root@oracle02 glibc2.5-24]#
[root@oracle02 glibc2.5-24]# rpm -qa |grep glibc
glibc-common-2.5-24
glibc-devel-2.5-24
compat-glibc-headers-2.3.4-2.26
glibc-2.5-24
glibc-utils-2.5-24
compat-glibc-2.3.4-2.26
glibc-headers-2.5-24
glibc-devel-2.5-24
compat-glibc-2.3.4-2.26
3, crsctl start crs
等运行稳定了之后,为了保险起见,reboot一下机器,等运行稳定了以后再更新另一个节点,步骤一样
記錄一下,itpub上的記錄:
http://www.itpub.net/viewthread.php?tid=1158148&pid=14116280&page=1&extra=#pid14116280