星期一, 三月 27, 2006

Config my server

All kid's tricks...

Today, I installed Ubuntu 5.10 on my PC, and meanwhile removed Red Hat Linux 9 which had been settling on my PC for about two years. Also set up a Apache web server, and successfully added a cron job that synchronize my dynamic IP with this domain - yass.3322.org every 5 minutes, so now you should be able to visit the web page at my yass, well, actually nothing there now... :)

With this server, I will be playing a lot of games, you know what game means.

Final words, APT (the Advanced Packaging Tool) is damn good! RPM sucks...

(Note: I'm only running an experimental server, no always online guarantee)

1 Comments:

Blogger hanru said...

What a stupid mistake...

原以为设置的 cron 是每五分钟执行一次的,可后来发现间隔的时间要长得多,仔细想了想,原来如此:

我设置的 cron entry 是

5 * * * * [do a job]

真正的意思是:当时钟的分钟数到达5时执行,也就是说,每小时才执行一次,如果想要达到5分钟执行一次的效果,最直接的方法是添加12条类似的 entry

0 * * * * [do a job]
5 * * * * [do the same job as above]
10 * * * * [do the same job as above]
...
55 * * * * [do the same job as above]

或者用 RegExp 把12条语句压缩到一条里面?

Mmm... 一小时更新一次也好,用户名密码以明文方式传输,传输的次数越多危险系数越高……

星期五 三月 31, 08:42:00 下午  

发表评论

Links to this post:

创建链接

<< Home