作者文章: Fenng

外部链接统计数据

不得不说,Google 的 Webmaster Tools 功能越来越强大了。参考车东的这篇网站的外链/内链统计:来自Google的网站管理员工具,也对 dbanotes.net 进行了一下简单分析。站外链接的前三十条如下:

  13975 www.openrss.net
10829 cang.baidu.com
10586 www.itpub.net
3935 www.wangtam.com
3655 blog.csdn.net
1748 blog.94smart.com
1639 blog.donews.com
1540 www.08show.com
1283 www.shunz.net
1281 www.kuangfeng.cn
1095 www.hecaitou.com
1080 blog.xfocus.net
1008 yangtingkun.itpub.net
988 reader.solarvistas.net
985 www.cnblogs.com
957 del.icio.us
922 kakaryan.webcan.cn
900 www.365key.com
789 www.chedong.com
639 zhanbin.com
606 www.feedshow.com
584 in.comengo.net
567 www.i170.com
565 www.ithack.net
525 www.lifebang.com
505 wulujia.com
481 pengjiayou.com
468 www.anysql.net
461 www.megite.com
389 www.builder.com.cn

OpenRSS.net 是我利用 Gragarius 软件搭建的在线 RSS 阅读工具。而来自”百度搜藏”的数量超出想象,而英文书签站点总体数量也不及百度的一半。有的站点(象solarvistas)居然第一次才知道。ITpub 是我常去的一个论坛,链接多应该是因为我做了签名档的缘故。
参考命令:

awk -F , '{print $2}' Links_external_www.dbanotes.net-_20070422T035406Z.csv \ 
|awk -F "/" '{print "<a href=http://"$3">"$3"</a>"}'\
|sort|uniq -c|sort -rn |head -n 30

