ubuntu 12.04 server ntp同步

ubuntu和windows对计算机硬件保存的时间解释可能是不一样的。windows默认把硬件时间当做local time,而ubuntu把硬件时间当做UTC(Coordinated Universal Time 世界统一时间)。

ubuntu 默认开启UTC,不过可以关闭UTC,方法:sudo gedit /etc/default/rcS 把UTC=yes 修改成UTC=no 。这样ubuntu就可以把硬件时间当做local time 了。如果您的ubuntu

服务器时间已经不准确了,可以用以下方法同步一下。

1. 安装ntpdate工具

  sudo apt-get install ntpdate

2. 设置系统时间和网络时间同步

  sudo ntpdate clock.via.net

3. 将系统时间写入bios

  sudo hwclock --systohc

ubuntu 12.04 server ntp同步

时间: 2024-08-04 23:46:46

ubuntu 12.04 server ntp同步的相关文章

Ubuntu 12.04 Server OpenStack Havana多节点(OVS+GRE)安装

1.需求 节点角色 NICs 控制节点 eth0(10.10.10.51)eth1(192.168.100.51) 网络节点 eth0(10.10.10.52)eth1(10.20.20.52)eth2(192.168.100.52) 计算结点 eth0(10.10.10.53)eth1(10.20.20.53) 注意1:你总是可以使用dpkg -s <packagename>确认你是用的是Havana版本 注意2:这个是当前网络架构 2.控制节点 2.1.准备Ubuntu 安装好Ubuntu

Ubuntu 12.04 Server LTS下安装桌面及vncserver

亲测通过 1. 安装相关的包: apt-getupdate apt-get install ubuntu-desktop apt-getinstall vnc4server apt-get install x-window-system-core apt-get install gdm apt-get install gnome-panel 2. 设置vncserver Vncpasswd 以root身份chmod +x/etc/X11/xinit/xinitrc Vi /root/.vnc/x

U盘安装 Ubuntu 12.04 Server LTS

折腾了半天12.04 server版,遇到的问题,貌似难度比10.04大很多: 首先是低版本的ultraISO不支持12.04映像刻录,只显示出EFI, 所以只能下个高版本的9.5.5(UUI被证明是不可行的) 其次是按照10.04来做的话,Help->F6根本没有地方输入installcdrom-detect/try-usb=true.(找了好久,实在是找不到,网上没有找到的...好吧,其实就是没有) 经过各种折腾,在网上看到一个很有价值的文章,终于试成功了一个办法: 1. 用UltraISO

ubuntu 12.04 server 安装nginx

下载源码: wget http://nginx.org/download/nginx-1.6.1.tar.gz 解压,编译安装 ./configure ./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the module by using --without-http_rewrite_module option, or install the PCRE li

new ubuntu 12.04 server安装oracle11gr2

1.官方安装文档如下链接 http://www.techienote.com/tag/oracle-database-11g-r2-on-ubuntu-12-04 2.安装VNC服务,图形安装 请注意: 如果在安装中部分软件无法安装成功,说明软件源中缺包,先尝试使用命令#apt-get update更新软件源后尝试安装.如果还是不行,需要更换软件源.更换步骤: a)输入命令#cp /etc/apt/sources.list /etc/apt/sources.list_backup b)输入命令#

vmvare安装ubuntu 12.04 server及一些配置

电脑配置不行的,可以考虑不安装图形界面,以下是安装过程遇到几个问题及解决办法 环境:VMware 7.1.4.Ubuntu server 12.04 1.安装报错 "The 'grub-pc' package failed to install into /target/. Without the GRUB boot loader, the installed system will not boot." 解决办法:断网安装 2.配置上网 1)vmware设置NAT上网 2)sudo

如何在Ubuntu 12.04 Server 中安装图形用户界面

使用ubuntu server安装lamp主机非常的方便,只要在安装系统的步骤中选择就是了 .但是很多时候我需要在图形界面下管理主机更加方便.今天的教程就是教大家安装图形界面. 首先你需要确定你的源文件中 /etc/apt/sources.list 已经使用Universe和Multiverse库.然后使用下面的命令来进行更新源列表和安装图形桌面. sudo apt-get update sudo apt-get upgrade sudo apt-get install ubuntu-deskt

Ubuntu 12.04 Server中文下配置UTF-8中文/英文环境

#安装中文语言包 apt-get install language-pack-zh-hans locale-gen cd /etc/default cp locale locale.bak #中文 cat <<EOF >locale LANG="zh_CN.UTF-8" LANGUAGE="zh_CN:en" LC_CTYPE="zh_CN.UTF-8" EOF #重启Ubuntu Server reboot #----- #英

ubuntu 12.04 server编译安装nginx

tar -xvf zlib-1.2.8.tar.gz cd zlib-1.2.8 ./config make make install above is for zlib(refers http://zlib.net/ for zlib),and below is for pcre-devel apt-get install libpcre3 libpcre3-dev then, compile and install nginx(get the newest statable source c