Browsing the archives for the freebs tag

在FreeBSD下用NTP进行服务器的时钟同步

in 服务器类

使用Network Time Protocol (NTP)来同步服务器的时间的方法如下: 首先在服务器启动的时候需要使用ntpdate一次性的把系统时钟同步过来。在/etc/rc.conf里面加上ntpdate_enable="YES"就可以在系统启动的时候调用ntpdate进行一次时间同步了。 在rc.conf里面如果没有指定ntpdate_hosts参数的话,ntpdate就会读取/etc/ntp.conf文件里面的server设置。 使用ntpdate同步了时钟以后,还需要通过ntpd来不断监视和调整时钟的正确性。 启动ntpd的方法是在/etc/rc.conf里面加上ntpd_enable="YES"。 ntpdate和ntpd都需要读取/etc/ntp.conf里面的配置信息。最简单的ntp.conf配置文件如下: server 0.asia.pool.ntp.org server 1.asia.pool.ntp.org server 2.asia.pool.ntp.org server 3.asia.pool.ntp.org

0 Comments

Ubuntu/FreeBSD下Rsync同步镜像服务器配置教程

in js框架

主服务器:192.168.1.2 (Linux ubuntu 2.6.27-7-server) 从服务器:192.168.1.3 (FreeBSD 8.0-RELEASE-p2) ========== 1> 在两台主机上分别安装rsync ================ Ubuntu安装如下: roger#apt-get install rsync 正常情况很快就安装完毕,rsync 服务器架设比较简单,可我们安装好rsync后,并没有发现配置文件以及rsync服 务器启动程序,因为每个管理员可能对rsync 用途不一样,所以一般的发行版只是安装好软件就完事了,让管理员来根据自己的用途和方向来自己架设rsync服务器。

0 Comments