(为图方便,直接用车东的命令,稍加修改了一下,其实还可以写的更简洁一些。
网站地址的外部链接统计前三十条:

https://www.dbanotes.net/ 51058
https://www.dbanotes.net/sitelog/how_to_subscribe_dbanotes_blog.html 5402
https://www.dbanotes.net/blog/ 2742
https://www.dbanotes.net/cats/ 596
https://www.dbanotes.net/cats/index.rdf 430
https://www.dbanotes.net/database/craigslist_database_arch.html 391
https://www.dbanotes.net/web/flickr_web_tech.html 320
https://www.dbanotes.net/sitelog/dbanotes_mt_templates.html 229
https://www.dbanotes.net/database/ebay_storage.html 220
https://www.dbanotes.net/review/dreamhost_really_sucks.html 212
https://www.dbanotes.net/Oracle/Install-Oracle10g-RHEL3.htm 203
https://www.dbanotes.net/web/technorati_db_arch.html 195
https://www.dbanotes.net/Oracle/Use_OpenSourceTool_implement_YourOwn_TPC-C.htm 177
https://www.dbanotes.net/review/google_china_daohang_and_others.html 174
https://www.dbanotes.net/Oracle/Use-SQLPlus-to-Create-HTML.htm 169
https://www.dbanotes.net/web/suggestion_to_web_20.html 164
https://www.dbanotes.net/review/review_words_20070316.html 162
https://www.dbanotes.net/review/second_life.html 157
https://www.dbanotes.net/techmemo/reinstall_xp_memo.html 157
https://www.dbanotes.net/database/dst_daylight_saving_time_oracle.html 154
https://www.dbanotes.net/review/blogger_make_money_and_blog_network.html 152
https://www.dbanotes.net/Oracle/10G-Beta-Install-Bug.htm 151
https://www.dbanotes.net/sitelog/dreamhost_outage_again_and_again.html 151
https://www.dbanotes.net/sitelog/movable_type_rss_comments.html 146
https://www.dbanotes.net/review/livid_v2ex.html 140
https://www.dbanotes.net/sitelog/blog_stats_0701.html 138
https://www.dbanotes.net/archives/2005/01/nutch_aee.html 138
https://www.dbanotes.net/review/24_hours.html 135
https://www.dbanotes.net/review/autoroll_a_widget_about_blogroll.html 135

说明一下,Feed 地址少是因为 RSS 地址都转向到 FeedBurner 上了。第二条是关于如何订阅的,可能也因为我在论坛上做了签名档有关。关于一些网站架构的文章,虽然技术细节不多,可能因为这类话题更容易吸引眼球,链接还是不少的。
EOF

SAMHAIN –支持 AIX 的文件完整性校验系统

文件完整性校验是安全审计必不可少的一个流程。在不同操作系统的数据库服务器上部署 Tripwire 这样的工具是个麻烦事情(前提是使用非商业软件)。在 Linux 服务器上,我以前测试过 integrit ,参见 integrit – Tripwire 的替代品 。如果操作系统是 AIX , 那么 Samhain 可以作为一个替代方案。

在 AIX 5.3 上编译安装后,提示信息值得看看:

 samhain has been configured as follows:
System binaries: /usr/local/sbin
Configuration file: /etc/samhainrc
Manual pages: /usr/local/man
Data: /var/lib/samhain
PID file: /var/run/samhain.pid
Log file: /var/log/samhain_log
Base key: 812826721,276349012

You can use 'samhain-install.sh uninstall' for uninstalling
i.e. you might consider saving that script for future use

Use 'make install-boot' if you want samhain to start on system boot

make install-boot 可以作为启动 daemon 安装.

/etc/samhainrc 是配置文件,可以参考 Samhain 文档 进行配置。之后即可 运行 /usr/local/sbin/samhain -t init -p info 进行数据库初始化。-p 这个参数后面可以跟 warning, cri(critical) 等参数,打印不同级别的信息。Samhain 这个工具唯一让我感觉不好的地方就是文档说明比较晦涩。配置选项什么都还可以,命令行解释连个例子也不给,还需要摸索半天。

命令行说明:
samhain -t check #检查数据库
samhain -t update #更新数据库 -p info 可以看到相关信息

注意配置 /etc/samhainrc 的时候,默认可能是设定了程序作为 Daemon 启动,最好修改一下,否则运行几次,后台一堆 samhain daemon 在跑。

初始化--> 更新 --> 检查--> 列出变更信息

这应该是类似工具的统一使用思路。只是实现细节上略有差异。

现在在这一堆类似的软件中,号称支持 AIX 的就有 Tripwire 开源版本AIDE 等,但是安装编译几乎很难顺利的通过,网上也很少能够找到相关支持信息。对于这几个软件之间的差异,可以参考 Samhain 上的比较表格(注意有的信息可能比较旧了)

EOF

在 AMD64 机器 (RHEL 4) 上部署 Oracle 9i

这几天一直忙着折腾系统,抽空安装了好几台大大小小的服务器上的 Oracle,简单说说在 AMD 64 机器(RHEL 4) 上部署 Oracle 的注意事项。

首先, Werner Puschitz 的 Oracle 安装指导肯定是要看看的,特别注意其中要求的安装包,glibc-devel 包 32 位与 64 位都是需要的。查询语句如下:

rpm  --queryformat "%{NAME}-%{VERSION}.%{RELEASE} (%{ARCH})\n" -q make \
binutils \
gcc \
cpp \
glibc-devel \
glibc-headers \
glibc-kernheaders \
compat-db \
compat-gcc \
compat-gcc-c++ \
compat-libstdc++ \
compat-libstdc++-devel \
gnome-libs \
openmotif21 \
setarch 

第二个必需要注意的地方是 gcc 工具的处理,与 32 位操作系统略有不同:

mv /usr/bin/gcc /usr/bin/gcc.orig
mv /usr/bin/g++ /usr/bin/g++.orig
ln -s /usr/bin/x86_64-redhat-linux-gcc32 /usr/bin/gcc
ln -s /usr/bin/x86_64-redhat-linux-g++32 /usr/bin/g++

$LD_ASSUME_KERNEL 环境变量要设定:

export LD_ASSUME_KERNEL = 2.4.19

这个变量如果不设定的话,安装的画面会一直 Hang 在那里。

有的兼容软件可以在 Oracle Compatibility 项目主页上下载,compat-libcwait 与 compat-oracle 这 2 个包是必须的。

Oracle 的安装还是一如既往的麻烦,考虑到每台机器还要打 Patchset,然后是一堆过渡性补丁,绝对是体力活。

EOF