Feeds:
日志
评论

Archive for 2011年11月3日

虚拟机(比如VMWare)的系统时钟会比正常时钟跑得快, 需要同步成标准时间, 否则有些要检查timeout的函数不能正常工作, 比如检查cookie, session是否失效.   实时同步系统时间的做法如下: 1.  sudo vi /etc/crontab 2.  添加下面加粗的行, 成为一个每分钟执行的cron job. # run-parts 01 * * * * root run-parts /etc/cron.hourly 02 4 * * * root run-parts /etc/cron.daily 22 4 * * 0 root run-parts /etc/cron.weekly 42 4 1 * * root run-parts /etc/cron.monthly *  * * * * root [...]

Read Full Post »

加关注

Get every new post delivered to your Inbox.