2007/02/13 08:51
今天看到yahoo发布了,顺便整理一下。
雅虎搜索06热搜排行榜 : http://top.cn.yahoo.com/2006/search.html
雅虎搜索06热搜排行榜 : http://top.cn.yahoo.com/2006/favorite.html
雅虎搜索06热搜排行榜 : http://top.cn.yahoo.com/2006/hotrank.html
2006百度搜索风云榜 : http://www.baidu.com/2006/
雅虎搜索06热搜排行榜 : http://top.cn.yahoo.com/2006/search.html
雅虎搜索06热搜排行榜 : http://top.cn.yahoo.com/2006/favorite.html
雅虎搜索06热搜排行榜 : http://top.cn.yahoo.com/2006/hotrank.html
2006百度搜索风云榜 : http://www.baidu.com/2006/
2007/02/06 15:15
去年底写了一篇完整的安装过程,今天照这过程装了一边,安装还算顺利。就是发现了以前写的一些错误及遗漏,在这里补上:
apache的配置文件中要加一句,保证php能解释:
AddType application/x-httpd-php .php
这次安装apache,采用worker模式:
./configure --prefix=/usr/local/apache2 --enable-modules=most --enable-rewrite --enable-so -with-mpm=worker
装完php后,php.ini无需修改。
apache的配置文件中要加一句,保证php能解释:
AddType application/x-httpd-php .php
这次安装apache,采用worker模式:
./configure --prefix=/usr/local/apache2 --enable-modules=most --enable-rewrite --enable-so -with-mpm=worker
装完php后,php.ini无需修改。
2007/02/06 13:16
一般是网站需要定时更新时会用到此功能。相比Windows需要通过计划任务或者第三方软件来实现,linux相比而言会方便很多。当然,一开始需要学习一下它的规则。
一种方法将需要执行的文件copy到其自带的目录中。
如cp shell.php /etc/cron.daily/
则shell.php每天都会运行一次。
cp shell.php /etc/cron.hourly/
每小时执行一次。
另一种:
直接用crontab命令编辑
cron服务提供crontab命令来设定cron服务的,以下是这个命令的一些参数与说明:
crontab -u //设定某个用户的cron服务,一般root用户在执行这个命令的时候需要此参数
crontab -l //列出某个用户cron服务的详细内容
crontab -r //删除没个用户的cron服务
crontab -e //编辑某个用户的cron服务
比如说root查看自己的cron设置:crontab -u root -l
再例如,root想删除fred的cron设置:crontab -u fred -r
在编辑cron服务时,编辑的内容有一些格式和约定,输入:crontab -u root -e
在编辑时,前面五个*号代表五个数字,数字的取值范围和含义如下:
分钟 (0-59) 小時 (0-23) 日期 (1-31) 月份 (1-12) 星期 (0-6)//0代表星期天
除了数字还有几个个特殊的符号就是"*"、"/"和"-"、",",*代表所有的取值范围内的数字,"/"代表每的意思,"*/5"表示每5个单位,"-"代表从某个数字到某个数字,","分开几个离散的数字。以下举几个例子说明问题:
每天早上6点
0 6 * * * echo "Good morning." >> /tmp/test.txt //注意单纯echo,从屏幕上看不到任何输出,因为cron把任何输出都email到root的信箱了。
*/5 * * * do something每隔5分钟执行一次
晚上11点到早上8点之间每两个小时,早上八点
0 23-7/2,8 * * * echo "Have a good dream:)" >> /tmp/test.txt
运行多条命令需要用;隔开
*/5 * * * cd /xxx/xxx;/usr/local/php5/bin/php /home/shel..php
或者你直接建立一个some.sh文件,文件里就两句。
cd /xxx/xxx
/usr/local/bin/php xxxx.php
然后crontab那边就是some.sh了
cron详细解说:http://www.itlearner.com/article/2006/3589.shtml
一种方法将需要执行的文件copy到其自带的目录中。
如cp shell.php /etc/cron.daily/
则shell.php每天都会运行一次。
cp shell.php /etc/cron.hourly/
每小时执行一次。
另一种:
直接用crontab命令编辑
cron服务提供crontab命令来设定cron服务的,以下是这个命令的一些参数与说明:
crontab -u //设定某个用户的cron服务,一般root用户在执行这个命令的时候需要此参数
crontab -l //列出某个用户cron服务的详细内容
crontab -r //删除没个用户的cron服务
crontab -e //编辑某个用户的cron服务
比如说root查看自己的cron设置:crontab -u root -l
再例如,root想删除fred的cron设置:crontab -u fred -r
在编辑cron服务时,编辑的内容有一些格式和约定,输入:crontab -u root -e
在编辑时,前面五个*号代表五个数字,数字的取值范围和含义如下:
分钟 (0-59) 小時 (0-23) 日期 (1-31) 月份 (1-12) 星期 (0-6)//0代表星期天
除了数字还有几个个特殊的符号就是"*"、"/"和"-"、",",*代表所有的取值范围内的数字,"/"代表每的意思,"*/5"表示每5个单位,"-"代表从某个数字到某个数字,","分开几个离散的数字。以下举几个例子说明问题:
每天早上6点
0 6 * * * echo "Good morning." >> /tmp/test.txt //注意单纯echo,从屏幕上看不到任何输出,因为cron把任何输出都email到root的信箱了。
*/5 * * * do something每隔5分钟执行一次
晚上11点到早上8点之间每两个小时,早上八点
0 23-7/2,8 * * * echo "Have a good dream:)" >> /tmp/test.txt
运行多条命令需要用;隔开
*/5 * * * cd /xxx/xxx;/usr/local/php5/bin/php /home/shel..php
或者你直接建立一个some.sh文件,文件里就两句。
cd /xxx/xxx
/usr/local/bin/php xxxx.php
然后crontab那边就是some.sh了
cron详细解说:http://www.itlearner.com/article/2006/3589.shtml
2007/02/05 20:04
1月1日在Baidu联盟里化了700积分兑换了"全自动筷子消毒器",1月21日处理,今天收到。物品是通过宅急送送过来的。包装盒上还贴了一个大大的Baidu图标。
全名是Farstar(菲尔斯达)全自动筷子消毒器XK228贴壁式。东西看来不错!
因为流量比较小,因此积分不多,只能换些小东西。换的时候有800多积分,就选了700积分的。
在淘宝和易趣搜索了下,最便宜的也要卖40元呢:)
全名是Farstar(菲尔斯达)全自动筷子消毒器XK228贴壁式。东西看来不错!
因为流量比较小,因此积分不多,只能换些小东西。换的时候有800多积分,就选了700积分的。
在淘宝和易趣搜索了下,最便宜的也要卖40元呢:)
2007/02/05 15:46
查看日志,发现太多的这条记录了:(
::1 - - [05/Feb/2007:16:05:27 +0800] "GET / HTTP/1.0" 200 263 "-" "Apache/2.2.3 (Unix) DAV/2 PHP/5.1.6 (internal dummy connection)"
搜索一下,应该是Apache2.2以上版本才有此问题。
It's defined in /server/mpm_common.c:
| This function connects to the server, then immediately closes the
| connection.
| This permits the MPM to skip the poll when there is only one listening
| socket, because it provides a alternate way to unblock an accept()
| when the pod is used.
pod=pipe of death.
| The pipe of death is used to tell all child processes that it is time
| to die gracefully.
So if you use the worker MPM which doesn't use a pod, there are no
internal dummy connections anymore.
--
Robert
来源:http://www.gossamer-threads.com/lists/apache/users/309026
查了近半个小时,终于找到解决方法。
原来是配置的时候,要采用-with-mpm=worker方式。
参考:Apache 2.0性能优化—MPM的选择与配置
::1 - - [05/Feb/2007:16:05:27 +0800] "GET / HTTP/1.0" 200 263 "-" "Apache/2.2.3 (Unix) DAV/2 PHP/5.1.6 (internal dummy connection)"
搜索一下,应该是Apache2.2以上版本才有此问题。
It's defined in /server/mpm_common.c:
| This function connects to the server, then immediately closes the
| connection.
| This permits the MPM to skip the poll when there is only one listening
| socket, because it provides a alternate way to unblock an accept()
| when the pod is used.
pod=pipe of death.
| The pipe of death is used to tell all child processes that it is time
| to die gracefully.
So if you use the worker MPM which doesn't use a pod, there are no
internal dummy connections anymore.
--
Robert
来源:http://www.gossamer-threads.com/lists/apache/users/309026
查了近半个小时,终于找到解决方法。
原来是配置的时候,要采用-with-mpm=worker方式。
参考:Apache 2.0性能优化—MPM的选择与配置







