是定系 ?
Archive for November, 2007
数据库的索引
By admin in By-Talk记录一下,
老大说
数据库的压力 ,同样的一套程序在不同的压力下索引的建立是很讲究的.具体是怎么样的!有待研究!
[libphp5.la] Error 1 PHP5 奇怪的错误
By admin in By-Talk下午重新编译PHP5的时候使用的是原来的源码包,编译的过程 MAKE的时候出错
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
解决办法
重新下一个包
重新编译
崩溃+BT
Apache configure: error: Cannot use an external APR with the bundled APR-utilq 错误
By admin in Technicconfigure: error: Cannot use an external APR with the bundled APR-utilq错误解决
今天重新编译机器的时候遇到这种问题。网上翻了一下!解决方法如下
安装APR
进到apache的文件目录找一下!按照下面的过程编译
cd srclib/apr
./configure –prefix=/usr/local/apr
make
make install
安装APR-util
cd srclib/apr-util
./configure –prefix=/usr/local/apr-util –with-apr=/usr/local/apr
make
make install
完成上面两次编译后
重新编译APACHE的时候加上
–with-apr=/usr/local/apr
–with-apr-util=/usr/local/apr-util/bin
问题解决!呵呵!
Shell 脚本获取本地服务器IP
By admin in Technicdeclare -a ALL_IP;
ALL_IP=(`ifconfig -a | grep -E -o ‘inet (addr:)?[0-9]{1,3}(\.[0-9]{1,3}){3}’ | grep -E -o ‘[0-9\.]+’ |grep -E -o ‘[0-9\.]+’`);
for i in ${ALL_IP[@]}; do
if [[ ${i} =~ ^127 ]]; then
continue;
elif [[ ${i} =~ ^192 ]]; then
[...]