Linux(CentOS7.x)学习笔记(七)软件安装

原始码安装

 

tarball安装

安装软件:ntp(network time protocol)时间服务器

-1--下载ntp tar.gz包----------------------------------------------------------------------
[root@localhost ~]# wget http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p13.tar.gz
[root@localhost ~]# ls
anaconda-ks.cfg  CentOS7.7  link.prac  myProject  ntp-4.2.8p13.tar.gz

-2--将下载的包解压到 /usr/local/src/-------------------------------------------------------
[root@localhost ~]# cd /usr/local/src/
[root@localhost src]# pwd
/usr/local/src
[root@localhost src]# tar -zxvf /root/ntp-4.2.8p13.tar.gz 
.............此处省略
ntp-4.2.8p13/lib/isc/ia64/include/
ntp-4.2.8p13/lib/isc/ia64/include/isc/
ntp-4.2.8p13/lib/isc/ia64/include/isc/atomic.h
ntp-4.2.8p13/lib/isc/nls/msgcat.c
[root@localhost src]# ls
ntp-4.2.8p13

-3--建立makefile,配置其安装目录为/usr/local/ntp----------------------------------

[root@localhost src]# cd ntp-4.2.8p13/
[root@localhost ntp-4.2.8p13]# vim INSTALL   <==查看INSTALL,在28行到54行之间的安装简介,可以了解如何安装的流程。
[root@localhost ntp-4.2.8p13]# ./configure --prefix=/usr/local/ntp --enable-all-clocks --enable-parse-clocks
config.status: creating evconfig-private.h
config.status: evconfig-private.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

-4--编译与安装--------------------------------------------------------------------
[root@localhost ntp-4.2.8p13]#make clean;make
[root@localhost ntp-4.2.8p13]#make check
[root@localhost ntp-4.2.8p13]#make install

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值