NTP 升级1

2022-04-25 00:02:22 浏览数 (3)

安装

详细的安装方法可以参考 安装NTP

代码语言:javascript复制
./configure  
echo $?
make 
echo $?
make install 
echo $?

Tip: echo $? 用来确认上一步是否成功执行

注意:make install 可能会覆盖一些文件,所以这一步要非常小心,默认会生成在 /usr/local/bin

代码语言:javascript复制
Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.

It is not possible in a software distribution such as this to support every individual computer and operating system with a common executable, even with the same system but different versions and options. Therefore, it is necessary to configure, build and install for each system and version. In almost all cases, these procedures are completely automatic, The user types ./configure, make and install in that order and the autoconfigure system does the rest.

总之,安装成功后会多出以下文件

代码语言:javascript复制
[root@h101 ntp-4.2.8p4]# ll  /usr/local/bin/ntp*
-rwxr-xr-x 1 root root 2630962 Nov  9 19:53 /usr/local/bin/ntpd
-rwxr-xr-x 1 root root  413656 Nov  9 19:53 /usr/local/bin/ntpdate
-rwxr-xr-x 1 root root  859156 Nov  9 19:53 /usr/local/bin/ntpdc
-rwxr-xr-x 1 root root  632477 Nov  9 19:53 /usr/local/bin/ntp-keygen
-rwxr-xr-x 1 root root  911897 Nov  9 19:53 /usr/local/bin/ntpq
-rwxr-xr-x 1 root root  228107 Nov  9 19:53 /usr/local/bin/ntptime
-rwxr-xr-x 1 root root    3567 Nov  9 19:53 /usr/local/bin/ntptrace
-rwxr-xr-x 1 root root    3207 Nov  9 19:53 /usr/local/bin/ntp-wait
[root@h101 ntp-4.2.8p4]# 

0 人点赞