Gerrit代码审计系统实战-Gerrit 3.0.0版本快速搭建
Gerrit代码审计系统实战-Gerrit 3.0.0版本快速搭建
作者:尹正杰
版权声明:原创作品,谢绝转载!否则将追究法律责任。
Gerrit官网文档可参考:https://gerrit-documentation.storage.googleapis.com/Documentation/3.0.0/index.html。
一.JDK环境部署
详情请参考:https://www.cnblogs.com/yinzhengjie/p/10739218.html
[root@node108.yinzhengjie.org.cn ~]# tail -3 /etc/profile #Add by yinzhengjie JAVA_HOME=/yinzhengjie/softwares/jdk1.8.0_201 PATH=$PATH:$JAVA_HOME/bin [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# java -version java version "1.8.0_201" Java(TM) SE Runtime Environment (build 1.8.0_201-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode) [root@node108.yinzhengjie.org.cn ~]#
二.Git环境部署
1>.Git概述
Git是一个免费的开源分布式版本控制系统。它是用C语言编写的,最初由Linus Torvalds和其他人开发,用于管理Linux内核。“分布式”意味着没有存储库的中央副本。
使用Git,一旦克隆了存储库,就可以获得源代码的完整功能副本,并且可以使用所有分支和标记版本。
2>.安装Git
[root@node108.yinzhengjie.org.cn ~]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# uname -r 3.10.0-957.el7.x86_64 [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# uname -m x86_64 [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# free -h total used free shared buff/cache available Mem: 7.6G 127M 7.3G 11M 149M 7.3G Swap: 1.5G 0B 1.5G [root@node108.yinzhengjie.org.cn ~]#
[root@node108.yinzhengjie.org.cn ~]# yum -y install git Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.tuna.tsinghua.edu.cn * extras: mirror.bit.edu.cn * updates: mirror.bit.edu.cn updates/7/x86_64/primary_db | 5.7 MB 00:00:01 Resolving Dependencies --> Running transaction check ---> Package git.x86_64 0:1.8.3.1-20.el7 will be installed --> Processing Dependency: perl-Git = 1.8.3.1-20.el7 for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: perl >= 5.008 for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: rsync for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: perl(warnings) for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: perl(vars) for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: perl(strict) for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: perl(lib) for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: perl(Term::ReadKey) for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: perl(Git) for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: perl(Getopt::Long) for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: perl(File::stat) for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: perl(File::Temp) for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: perl(File::Spec) for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: perl(File::Path) for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: perl(File::Find) for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: perl(File::Copy) for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: perl(File::Basename) for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: perl(Exporter) for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: perl(Error) for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: /usr/bin/perl for package: git-1.8.3.1-20.el7.x86_64 --> Running transaction check ---> Package perl.x86_64 4:5.16.3-294.el7_6 will be installed --> Processing Dependency: perl-libs = 4:5.16.3-294.el7_6 for package: 4:perl-5.16.3-294.el7_6.x86_64 --> Processing Dependency: perl(Socket) >= 1.3 for package: 4:perl-5.16.3-294.el7_6.x86_64 --> Processing Dependency: perl(Scalar::Util) >= 1.10 for package: 4:perl-5.16.3-294.el7_6.x86_64 --> Processing Dependency: perl-macros for package: 4:perl-5.16.3-294.el7_6.x86_64 --> Processing Dependency: perl-libs for package: 4:perl-5.16.3-294.el7_6.x86_64 --> Processing Dependency: perl(threads::shared) for package: 4:perl-5.16.3-294.el7_6.x86_64 --> Processing Dependency: perl(threads) for package: 4:perl-5.16.3-294.el7_6.x86_64 --> Processing Dependency: perl(constant) for package: 4:perl-5.16.3-294.el7_6.x86_64 --> Processing Dependency: perl(Time::Local) for package: 4:perl-5.16.3-294.el7_6.x86_64 --> Processing Dependency: perl(Time::HiRes) for package: 4:perl-5.16.3-294.el7_6.x86_64 --> Processing Dependency: perl(Storable) for package: 4:perl-5.16.3-294.el7_6.x86_64 --> Processing Dependency: perl(Socket) for package: 4:perl-5.16.3-294.el7_6.x86_64 --> Processing Dependency: perl(Scalar::Util) for package: 4:perl-5.16.3-294.el7_6.x86_64 --> Processing Dependency: perl(Pod::Simple::XHTML) for package: 4:perl-5.16.3-294.el7_6.x86_64 --> Processing Dependency: perl(Pod::Simple::Search) for package: 4:perl-5.16.3-294.el7_6.x86_64 --> Processing Dependency: perl(Filter::Util::Call) for package: 4:perl-5.16.3-294.el7_6.x86_64 --> Processing Dependency: perl(Carp) for package: 4:perl-5.16.3-294.el7_6.x86_64 --> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.16.3-294.el7_6.x86_64 ---> Package perl-Error.noarch 1:0.17020-2.el7 will be installed ---> Package perl-Exporter.noarch 0:5.68-3.el7 will be installed ---> Package perl-File-Path.noarch 0:2.09-2.el7 will be installed ---> Package perl-File-Temp.noarch 0:0.23.01-3.el7 will be installed ---> Package perl-Getopt-Long.noarch 0:2.40-3.el7 will be installed --> Processing Dependency: perl(Pod::Usage) >= 1.14 for package: perl-Getopt-Long-2.40-3.el7.noarch --> Processing Dependency: perl(Text::ParseWords) for package: perl-Getopt-Long-2.40-3.el7.noarch ---> Package perl-Git.noarch 0:1.8.3.1-20.el7 will be installed ---> Package perl-PathTools.x86_64 0:3.40-5.el7 will be installed ---> Package perl-TermReadKey.x86_64 0:2.30-20.el7 will be installed ---> Package rsync.x86_64 0:3.1.2-6.el7_6.1 will be installed --> Running transaction check ---> Package perl-Carp.noarch 0:1.26-244.el7 will be installed ---> Package perl-Filter.x86_64 0:1.49-3.el7 will be installed ---> Package perl-Pod-Simple.noarch 1:3.28-4.el7 will be installed --> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Simple-3.28-4.el7.noarch --> Processing Dependency: perl(Encode) for package: 1:perl-Pod-Simple-3.28-4.el7.noarch ---> Package perl-Pod-Usage.noarch 0:1.63-3.el7 will be installed --> Processing Dependency: perl(Pod::Text) >= 3.15 for package: perl-Pod-Usage-1.63-3.el7.noarch --> Processing Dependency: perl-Pod-Perldoc for package: perl-Pod-Usage-1.63-3.el7.noarch ---> Package perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 will be installed ---> Package perl-Socket.x86_64 0:2.010-4.el7 will be installed ---> Package perl-Storable.x86_64 0:2.45-3.el7 will be installed ---> Package perl-Text-ParseWords.noarch 0:3.29-4.el7 will be installed ---> Package perl-Time-HiRes.x86_64 4:1.9725-3.el7 will be installed ---> Package perl-Time-Local.noarch 0:1.2300-2.el7 will be installed ---> Package perl-constant.noarch 0:1.27-2.el7 will be installed ---> Package perl-libs.x86_64 4:5.16.3-294.el7_6 will be installed ---> Package perl-macros.x86_64 4:5.16.3-294.el7_6 will be installed ---> Package perl-threads.x86_64 0:1.87-4.el7 will be installed ---> Package perl-threads-shared.x86_64 0:1.43-6.el7 will be installed --> Running transaction check ---> Package perl-Encode.x86_64 0:2.51-7.el7 will be installed ---> Package perl-Pod-Escapes.noarch 1:1.04-294.el7_6 will be installed ---> Package perl-Pod-Perldoc.noarch 0:3.20-4.el7 will be installed --> Processing Dependency: perl(parent) for package: perl-Pod-Perldoc-3.20-4.el7.noarch --> Processing Dependency: perl(HTTP::Tiny) for package: perl-Pod-Perldoc-3.20-4.el7.noarch ---> Package perl-podlators.noarch 0:2.5.1-3.el7 will be installed --> Running transaction check ---> Package perl-HTTP-Tiny.noarch 0:0.033-3.el7 will be installed ---> Package perl-parent.noarch 1:0.225-244.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ====================================================================================================================================================================================================================== Package Arch Version Repository Size ====================================================================================================================================================================================================================== Installing: git x86_64 1.8.3.1-20.el7 updates 4.4 M Installing for dependencies: perl x86_64 4:5.16.3-294.el7_6 updates 8.0 M perl-Carp noarch 1.26-244.el7 base 19 k perl-Encode x86_64 2.51-7.el7 base 1.5 M perl-Error noarch 1:0.17020-2.el7 base 32 k perl-Exporter noarch 5.68-3.el7 base 28 k perl-File-Path noarch 2.09-2.el7 base 26 k perl-File-Temp noarch 0.23.01-3.el7 base 56 k perl-Filter x86_64 1.49-3.el7 base 76 k perl-Getopt-Long noarch 2.40-3.el7 base 56 k perl-Git noarch 1.8.3.1-20.el7 updates 55 k perl-HTTP-Tiny noarch 0.033-3.el7 base 38 k perl-PathTools x86_64 3.40-5.el7 base 82 k perl-Pod-Escapes noarch 1:1.04-294.el7_6 updates 51 k perl-Pod-Perldoc noarch 3.20-4.el7 base 87 k perl-Pod-Simple noarch 1:3.28-4.el7 base 216 k perl-Pod-Usage noarch 1.63-3.el7 base 27 k perl-Scalar-List-Utils x86_64 1.27-248.el7 base 36 k perl-Socket x86_64 2.010-4.el7 base 49 k perl-Storable x86_64 2.45-3.el7 base 77 k perl-TermReadKey x86_64 2.30-20.el7 base 31 k perl-Text-ParseWords noarch 3.29-4.el7 base 14 k perl-Time-HiRes x86_64 4:1.9725-3.el7 base 45 k perl-Time-Local noarch 1.2300-2.el7 base 24 k perl-constant noarch 1.27-2.el7 base 19 k perl-libs x86_64 4:5.16.3-294.el7_6 updates 688 k perl-macros x86_64 4:5.16.3-294.el7_6 updates 44 k perl-parent noarch 1:0.225-244.el7 base 12 k perl-podlators noarch 2.5.1-3.el7 base 112 k perl-threads x86_64 1.87-4.el7 base 49 k perl-threads-shared x86_64 1.43-6.el7 base 39 k rsync x86_64 3.1.2-6.el7_6.1 updates 404 k Transaction Summary ====================================================================================================================================================================================================================== Install 1 Package (+31 Dependent packages) Total download size: 16 M Installed size: 59 M Downloading packages: (1/32): perl-Carp-1.26-244.el7.noarch.rpm | 19 kB 00:00:00 (2/32): perl-Exporter-5.68-3.el7.noarch.rpm | 28 kB 00:00:00 (3/32): perl-File-Path-2.09-2.el7.noarch.rpm | 26 kB 00:00:00 (4/32): perl-File-Temp-0.23.01-3.el7.noarch.rpm | 56 kB 00:00:00 (5/32): perl-Filter-1.49-3.el7.x86_64.rpm | 76 kB 00:00:00 (6/32): perl-Getopt-Long-2.40-3.el7.noarch.rpm | 56 kB 00:00:00 (7/32): perl-Error-0.17020-2.el7.noarch.rpm | 32 kB 00:00:00 (8/32): perl-HTTP-Tiny-0.033-3.el7.noarch.rpm | 38 kB 00:00:00 (9/32): perl-PathTools-3.40-5.el7.x86_64.rpm | 82 kB 00:00:00 (10/32): perl-Encode-2.51-7.el7.x86_64.rpm | 1.5 MB 00:00:02 (11/32): perl-Pod-Perldoc-3.20-4.el7.noarch.rpm | 87 kB 00:00:00 (12/32): perl-Pod-Escapes-1.04-294.el7_6.noarch.rpm | 51 kB 00:00:01 (13/32): perl-Pod-Simple-3.28-4.el7.noarch.rpm | 216 kB 00:00:00 (14/32): perl-Pod-Usage-1.63-3.el7.noarch.rpm | 27 kB 00:00:00 (15/32): perl-Socket-2.010-4.el7.x86_64.rpm | 49 kB 00:00:00 (16/32): perl-Git-1.8.3.1-20.el7.noarch.rpm | 55 kB 00:00:02 (17/32): perl-Scalar-List-Utils-1.27-248.el7.x86_64.rpm | 36 kB 00:00:00 (18/32): perl-Text-ParseWords-3.29-4.el7.noarch.rpm | 14 kB 00:00:00 (19/32): perl-Time-HiRes-1.9725-3.el7.x86_64.rpm | 45 kB 00:00:00 (20/32): perl-Storable-2.45-3.el7.x86_64.rpm | 77 kB 00:00:00 (21/32): perl-Time-Local-1.2300-2.el7.noarch.rpm | 24 kB 00:00:00 (22/32): perl-constant-1.27-2.el7.noarch.rpm | 19 kB 00:00:00 (23/32): perl-TermReadKey-2.30-20.el7.x86_64.rpm | 31 kB 00:00:00 (24/32): perl-parent-0.225-244.el7.noarch.rpm | 12 kB 00:00:00 (25/32): perl-podlators-2.5.1-3.el7.noarch.rpm | 112 kB 00:00:00 (26/32): perl-threads-1.87-4.el7.x86_64.rpm | 49 kB 00:00:00 (27/32): perl-threads-shared-1.43-6.el7.x86_64.rpm | 39 kB 00:00:00 (28/32): perl-macros-5.16.3-294.el7_6.x86_64.rpm | 44 kB 00:00:01 (29/32): rsync-3.1.2-6.el7_6.1.x86_64.rpm | 404 kB 00:00:00 (30/32): git-1.8.3.1-20.el7.x86_64.rpm | 4.4 MB 00:00:05 (31/32): perl-libs-5.16.3-294.el7_6.x86_64.rpm | 688 kB 00:00:02 (32/32): perl-5.16.3-294.el7_6.x86_64.rpm | 8.0 MB 00:00:07 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 2.3 MB/s | 16 MB 00:00:07 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : 1:perl-parent-0.225-244.el7.noarch 1/32 Installing : perl-HTTP-Tiny-0.033-3.el7.noarch 2/32 Installing : perl-podlators-2.5.1-3.el7.noarch 3/32 Installing : perl-Pod-Perldoc-3.20-4.el7.noarch 4/32 Installing : 1:perl-Pod-Escapes-1.04-294.el7_6.noarch 5/32 Installing : perl-Encode-2.51-7.el7.x86_64 6/32 Installing : perl-Text-ParseWords-3.29-4.el7.noarch 7/32 Installing : perl-Pod-Usage-1.63-3.el7.noarch 8/32 Installing : 4:perl-libs-5.16.3-294.el7_6.x86_64 9/32 Installing : 4:perl-macros-5.16.3-294.el7_6.x86_64 10/32 Installing : 4:perl-Time-HiRes-1.9725-3.el7.x86_64 11/32 Installing : perl-Exporter-5.68-3.el7.noarch 12/32 Installing : perl-constant-1.27-2.el7.noarch 13/32 Installing : perl-Time-Local-1.2300-2.el7.noarch 14/32 Installing : perl-Socket-2.010-4.el7.x86_64 15/32 Installing : perl-Carp-1.26-244.el7.noarch 16/32 Installing : perl-Storable-2.45-3.el7.x86_64 17/32 Installing : perl-PathTools-3.40-5.el7.x86_64 18/32 Installing : perl-Scalar-List-Utils-1.27-248.el7.x86_64 19/32 Installing : perl-File-Temp-0.23.01-3.el7.noarch 20/32 Installing : perl-File-Path-2.09-2.el7.noarch 21/32 Installing : perl-threads-shared-1.43-6.el7.x86_64 22/32 Installing : perl-threads-1.87-4.el7.x86_64 23/32 Installing : 1:perl-Pod-Simple-3.28-4.el7.noarch 24/32 Installing : perl-Filter-1.49-3.el7.x86_64 25/32 Installing : perl-Getopt-Long-2.40-3.el7.noarch 26/32 Installing : 4:perl-5.16.3-294.el7_6.x86_64 27/32 Installing : 1:perl-Error-0.17020-2.el7.noarch 28/32 Installing : perl-TermReadKey-2.30-20.el7.x86_64 29/32 Installing : rsync-3.1.2-6.el7_6.1.x86_64 30/32 Installing : perl-Git-1.8.3.1-20.el7.noarch 31/32 Installing : git-1.8.3.1-20.el7.x86_64 32/32 Verifying : perl-HTTP-Tiny-0.033-3.el7.noarch 1/32 Verifying : perl-threads-shared-1.43-6.el7.x86_64 2/32 Verifying : 4:perl-Time-HiRes-1.9725-3.el7.x86_64 3/32 Verifying : 1:perl-Pod-Escapes-1.04-294.el7_6.noarch 4/32 Verifying : perl-Exporter-5.68-3.el7.noarch 5/32 Verifying : perl-constant-1.27-2.el7.noarch 6/32 Verifying : perl-PathTools-3.40-5.el7.x86_64 7/32 Verifying : rsync-3.1.2-6.el7_6.1.x86_64 8/32 Verifying : 1:perl-parent-0.225-244.el7.noarch 9/32 Verifying : perl-TermReadKey-2.30-20.el7.x86_64 10/32 Verifying : 4:perl-libs-5.16.3-294.el7_6.x86_64 11/32 Verifying : perl-File-Temp-0.23.01-3.el7.noarch 12/32 Verifying : perl-Git-1.8.3.1-20.el7.noarch 13/32 Verifying : perl-Time-Local-1.2300-2.el7.noarch 14/32 Verifying : 4:perl-macros-5.16.3-294.el7_6.x86_64 15/32 Verifying : perl-Socket-2.010-4.el7.x86_64 16/32 Verifying : perl-Carp-1.26-244.el7.noarch 17/32 Verifying : 1:perl-Error-0.17020-2.el7.noarch 18/32 Verifying : git-1.8.3.1-20.el7.x86_64 19/32 Verifying : perl-Storable-2.45-3.el7.x86_64 20/32 Verifying : perl-Scalar-List-Utils-1.27-248.el7.x86_64 21/32 Verifying : perl-Pod-Usage-1.63-3.el7.noarch 22/32 Verifying : perl-Encode-2.51-7.el7.x86_64 23/32 Verifying : perl-Pod-Perldoc-3.20-4.el7.noarch 24/32 Verifying : perl-podlators-2.5.1-3.el7.noarch 25/32 Verifying : perl-File-Path-2.09-2.el7.noarch 26/32 Verifying : perl-threads-1.87-4.el7.x86_64 27/32 Verifying : 1:perl-Pod-Simple-3.28-4.el7.noarch 28/32 Verifying : perl-Filter-1.49-3.el7.x86_64 29/32 Verifying : perl-Getopt-Long-2.40-3.el7.noarch 30/32 Verifying : perl-Text-ParseWords-3.29-4.el7.noarch 31/32 Verifying : 4:perl-5.16.3-294.el7_6.x86_64 32/32 Installed: git.x86_64 0:1.8.3.1-20.el7 Dependency Installed: perl.x86_64 4:5.16.3-294.el7_6 perl-Carp.noarch 0:1.26-244.el7 perl-Encode.x86_64 0:2.51-7.el7 perl-Error.noarch 1:0.17020-2.el7 perl-Exporter.noarch 0:5.68-3.el7 perl-File-Path.noarch 0:2.09-2.el7 perl-File-Temp.noarch 0:0.23.01-3.el7 perl-Filter.x86_64 0:1.49-3.el7 perl-Getopt-Long.noarch 0:2.40-3.el7 perl-Git.noarch 0:1.8.3.1-20.el7 perl-HTTP-Tiny.noarch 0:0.033-3.el7 perl-PathTools.x86_64 0:3.40-5.el7 perl-Pod-Escapes.noarch 1:1.04-294.el7_6 perl-Pod-Perldoc.noarch 0:3.20-4.el7 perl-Pod-Simple.noarch 1:3.28-4.el7 perl-Pod-Usage.noarch 0:1.63-3.el7 perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 perl-Socket.x86_64 0:2.010-4.el7 perl-Storable.x86_64 0:2.45-3.el7 perl-TermReadKey.x86_64 0:2.30-20.el7 perl-Text-ParseWords.noarch 0:3.29-4.el7 perl-Time-HiRes.x86_64 4:1.9725-3.el7 perl-Time-Local.noarch 0:1.2300-2.el7 perl-constant.noarch 0:1.27-2.el7 perl-libs.x86_64 4:5.16.3-294.el7_6 perl-macros.x86_64 4:5.16.3-294.el7_6 perl-parent.noarch 1:0.225-244.el7 perl-podlators.noarch 0:2.5.1-3.el7 perl-threads.x86_64 0:1.87-4.el7 perl-threads-shared.x86_64 0:1.43-6.el7 rsync.x86_64 0:3.1.2-6.el7_6.1 Complete! You have new mail in /var/spool/mail/root [root@node108.yinzhengjie.org.cn ~]#
[root@node108.yinzhengjie.org.cn ~]# mkdir -p /etc/yum.repos.d/{default,back} [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# mv /etc/yum.repos.d/*repo /etc/yum.repos.d/default/ #把默认的yum源进行备份 [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo #下载阿里的源 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2523 100 2523 0 0 72244 0 --:--:-- --:--:-- --:--:-- 74205 [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/back/ #给分下载的阿里源 [root@node108.yinzhengjie.org.cn ~]#
[root@node108.yinzhengjie.org.cn ~]# yum install -y gitweb Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com http://mirrors.aliyuncs.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to mirrors.aliyuncs.com:80; Connection refused" Trying other mirror. http://mirrors.cloud.aliyuncs.com/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.cloud.aliyuncs.com; Unknown error" Trying other mirror. base | 3.6 kB 00:00:00 extras | 3.4 kB 00:00:00 updates | 3.4 kB 00:00:00 Resolving Dependencies --> Running transaction check ---> Package gitweb.noarch 0:1.8.3.1-20.el7 will be installed --> Processing Dependency: perl(CGI::Util) for package: gitweb-1.8.3.1-20.el7.noarch --> Processing Dependency: perl(CGI::Carp) for package: gitweb-1.8.3.1-20.el7.noarch --> Processing Dependency: perl(CGI) for package: gitweb-1.8.3.1-20.el7.noarch --> Running transaction check ---> Package perl-CGI.noarch 0:3.63-4.el7 will be installed --> Processing Dependency: perl(FCGI) >= 0.67 for package: perl-CGI-3.63-4.el7.noarch --> Running transaction check ---> Package perl-FCGI.x86_64 1:0.74-8.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ===================================================================================================================================================================== Package Arch Version Repository Size ===================================================================================================================================================================== Installing: gitweb noarch 1.8.3.1-20.el7 updates 112 k Installing for dependencies: perl-CGI noarch 3.63-4.el7 base 250 k perl-FCGI x86_64 1:0.74-8.el7 base 42 k Transaction Summary ===================================================================================================================================================================== Install 1 Package (+2 Dependent packages) Total download size: 404 k Installed size: 1.1 M Downloading packages: (1/3): perl-FCGI-0.74-8.el7.x86_64.rpm | 42 kB 00:00:00 (2/3): perl-CGI-3.63-4.el7.noarch.rpm | 250 kB 00:00:00 (3/3): gitweb-1.8.3.1-20.el7.noarch.rpm | 112 kB 00:00:00 --------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 1.7 MB/s | 404 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : 1:perl-FCGI-0.74-8.el7.x86_64 1/3 Installing : perl-CGI-3.63-4.el7.noarch 2/3 Installing : gitweb-1.8.3.1-20.el7.noarch 3/3 Verifying : gitweb-1.8.3.1-20.el7.noarch 1/3 Verifying : perl-CGI-3.63-4.el7.noarch 2/3 Verifying : 1:perl-FCGI-0.74-8.el7.x86_64 3/3 Installed: gitweb.noarch 0:1.8.3.1-20.el7 Dependency Installed: perl-CGI.noarch 0:3.63-4.el7 perl-FCGI.x86_64 1:0.74-8.el7 Complete! [root@node108.yinzhengjie.org.cn ~]#
[root@node108.yinzhengjie.org.cn ~]# yum -y install epel-release Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com Resolving Dependencies --> Running transaction check ---> Package epel-release.noarch 0:7-11 will be installed --> Finished Dependency Resolution Dependencies Resolved ===================================================================================================================================================================== Package Arch Version Repository Size ===================================================================================================================================================================== Installing: epel-release noarch 7-11 extras 15 k Transaction Summary ===================================================================================================================================================================== Install 1 Package Total download size: 15 k Installed size: 24 k Downloading packages: epel-release-7-11.noarch.rpm | 15 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : epel-release-7-11.noarch 1/1 Verifying : epel-release-7-11.noarch 1/1 Installed: epel-release.noarch 0:7-11 Complete! [root@node108.yinzhengjie.org.cn ~]#
[root@node108.yinzhengjie.org.cn ~]# yum install -y git-review Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 7.4 kB 00:00:00 * base: mirrors.aliyun.com * epel: mirrors.tuna.tsinghua.edu.cn * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com epel | 5.3 kB 00:00:00 (1/3): epel/x86_64/group_gz | 88 kB 00:00:00 (2/3): epel/x86_64/updateinfo | 975 kB 00:00:01 (3/3): epel/x86_64/primary_db | 6.7 MB 00:00:46 Resolving Dependencies --> Running transaction check ---> Package git-review.noarch 0:1.24-5.el7 will be installed --> Processing Dependency: python-requests for package: git-review-1.24-5.el7.noarch --> Processing Dependency: python-setuptools for package: git-review-1.24-5.el7.noarch --> Running transaction check ---> Package python-requests.noarch 0:2.6.0-1.el7_1 will be installed --> Processing Dependency: python-urllib3 >= 1.10.2-1 for package: python-requests-2.6.0-1.el7_1.noarch --> Processing Dependency: python-chardet >= 2.2.1-1 for package: python-requests-2.6.0-1.el7_1.noarch ---> Package python-setuptools.noarch 0:0.9.8-7.el7 will be installed --> Processing Dependency: python-backports-ssl_match_hostname for package: python-setuptools-0.9.8-7.el7.noarch --> Running transaction check ---> Package python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7 will be installed --> Processing Dependency: python-ipaddress for package: python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch --> Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch ---> Package python-chardet.noarch 0:2.2.1-1.el7_1 will be installed ---> Package python-urllib3.noarch 0:1.10.2-5.el7 will be installed --> Processing Dependency: python-six for package: python-urllib3-1.10.2-5.el7.noarch --> Running transaction check ---> Package python-backports.x86_64 0:1.0-8.el7 will be installed ---> Package python-ipaddress.noarch 0:1.0.16-2.el7 will be installed ---> Package python-six.noarch 0:1.9.0-2.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ===================================================================================================================================================================== Package Arch Version Repository Size ===================================================================================================================================================================== Installing: git-review noarch 1.24-5.el7 epel 57 k Installing for dependencies: python-backports x86_64 1.0-8.el7 base 5.8 k python-backports-ssl_match_hostname noarch 3.5.0.1-1.el7 base 13 k python-chardet noarch 2.2.1-1.el7_1 base 227 k python-ipaddress noarch 1.0.16-2.el7 base 34 k python-requests noarch 2.6.0-1.el7_1 base 94 k python-setuptools noarch 0.9.8-7.el7 base 397 k python-six noarch 1.9.0-2.el7 base 29 k python-urllib3 noarch 1.10.2-5.el7 base 102 k Transaction Summary ===================================================================================================================================================================== Install 1 Package (+8 Dependent packages) Total download size: 958 k Installed size: 4.2 M Downloading packages: (1/9): python-backports-1.0-8.el7.x86_64.rpm | 5.8 kB 00:00:00 (2/9): python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch.rpm | 13 kB 00:00:00 (3/9): python-chardet-2.2.1-1.el7_1.noarch.rpm | 227 kB 00:00:00 (4/9): python-ipaddress-1.0.16-2.el7.noarch.rpm | 34 kB 00:00:00 (5/9): python-requests-2.6.0-1.el7_1.noarch.rpm | 94 kB 00:00:00 warning: /var/cache/yum/x86_64/7/epel/packages/git-review-1.24-5.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY.0 B/s | 373 kB --:--:-- ETA Public key for git-review-1.24-5.el7.noarch.rpm is not installed (6/9): git-review-1.24-5.el7.noarch.rpm | 57 kB 00:00:00 (7/9): python-six-1.9.0-2.el7.noarch.rpm | 29 kB 00:00:00 (8/9): python-setuptools-0.9.8-7.el7.noarch.rpm | 397 kB 00:00:00 (9/9): python-urllib3-1.10.2-5.el7.noarch.rpm | 102 kB 00:00:00 --------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 2.1 MB/s | 958 kB 00:00:00 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Importing GPG key 0x352C64E5: Userid : "Fedora EPEL (7) <epel@fedoraproject.org>" Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5 Package : epel-release-7-11.noarch (@extras) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : python-ipaddress-1.0.16-2.el7.noarch 1/9 Installing : python-six-1.9.0-2.el7.noarch 2/9 Installing : python-chardet-2.2.1-1.el7_1.noarch 3/9 Installing : python-backports-1.0-8.el7.x86_64 4/9 Installing : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch 5/9 Installing : python-urllib3-1.10.2-5.el7.noarch 6/9 Installing : python-requests-2.6.0-1.el7_1.noarch 7/9 Installing : python-setuptools-0.9.8-7.el7.noarch 8/9 Installing : git-review-1.24-5.el7.noarch 9/9 Verifying : python-urllib3-1.10.2-5.el7.noarch 1/9 Verifying : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch 2/9 Verifying : python-requests-2.6.0-1.el7_1.noarch 3/9 Verifying : python-backports-1.0-8.el7.x86_64 4/9 Verifying : python-ipaddress-1.0.16-2.el7.noarch 5/9 Verifying : python-chardet-2.2.1-1.el7_1.noarch 6/9 Verifying : git-review-1.24-5.el7.noarch 7/9 Verifying : python-six-1.9.0-2.el7.noarch 8/9 Verifying : python-setuptools-0.9.8-7.el7.noarch 9/9 Installed: git-review.noarch 0:1.24-5.el7 Dependency Installed: python-backports.x86_64 0:1.0-8.el7 python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7 python-chardet.noarch 0:2.2.1-1.el7_1 python-ipaddress.noarch 0:1.0.16-2.el7 python-requests.noarch 0:2.6.0-1.el7_1 python-setuptools.noarch 0:0.9.8-7.el7 python-six.noarch 0:1.9.0-2.el7 python-urllib3.noarch 0:1.10.2-5.el7 Complete! You have new mail in /var/spool/mail/root [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]#
[root@node108.yinzhengjie.org.cn ~]# yum -y remove git Loaded plugins: fastestmirror Resolving Dependencies --> Running transaction check ---> Package git.x86_64 0:1.8.3.1-20.el7 will be erased --> Processing Dependency: git = 1.8.3.1-20.el7 for package: perl-Git-1.8.3.1-20.el7.noarch --> Running transaction check ---> Package perl-Git.noarch 0:1.8.3.1-20.el7 will be erased --> Finished Dependency Resolution Dependencies Resolved ===================================================================================================================================================================== Package Arch Version Repository Size ===================================================================================================================================================================== Removing: git x86_64 1.8.3.1-20.el7 @updates 22 M Removing for dependencies: perl-Git noarch 1.8.3.1-20.el7 @updates 57 k Transaction Summary ===================================================================================================================================================================== Remove 1 Package (+1 Dependent package) Installed size: 22 M Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Erasing : git-1.8.3.1-20.el7.x86_64 1/2 Erasing : perl-Git-1.8.3.1-20.el7.noarch 2/2 Verifying : perl-Git-1.8.3.1-20.el7.noarch 1/2 Verifying : git-1.8.3.1-20.el7.x86_64 2/2 Removed: git.x86_64 0:1.8.3.1-20.el7 Dependency Removed: perl-Git.noarch 0:1.8.3.1-20.el7 Complete! [root@node108.yinzhengjie.org.cn ~]#
[root@node108.yinzhengjie.org.cn ~]# yum -y install wget Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.bit.edu.cn * extras: mirror.bit.edu.cn * updates: mirror.bit.edu.cn Resolving Dependencies --> Running transaction check ---> Package wget.x86_64 0:1.14-18.el7_6.1 will be installed --> Finished Dependency Resolution Dependencies Resolved ===================================================================================================================================================================== Package Arch Version Repository Size ===================================================================================================================================================================== Installing: wget x86_64 1.14-18.el7_6.1 updates 547 k Transaction Summary ===================================================================================================================================================================== Install 1 Package Total download size: 547 k Installed size: 2.0 M Downloading packages: wget-1.14-18.el7_6.1.x86_64.rpm | 547 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : wget-1.14-18.el7_6.1.x86_64 1/1 Verifying : wget-1.14-18.el7_6.1.x86_64 1/1 Installed: wget.x86_64 0:1.14-18.el7_6.1 Complete! You have new mail in /var/spool/mail/root [root@node108.yinzhengjie.org.cn ~]#
[root@node108.yinzhengjie.org.cn ~]# wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.12.2.tar.gz --2019-06-13 03:18:40-- https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.12.2.tar.gz Resolving mirrors.edge.kernel.org (mirrors.edge.kernel.org)... 147.75.101.1, 2604:1380:2001:3900::1 Connecting to mirrors.edge.kernel.org (mirrors.edge.kernel.org)|147.75.101.1|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 6389118 (6.1M) [application/x-gzip] Saving to: ‘git-2.12.2.tar.gz’ 100%[===========================================================================================================================>] 6,389,118 17.8KB/s in 5m 30s 2019-06-13 03:24:11 (18.9 KB/s) - ‘git-2.12.2.tar.gz’ saved [6389118/6389118] You have new mail in /var/spool/mail/root [root@node108.yinzhengjie.org.cn ~]#
[root@node108.yinzhengjie.org.cn ~]# yum install -y curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.bit.edu.cn * extras: mirror.bit.edu.cn * updates: mirror.bit.edu.cn Resolving Dependencies --> Running transaction check ---> Package expat-devel.x86_64 0:2.1.0-10.el7_3 will be installed ---> Package gcc.x86_64 0:4.8.5-36.el7_6.2 will be installed --> Processing Dependency: libgomp = 4.8.5-36.el7_6.2 for package: gcc-4.8.5-36.el7_6.2.x86_64 --> Processing Dependency: cpp = 4.8.5-36.el7_6.2 for package: gcc-4.8.5-36.el7_6.2.x86_64 --> Processing Dependency: libgcc >= 4.8.5-36.el7_6.2 for package: gcc-4.8.5-36.el7_6.2.x86_64 --> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-36.el7_6.2.x86_64 --> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.5-36.el7_6.2.x86_64 --> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.5-36.el7_6.2.x86_64 ---> Package gettext-devel.x86_64 0:0.19.8.1-2.el7 will be installed --> Processing Dependency: gettext-common-devel = 0.19.8.1-2.el7 for package: gettext-devel-0.19.8.1-2.el7.x86_64 --> Processing Dependency: git for package: gettext-devel-0.19.8.1-2.el7.x86_64 ---> Package libcurl-devel.x86_64 0:7.29.0-51.el7 will be installed base/7/x86_64/filelists_db | 7.1 MB 00:00:02 updates/7/x86_64/filelists_db | 4.0 MB 00:00:01 ---> Package openssl-devel.x86_64 1:1.0.2k-16.el7_6.1 will be installed --> Processing Dependency: openssl-libs(x86-64) = 1:1.0.2k-16.el7_6.1 for package: 1:openssl-devel-1.0.2k-16.el7_6.1.x86_64 --> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1.0.2k-16.el7_6.1.x86_64 ---> Package perl-ExtUtils-MakeMaker.noarch 0:6.68-3.el7 will be installed --> Processing Dependency: perl(Test::Harness) for package: perl-ExtUtils-MakeMaker-6.68-3.el7.noarch --> Processing Dependency: perl(ExtUtils::Packlist) for package: perl-ExtUtils-MakeMaker-6.68-3.el7.noarch --> Processing Dependency: perl(ExtUtils::Manifest) for package: perl-ExtUtils-MakeMaker-6.68-3.el7.noarch --> Processing Dependency: perl(ExtUtils::Installed) for package: perl-ExtUtils-MakeMaker-6.68-3.el7.noarch --> Processing Dependency: perl(ExtUtils::Install) for package: perl-ExtUtils-MakeMaker-6.68-3.el7.noarch ---> Package zlib-devel.x86_64 0:1.2.7-18.el7 will be installed --> Running transaction check ---> Package cpp.x86_64 0:4.8.5-36.el7_6.2 will be installed ---> Package gettext-common-devel.noarch 0:0.19.8.1-2.el7 will be installed ---> Package git.x86_64 0:1.8.3.1-20.el7 will be installed --> Processing Dependency: perl-Git = 1.8.3.1-20.el7 for package: git-1.8.3.1-20.el7.x86_64 --> Processing Dependency: perl(Git) for package: git-1.8.3.1-20.el7.x86_64 ---> Package glibc-devel.x86_64 0:2.17-260.el7_6.5 will be installed --> Processing Dependency: glibc-headers = 2.17-260.el7_6.5 for package: glibc-devel-2.17-260.el7_6.5.x86_64 --> Processing Dependency: glibc = 2.17-260.el7_6.5 for package: glibc-devel-2.17-260.el7_6.5.x86_64 --> Processing Dependency: glibc-headers for package: glibc-devel-2.17-260.el7_6.5.x86_64 ---> Package krb5-devel.x86_64 0:1.15.1-37.el7_6 will be installed --> Processing Dependency: libkadm5(x86-64) = 1.15.1-37.el7_6 for package: krb5-devel-1.15.1-37.el7_6.x86_64 --> Processing Dependency: krb5-libs(x86-64) = 1.15.1-37.el7_6 for package: krb5-devel-1.15.1-37.el7_6.x86_64 --> Processing Dependency: libverto-devel for package: krb5-devel-1.15.1-37.el7_6.x86_64 --> Processing Dependency: libselinux-devel for package: krb5-devel-1.15.1-37.el7_6.x86_64 --> Processing Dependency: libcom_err-devel for package: krb5-devel-1.15.1-37.el7_6.x86_64 --> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.15.1-37.el7_6.x86_64 ---> Package libgcc.x86_64 0:4.8.5-36.el7 will be updated ---> Package libgcc.x86_64 0:4.8.5-36.el7_6.2 will be an update ---> Package libgomp.x86_64 0:4.8.5-36.el7 will be updated ---> Package libgomp.x86_64 0:4.8.5-36.el7_6.2 will be an update ---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed ---> Package mpfr.x86_64 0:3.1.1-4.el7 will be installed ---> Package openssl-libs.x86_64 1:1.0.2k-16.el7 will be updated --> Processing Dependency: openssl-libs(x86-64) = 1:1.0.2k-16.el7 for package: 1:openssl-1.0.2k-16.el7.x86_64 ---> Package openssl-libs.x86_64 1:1.0.2k-16.el7_6.1 will be an update ---> Package perl-ExtUtils-Install.noarch 0:1.58-294.el7_6 will be installed --> Processing Dependency: perl-devel for package: perl-ExtUtils-Install-1.58-294.el7_6.noarch ---> Package perl-ExtUtils-Manifest.noarch 0:1.61-244.el7 will be installed ---> Package perl-Test-Harness.noarch 0:3.28-3.el7 will be installed --> Running transaction check ---> Package glibc.x86_64 0:2.17-260.el7 will be updated --> Processing Dependency: glibc = 2.17-260.el7 for package: glibc-common-2.17-260.el7.x86_64 ---> Package glibc.x86_64 0:2.17-260.el7_6.5 will be an update ---> Package glibc-headers.x86_64 0:2.17-260.el7_6.5 will be installed --> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-260.el7_6.5.x86_64 --> Processing Dependency: kernel-headers for package: glibc-headers-2.17-260.el7_6.5.x86_64 ---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed ---> Package krb5-libs.x86_64 0:1.15.1-34.el7 will be updated ---> Package krb5-libs.x86_64 0:1.15.1-37.el7_6 will be an update ---> Package libcom_err-devel.x86_64 0:1.42.9-13.el7 will be installed ---> Package libkadm5.x86_64 0:1.15.1-37.el7_6 will be installed ---> Package libselinux-devel.x86_64 0:2.5-14.1.el7 will be installed --> Processing Dependency: libsepol-devel(x86-64) >= 2.5-10 for package: libselinux-devel-2.5-14.1.el7.x86_64 --> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.5-14.1.el7.x86_64 --> Processing Dependency: pkgconfig(libpcre) for package: libselinux-devel-2.5-14.1.el7.x86_64 ---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed ---> Package openssl.x86_64 1:1.0.2k-16.el7 will be updated ---> Package openssl.x86_64 1:1.0.2k-16.el7_6.1 will be an update ---> Package perl-Git.noarch 0:1.8.3.1-20.el7 will be installed ---> Package perl-devel.x86_64 4:5.16.3-294.el7_6 will be installed --> Processing Dependency: systemtap-sdt-devel for package: 4:perl-devel-5.16.3-294.el7_6.x86_64 --> Processing Dependency: perl(ExtUtils::ParseXS) for package: 4:perl-devel-5.16.3-294.el7_6.x86_64 --> Processing Dependency: libdb-devel for package: 4:perl-devel-5.16.3-294.el7_6.x86_64 --> Processing Dependency: gdbm-devel for package: 4:perl-devel-5.16.3-294.el7_6.x86_64 --> Running transaction check ---> Package gdbm-devel.x86_64 0:1.10-8.el7 will be installed ---> Package glibc-common.x86_64 0:2.17-260.el7 will be updated ---> Package glibc-common.x86_64 0:2.17-260.el7_6.5 will be an update ---> Package kernel-headers.x86_64 0:3.10.0-957.21.2.el7 will be installed ---> Package libdb-devel.x86_64 0:5.3.21-24.el7 will be installed ---> Package libsepol-devel.x86_64 0:2.5-10.el7 will be installed ---> Package pcre-devel.x86_64 0:8.32-17.el7 will be installed ---> Package perl-ExtUtils-ParseXS.noarch 1:3.18-3.el7 will be installed ---> Package systemtap-sdt-devel.x86_64 0:3.3-3.el7 will be installed --> Processing Dependency: pyparsing for package: systemtap-sdt-devel-3.3-3.el7.x86_64 --> Running transaction check ---> Package pyparsing.noarch 0:1.5.6-9.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ===================================================================================================================================================================== Package Arch Version Repository Size ===================================================================================================================================================================== Installing: expat-devel x86_64 2.1.0-10.el7_3 base 57 k gcc x86_64 4.8.5-36.el7_6.2 updates 16 M gettext-devel x86_64 0.19.8.1-2.el7 base 320 k libcurl-devel x86_64 7.29.0-51.el7 base 302 k openssl-devel x86_64 1:1.0.2k-16.el7_6.1 updates 1.5 M perl-ExtUtils-MakeMaker noarch 6.68-3.el7 base 275 k zlib-devel x86_64 1.2.7-18.el7 base 50 k Installing for dependencies: cpp x86_64 4.8.5-36.el7_6.2 updates 5.9 M gdbm-devel x86_64 1.10-8.el7 base 47 k gettext-common-devel noarch 0.19.8.1-2.el7 base 410 k git x86_64 1.8.3.1-20.el7 updates 4.4 M glibc-devel x86_64 2.17-260.el7_6.5 updates 1.1 M glibc-headers x86_64 2.17-260.el7_6.5 updates 683 k kernel-headers x86_64 3.10.0-957.21.2.el7 updates 8.0 M keyutils-libs-devel x86_64 1.5.8-3.el7 base 37 k krb5-devel x86_64 1.15.1-37.el7_6 updates 271 k libcom_err-devel x86_64 1.42.9-13.el7 base 31 k libdb-devel x86_64 5.3.21-24.el7 base 38 k libkadm5 x86_64 1.15.1-37.el7_6 updates 178 k libmpc x86_64 1.0.1-3.el7 base 51 k libselinux-devel x86_64 2.5-14.1.el7 base 187 k libsepol-devel x86_64 2.5-10.el7 base 77 k libverto-devel x86_64 0.2.5-4.el7 base 12 k mpfr x86_64 3.1.1-4.el7 base 203 k pcre-devel x86_64 8.32-17.el7 base 480 k perl-ExtUtils-Install noarch 1.58-294.el7_6 updates 75 k perl-ExtUtils-Manifest noarch 1.61-244.el7 base 31 k perl-ExtUtils-ParseXS noarch 1:3.18-3.el7 base 77 k perl-Git noarch 1.8.3.1-20.el7 updates 55 k perl-Test-Harness noarch 3.28-3.el7 base 302 k perl-devel x86_64 4:5.16.3-294.el7_6 updates 453 k pyparsing noarch 1.5.6-9.el7 base 94 k systemtap-sdt-devel x86_64 3.3-3.el7 base 74 k Updating for dependencies: glibc x86_64 2.17-260.el7_6.5 updates 3.7 M glibc-common x86_64 2.17-260.el7_6.5 updates 12 M krb5-libs x86_64 1.15.1-37.el7_6 updates 803 k libgcc x86_64 4.8.5-36.el7_6.2 updates 102 k libgomp x86_64 4.8.5-36.el7_6.2 updates 158 k openssl x86_64 1:1.0.2k-16.el7_6.1 updates 493 k openssl-libs x86_64 1:1.0.2k-16.el7_6.1 updates 1.2 M Transaction Summary ===================================================================================================================================================================== Install 7 Packages (+26 Dependent packages) Upgrade ( 7 Dependent packages) Total download size: 60 M Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. (1/40): expat-devel-2.1.0-10.el7_3.x86_64.rpm | 57 kB 00:00:00 (2/40): gdbm-devel-1.10-8.el7.x86_64.rpm | 47 kB 00:00:00 (3/40): git-1.8.3.1-20.el7.x86_64.rpm | 4.4 MB 00:00:02 (4/40): glibc-2.17-260.el7_6.5.x86_64.rpm | 3.7 MB 00:00:01 (5/40): gettext-devel-0.19.8.1-2.el7.x86_64.rpm | 320 kB 00:00:05 (6/40): cpp-4.8.5-36.el7_6.2.x86_64.rpm | 5.9 MB 00:00:06 (7/40): glibc-headers-2.17-260.el7_6.5.x86_64.rpm | 683 kB 00:00:00 (8/40): kernel-headers-3.10.0-957.21.2.el7.x86_64.rpm | 8.0 MB 00:00:04 (9/40): keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm | 37 kB 00:00:00 (10/40): krb5-devel-1.15.1-37.el7_6.x86_64.rpm | 271 kB 00:00:00 (11/40): krb5-libs-1.15.1-37.el7_6.x86_64.rpm | 803 kB 00:00:00 (12/40): libcom_err-devel-1.42.9-13.el7.x86_64.rpm | 31 kB 00:00:00 (13/40): libcurl-devel-7.29.0-51.el7.x86_64.rpm | 302 kB 00:00:00 (14/40): libdb-devel-5.3.21-24.el7.x86_64.rpm | 38 kB 00:00:00 (15/40): libgcc-4.8.5-36.el7_6.2.x86_64.rpm | 102 kB 00:00:00 (16/40): libgomp-4.8.5-36.el7_6.2.x86_64.rpm | 158 kB 00:00:00 (17/40): libkadm5-1.15.1-37.el7_6.x86_64.rpm | 178 kB 00:00:00 (18/40): libmpc-1.0.1-3.el7.x86_64.rpm | 51 kB 00:00:00 (19/40): libselinux-devel-2.5-14.1.el7.x86_64.rpm | 187 kB 00:00:00 (20/40): libsepol-devel-2.5-10.el7.x86_64.rpm | 77 kB 00:00:00 (21/40): libverto-devel-0.2.5-4.el7.x86_64.rpm | 12 kB 00:00:00 (22/40): mpfr-3.1.1-4.el7.x86_64.rpm | 203 kB 00:00:00 (23/40): openssl-1.0.2k-16.el7_6.1.x86_64.rpm | 493 kB 00:00:00 (24/40): openssl-devel-1.0.2k-16.el7_6.1.x86_64.rpm | 1.5 MB 00:00:00 (25/40): openssl-libs-1.0.2k-16.el7_6.1.x86_64.rpm | 1.2 MB 00:00:00 (26/40): pcre-devel-8.32-17.el7.x86_64.rpm | 480 kB 00:00:00 (27/40): perl-ExtUtils-Install-1.58-294.el7_6.noarch.rpm | 75 kB 00:00:00 (28/40): perl-ExtUtils-MakeMaker-6.68-3.el7.noarch.rpm | 275 kB 00:00:00 (29/40): perl-ExtUtils-Manifest-1.61-244.el7.noarch.rpm | 31 kB 00:00:00 (30/40): perl-ExtUtils-ParseXS-3.18-3.el7.noarch.rpm | 77 kB 00:00:00 (31/40): perl-Git-1.8.3.1-20.el7.noarch.rpm | 55 kB 00:00:00 (32/40): perl-Test-Harness-3.28-3.el7.noarch.rpm | 302 kB 00:00:00 (33/40): perl-devel-5.16.3-294.el7_6.x86_64.rpm | 453 kB 00:00:00 (34/40): pyparsing-1.5.6-9.el7.noarch.rpm | 94 kB 00:00:00 (35/40): systemtap-sdt-devel-3.3-3.el7.x86_64.rpm | 74 kB 00:00:00 (36/40): zlib-devel-1.2.7-18.el7.x86_64.rpm | 50 kB 00:00:00 (37/40): gcc-4.8.5-36.el7_6.2.x86_64.rpm | 16 MB 00:00:20 (38/40): gettext-common-devel-0.19.8.1-2.el7.noarch.rpm | 410 kB 00:00:29 glibc-common-2.17-260.el7_6.5. FAILED http://mirrors.cn99.com/centos/7.6.1810/updates/x86_64/Packages/glibc-common-2.17-260.el7_6.5.x86_64.rpm: [Errno 12] Timeout on http://mirrors.cn99.com/centos/7.6.1810/updates/x86_64/Packages/glibc-common-2.17-260.el7_6.5.x86_64.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds') Trying other mirror. glibc-devel-2.17-260.el7_6.5.x FAILED ========================================- ] 220 kB/s | 48 MB 00:00:54 ETA http://mirrors.163.com/centos/7.6.1810/updates/x86_64/Packages/glibc-devel-2.17-260.el7_6.5.x86_64.rpm: [Errno 12] Timeout on http://mirrors.163.com/centos/7.6.1810/updates/x86_64/Packages/glibc-devel-2.17-260.el7_6.5.x86_64.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds') Trying other mirror. (39/40): glibc-devel-2.17-260.el7_6.5.x86_64.rpm | 1.1 MB 00:00:00 (40/40): glibc-common-2.17-260.el7_6.5.x86_64.rpm | 12 MB 00:00:05 --------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 1.5 MB/s | 60 MB 00:00:40 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : libgcc-4.8.5-36.el7_6.2.x86_64 1/47 Updating : glibc-common-2.17-260.el7_6.5.x86_64 2/47 Updating : glibc-2.17-260.el7_6.5.x86_64 3/47 Updating : 1:openssl-libs-1.0.2k-16.el7_6.1.x86_64 4/47 Updating : krb5-libs-1.15.1-37.el7_6.x86_64 5/47 Installing : mpfr-3.1.1-4.el7.x86_64 6/47 Installing : libmpc-1.0.1-3.el7.x86_64 7/47 Installing : git-1.8.3.1-20.el7.x86_64 8/47 Installing : perl-Git-1.8.3.1-20.el7.noarch 9/47 Installing : cpp-4.8.5-36.el7_6.2.x86_64 10/47 Installing : libkadm5-1.15.1-37.el7_6.x86_64 11/47 Updating : libgomp-4.8.5-36.el7_6.2.x86_64 12/47 Installing : perl-ExtUtils-Manifest-1.61-244.el7.noarch 13/47 Installing : libsepol-devel-2.5-10.el7.x86_64 14/47 Installing : gettext-common-devel-0.19.8.1-2.el7.noarch 15/47 Installing : kernel-headers-3.10.0-957.21.2.el7.x86_64 16/47 Installing : glibc-headers-2.17-260.el7_6.5.x86_64 17/47 Installing : glibc-devel-2.17-260.el7_6.5.x86_64 18/47 Installing : perl-Test-Harness-3.28-3.el7.noarch 19/47 Installing : zlib-devel-1.2.7-18.el7.x86_64 20/47 Installing : libverto-devel-0.2.5-4.el7.x86_64 21/47 Installing : gdbm-devel-1.10-8.el7.x86_64 22/47 Installing : libcom_err-devel-1.42.9-13.el7.x86_64 23/47 Installing : pyparsing-1.5.6-9.el7.noarch 24/47 Installing : systemtap-sdt-devel-3.3-3.el7.x86_64 25/47 Installing : pcre-devel-8.32-17.el7.x86_64 26/47 Installing : libselinux-devel-2.5-14.1.el7.x86_64 27/47 Installing : libdb-devel-5.3.21-24.el7.x86_64 28/47 Installing : 1:perl-ExtUtils-ParseXS-3.18-3.el7.noarch 29/47 Installing : perl-ExtUtils-MakeMaker-6.68-3.el7.noarch 30/47 Installing : perl-ExtUtils-Install-1.58-294.el7_6.noarch 31/47 Installing : 4:perl-devel-5.16.3-294.el7_6.x86_64 32/47 Installing : keyutils-libs-devel-1.5.8-3.el7.x86_64 33/47 Installing : krb5-devel-1.15.1-37.el7_6.x86_64 34/47 Installing : 1:openssl-devel-1.0.2k-16.el7_6.1.x86_64 35/47 Installing : gcc-4.8.5-36.el7_6.2.x86_64 36/47 Installing : gettext-devel-0.19.8.1-2.el7.x86_64 37/47 Updating : 1:openssl-1.0.2k-16.el7_6.1.x86_64 38/47 Installing : libcurl-devel-7.29.0-51.el7.x86_64 39/47 Installing : expat-devel-2.1.0-10.el7_3.x86_64 40/47 Cleanup : 1:openssl-1.0.2k-16.el7.x86_64 41/47 Cleanup : krb5-libs-1.15.1-34.el7.x86_64 42/47 Cleanup : 1:openssl-libs-1.0.2k-16.el7.x86_64 43/47 Cleanup : libgomp-4.8.5-36.el7.x86_64 44/47 Cleanup : glibc-common-2.17-260.el7.x86_64 45/47 Cleanup : glibc-2.17-260.el7.x86_64 46/47 Cleanup : libgcc-4.8.5-36.el7.x86_64 47/47 Verifying : gettext-devel-0.19.8.1-2.el7.x86_64 1/47 Verifying : keyutils-libs-devel-1.5.8-3.el7.x86_64 2/47 Verifying : libdb-devel-5.3.21-24.el7.x86_64 3/47 Verifying : pcre-devel-8.32-17.el7.x86_64 4/47 Verifying : gcc-4.8.5-36.el7_6.2.x86_64 5/47 Verifying : pyparsing-1.5.6-9.el7.noarch 6/47 Verifying : glibc-devel-2.17-260.el7_6.5.x86_64 7/47 Verifying : libcom_err-devel-1.42.9-13.el7.x86_64 8/47 Verifying : perl-ExtUtils-MakeMaker-6.68-3.el7.noarch 9/47 Verifying : expat-devel-2.1.0-10.el7_3.x86_64 10/47 Verifying : gdbm-devel-1.10-8.el7.x86_64 11/47 Verifying : libverto-devel-0.2.5-4.el7.x86_64 12/47 Verifying : zlib-devel-1.2.7-18.el7.x86_64 13/47 Verifying : perl-Test-Harness-3.28-3.el7.noarch 14/47 Verifying : kernel-headers-3.10.0-957.21.2.el7.x86_64 15/47 Verifying : krb5-devel-1.15.1-37.el7_6.x86_64 16/47 Verifying : perl-Git-1.8.3.1-20.el7.noarch 17/47 Verifying : libgcc-4.8.5-36.el7_6.2.x86_64 18/47 Verifying : libgomp-4.8.5-36.el7_6.2.x86_64 19/47 Verifying : glibc-common-2.17-260.el7_6.5.x86_64 20/47 Verifying : glibc-2.17-260.el7_6.5.x86_64 21/47 Verifying : gettext-common-devel-0.19.8.1-2.el7.noarch 22/47 Verifying : 1:openssl-1.0.2k-16.el7_6.1.x86_64 23/47 Verifying : 1:perl-ExtUtils-ParseXS-3.18-3.el7.noarch 24/47 Verifying : perl-ExtUtils-Install-1.58-294.el7_6.noarch 25/47 Verifying : git-1.8.3.1-20.el7.x86_64 26/47 Verifying : 1:openssl-libs-1.0.2k-16.el7_6.1.x86_64 27/47 Verifying : libmpc-1.0.1-3.el7.x86_64 28/47 Verifying : libsepol-devel-2.5-10.el7.x86_64 29/47 Verifying : 1:openssl-devel-1.0.2k-16.el7_6.1.x86_64 30/47 Verifying : perl-ExtUtils-Manifest-1.61-244.el7.noarch 31/47 Verifying : libkadm5-1.15.1-37.el7_6.x86_64 32/47 Verifying : mpfr-3.1.1-4.el7.x86_64 33/47 Verifying : glibc-headers-2.17-260.el7_6.5.x86_64 34/47 Verifying : libcurl-devel-7.29.0-51.el7.x86_64 35/47 Verifying : libselinux-devel-2.5-14.1.el7.x86_64 36/47 Verifying : cpp-4.8.5-36.el7_6.2.x86_64 37/47 Verifying : 4:perl-devel-5.16.3-294.el7_6.x86_64 38/47 Verifying : krb5-libs-1.15.1-37.el7_6.x86_64 39/47 Verifying : systemtap-sdt-devel-3.3-3.el7.x86_64 40/47 Verifying : libgcc-4.8.5-36.el7.x86_64 41/47 Verifying : 1:openssl-libs-1.0.2k-16.el7.x86_64 42/47 Verifying : glibc-2.17-260.el7.x86_64 43/47 Verifying : 1:openssl-1.0.2k-16.el7.x86_64 44/47 Verifying : glibc-common-2.17-260.el7.x86_64 45/47 Verifying : libgomp-4.8.5-36.el7.x86_64 46/47 Verifying : krb5-libs-1.15.1-34.el7.x86_64 47/47 Installed: expat-devel.x86_64 0:2.1.0-10.el7_3 gcc.x86_64 0:4.8.5-36.el7_6.2 gettext-devel.x86_64 0:0.19.8.1-2.el7 libcurl-devel.x86_64 0:7.29.0-51.el7 openssl-devel.x86_64 1:1.0.2k-16.el7_6.1 perl-ExtUtils-MakeMaker.noarch 0:6.68-3.el7 zlib-devel.x86_64 0:1.2.7-18.el7 Dependency Installed: cpp.x86_64 0:4.8.5-36.el7_6.2 gdbm-devel.x86_64 0:1.10-8.el7 gettext-common-devel.noarch 0:0.19.8.1-2.el7 git.x86_64 0:1.8.3.1-20.el7 glibc-devel.x86_64 0:2.17-260.el7_6.5 glibc-headers.x86_64 0:2.17-260.el7_6.5 kernel-headers.x86_64 0:3.10.0-957.21.2.el7 keyutils-libs-devel.x86_64 0:1.5.8-3.el7 krb5-devel.x86_64 0:1.15.1-37.el7_6 libcom_err-devel.x86_64 0:1.42.9-13.el7 libdb-devel.x86_64 0:5.3.21-24.el7 libkadm5.x86_64 0:1.15.1-37.el7_6 libmpc.x86_64 0:1.0.1-3.el7 libselinux-devel.x86_64 0:2.5-14.1.el7 libsepol-devel.x86_64 0:2.5-10.el7 libverto-devel.x86_64 0:0.2.5-4.el7 mpfr.x86_64 0:3.1.1-4.el7 pcre-devel.x86_64 0:8.32-17.el7 perl-ExtUtils-Install.noarch 0:1.58-294.el7_6 perl-ExtUtils-Manifest.noarch 0:1.61-244.el7 perl-ExtUtils-ParseXS.noarch 1:3.18-3.el7 perl-Git.noarch 0:1.8.3.1-20.el7 perl-Test-Harness.noarch 0:3.28-3.el7 perl-devel.x86_64 4:5.16.3-294.el7_6 pyparsing.noarch 0:1.5.6-9.el7 systemtap-sdt-devel.x86_64 0:3.3-3.el7 Dependency Updated: glibc.x86_64 0:2.17-260.el7_6.5 glibc-common.x86_64 0:2.17-260.el7_6.5 krb5-libs.x86_64 0:1.15.1-37.el7_6 libgcc.x86_64 0:4.8.5-36.el7_6.2 libgomp.x86_64 0:4.8.5-36.el7_6.2 openssl.x86_64 1:1.0.2k-16.el7_6.1 openssl-libs.x86_64 1:1.0.2k-16.el7_6.1 Complete! You have new mail in /var/spool/mail/root [root@node108.yinzhengjie.org.cn ~]#
[root@node108.yinzhengjie.org.cn ~]# tar -zxf git-2.12.2.tar.gz [root@node108.yinzhengjie.org.cn ~]# cd git-2.12.2 [root@node108.yinzhengjie.org.cn ~/git-2.12.2]# [root@node108.yinzhengjie.org.cn ~/git-2.12.2]# [root@node108.yinzhengjie.org.cn ~/git-2.12.2]# ./configure prefix=/yinzhengjie/softwares/git/
[root@node108.yinzhengjie.org.cn ~/git-2.12.2]# ./configure prefix=/yinzhengjie/softwares/git/ configure: Setting lib to 'lib' (the default) configure: Will try -pthread then -lpthread to enable POSIX Threads. configure: CHECKS for site configuration checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes configure: CHECKS for programs checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking for inline... inline checking if linker supports -R... no checking if linker supports -Wl,-rpath,... yes checking for gar... no checking for ar... ar checking for gtar... gtar checking for gnudiff... no checking for gdiff... no checking for diff... diff checking for asciidoc... no Using 'grep -a' for sane_grep configure: CHECKS for libraries checking for SHA1_Init in -lcrypto... yes checking for curl_global_init in -lcurl... yes checking for curl-config... curl-config checking if Curl supports SSL... yes checking for XML_ParserCreate in -lexpat... yes checking for iconv in -lc... yes checking for deflateBound in -lz... yes checking for socket in -lc... yes checking for inet_ntop... yes checking for inet_pton... yes checking for hstrerror... yes checking for basename in -lc... yes checking for gettext in -lc... yes checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes configure: CHECKS for header files checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/poll.h usability... yes checking sys/poll.h presence... yes checking for sys/poll.h... yes checking for inttypes.h... (cached) yes checking for old iconv()... no configure: CHECKS for typedefs, structures, and compiler characteristics checking for socklen_t... yes checking for struct itimerval... yes checking for struct stat.st_mtimespec.tv_nsec... no checking for struct stat.st_mtim.tv_nsec... yes checking for struct dirent.d_type... yes checking for struct passwd.pw_gecos... yes checking for struct sockaddr_storage... yes checking for struct addrinfo... yes checking for getaddrinfo... yes checking for library containing getaddrinfo... none required checking whether the platform regex supports REG_STARTEND... yes checking whether system succeeds to read fopen'ed directory... no checking whether snprintf() and/or vsnprintf() return bogus value... no checking whether the platform uses typical file type bits... yes configure: CHECKS for library functions checking libgen.h usability... yes checking libgen.h presence... yes checking for libgen.h... yes checking paths.h usability... yes checking paths.h presence... yes checking for paths.h... yes checking libcharset.h usability... no checking libcharset.h presence... no checking for libcharset.h... no checking for strings.h... (cached) yes checking for locale_charset in -liconv... no checking for locale_charset in -lcharset... no checking for clock_gettime... yes checking for library containing clock_gettime... none required checking for CLOCK_MONOTONIC... yes checking for setitimer... yes checking for library containing setitimer... none required checking for strcasestr... yes checking for library containing strcasestr... none required checking for memmem... yes checking for library containing memmem... none required checking for strlcpy... no checking for uintmax_t... yes checking for strtoumax... yes checking for library containing strtoumax... none required checking for setenv... yes checking for library containing setenv... none required checking for unsetenv... yes checking for library containing unsetenv... none required checking for mkdtemp... yes checking for library containing mkdtemp... none required checking for initgroups... yes checking for library containing initgroups... none required checking for getdelim... yes checking for library containing getdelim... none required checking for BSD sysctl... no checking for POSIX Threads with ''... no checking for POSIX Threads with '-mt'... no checking for POSIX Threads with '-pthread'... yes configure: creating ./config.status config.status: creating config.mak.autogen config.status: executing config.mak.autogen commands You have new mail in /var/spool/mail/root [root@node108.yinzhengjie.org.cn ~/git-2.12.2]# echo $? 0 [root@node108.yinzhengjie.org.cn ~/git-2.12.2]#
[root@node108.yinzhengjie.org.cn ~/git-2.12.2]# make && make install \GIT_VERSION = 2.12.2 * new build flags CC credential-store.o * new link flags CC common-main.o CC abspath.o CC advice.o CC alias.o CC alloc.o CC apply.o CC archive.o CC archive-tar.o CC archive-zip.o CC argv-array.o * new prefix flags CC attr.o CC base85.o CC bisect.o CC blob.o CC branch.o CC bulk-checkin.o CC bundle.o CC cache-tree.o CC color.o CC column.o CC combine-diff.o CC commit.o CC compat/obstack.o CC compat/terminal.o CC config.o CC connect.o CC connected.o CC convert.o CC copy.o CC credential.o CC csum-file.o CC ctype.o CC date.o CC decorate.o CC diffcore-break.o CC diffcore-delta.o CC diffcore-order.o CC diffcore-pickaxe.o CC diffcore-rename.o CC diff-delta.o CC diff-lib.o CC diff-no-index.o CC diff.o CC dir.o CC dir-iterator.o CC editor.o CC entry.o CC environment.o CC ewah/bitmap.o CC ewah/ewah_bitmap.o CC ewah/ewah_io.o CC ewah/ewah_rlw.o CC exec_cmd.o CC fetch-pack.o CC fsck.o CC gettext.o CC gpg-interface.o CC graph.o CC grep.o CC hashmap.o GEN common-cmds.h CC help.o CC hex.o CC ident.o CC kwset.o CC levenshtein.o CC line-log.o CC line-range.o CC list-objects.o CC ll-merge.o CC lockfile.o CC log-tree.o CC mailinfo.o CC mailmap.o CC match-trees.o CC merge.o CC merge-blobs.o CC merge-recursive.o CC mergesort.o CC mru.o CC name-hash.o CC notes.o CC notes-cache.o CC notes-merge.o CC notes-utils.o CC object.o CC pack-bitmap.o CC pack-bitmap-write.o CC pack-check.o CC pack-objects.o CC pack-revindex.o CC pack-write.o CC pager.o CC parse-options.o CC parse-options-cb.o CC patch-delta.o CC patch-ids.o CC path.o CC pathspec.o CC pkt-line.o CC preload-index.o CC pretty.o CC prio-queue.o CC progress.o CC prompt.o CC quote.o CC reachable.o CC read-cache.o CC reflog-walk.o CC refs.o CC refs/files-backend.o CC refs/iterator.o CC ref-filter.o CC remote.o CC replace_object.o CC rerere.o CC resolve-undo.o CC revision.o CC run-command.o CC send-pack.o CC sequencer.o CC server-info.o CC setup.o CC sha1-array.o CC sha1-lookup.o CC sha1_file.o CC sha1_name.o CC shallow.o CC sideband.o CC sigchain.o CC split-index.o CC strbuf.o CC streaming.o CC string-list.o CC submodule.o CC submodule-config.o CC symlinks.o CC tag.o CC tempfile.o CC tmp-objdir.o CC trace.o CC trailer.o CC transport.o CC transport-helper.o CC tree-diff.o CC tree.o CC tree-walk.o CC unpack-trees.o CC url.o CC urlmatch.o CC usage.o CC userdiff.o CC utf8.o CC varint.o CC version.o CC versioncmp.o CC walker.o CC wildmatch.o CC worktree.o CC wrapper.o CC write_or_die.o CC ws.o CC wt-status.o CC xdiff-interface.o CC zlib.o CC unix-socket.o CC thread-utils.o CC compat/strlcpy.o CC compat/qsort_s.o AR libgit.a CC xdiff/xdiffi.o CC xdiff/xprepare.o CC xdiff/xutils.o CC xdiff/xemit.o CC xdiff/xmerge.o CC xdiff/xpatience.o CC xdiff/xhistogram.o AR xdiff/lib.a LINK git-credential-store CC daemon.o LINK git-daemon CC fast-import.o LINK git-fast-import CC http-backend.o LINK git-http-backend CC imap-send.o LINK git-imap-send CC sh-i18n--envsubst.o LINK git-sh-i18n--envsubst CC shell.o LINK git-shell CC show-index.o LINK git-show-index CC upload-pack.o LINK git-upload-pack CC remote-testsvn.o CC vcs-svn/line_buffer.o CC vcs-svn/sliding_window.o CC vcs-svn/repo_tree.o CC vcs-svn/fast_export.o CC vcs-svn/svndiff.o CC vcs-svn/svndump.o AR vcs-svn/lib.a LINK git-remote-testsvn CC http.o CC http-walker.o CC http-fetch.o LINK git-http-fetch CC http-push.o LINK git-http-push CC credential-cache.o LINK git-credential-cache CC credential-cache--daemon.o LINK git-credential-cache--daemon CC remote-curl.o LINK git-remote-http LN/CP git-remote-https LN/CP git-remote-ftp LN/CP git-remote-ftps * new script parameters GEN git-bisect GEN git-difftool--helper GEN git-filter-branch GEN git-merge-octopus GEN git-merge-one-file GEN git-merge-resolve GEN git-mergetool GEN git-quiltimport GEN git-rebase GEN git-request-pull GEN git-stash GEN git-submodule GEN git-web--browse SUBDIR perl /usr/bin/perl Makefile.PL PREFIX='/yinzhengjie/softwares/git' INSTALL_BASE='' --localedir='/yinzhengjie/softwares/git/share/locale' Writing perl.mak for Git * new perl-specific parameters GEN git-add--interactive GEN git-archimport GEN git-cvsexportcommit GEN git-cvsimport GEN git-cvsserver GEN git-send-email GEN git-svn * new Python interpreter location GEN git-p4 GEN git-instaweb GEN git-mergetool--lib GEN git-parse-remote GEN git-rebase--am GEN git-rebase--interactive GEN git-rebase--merge GEN git-sh-setup GEN git-sh-i18n CC git.o CC builtin/add.o CC builtin/am.o CC builtin/annotate.o CC builtin/apply.o CC builtin/archive.o CC builtin/bisect--helper.o CC builtin/blame.o CC builtin/branch.o CC builtin/bundle.o CC builtin/cat-file.o CC builtin/check-attr.o CC builtin/check-ignore.o CC builtin/check-mailmap.o CC builtin/check-ref-format.o CC builtin/checkout-index.o CC builtin/checkout.o CC builtin/clean.o CC builtin/clone.o CC builtin/column.o CC builtin/commit-tree.o CC builtin/commit.o CC builtin/config.o CC builtin/count-objects.o CC builtin/credential.o CC builtin/describe.o CC builtin/diff-files.o CC builtin/diff-index.o CC builtin/diff-tree.o CC builtin/diff.o CC builtin/difftool.o CC builtin/fast-export.o CC builtin/fetch-pack.o CC builtin/fetch.o CC builtin/fmt-merge-msg.o CC builtin/for-each-ref.o CC builtin/fsck.o CC builtin/gc.o CC builtin/get-tar-commit-id.o CC builtin/grep.o CC builtin/hash-object.o CC builtin/help.o CC builtin/index-pack.o CC builtin/init-db.o CC builtin/interpret-trailers.o CC builtin/log.o CC builtin/ls-files.o CC builtin/ls-remote.o CC builtin/ls-tree.o CC builtin/mailinfo.o CC builtin/mailsplit.o CC builtin/merge.o CC builtin/merge-base.o CC builtin/merge-file.o CC builtin/merge-index.o CC builtin/merge-ours.o CC builtin/merge-recursive.o CC builtin/merge-tree.o CC builtin/mktag.o CC builtin/mktree.o CC builtin/mv.o CC builtin/name-rev.o CC builtin/notes.o CC builtin/pack-objects.o CC builtin/pack-redundant.o CC builtin/pack-refs.o CC builtin/patch-id.o CC builtin/prune-packed.o CC builtin/prune.o CC builtin/pull.o CC builtin/push.o CC builtin/read-tree.o CC builtin/receive-pack.o CC builtin/reflog.o CC builtin/remote.o CC builtin/remote-ext.o CC builtin/remote-fd.o CC builtin/repack.o CC builtin/replace.o CC builtin/rerere.o CC builtin/reset.o CC builtin/rev-list.o CC builtin/rev-parse.o CC builtin/revert.o CC builtin/rm.o CC builtin/send-pack.o CC builtin/shortlog.o CC builtin/show-branch.o CC builtin/show-ref.o CC builtin/stripspace.o CC builtin/submodule--helper.o CC builtin/symbolic-ref.o CC builtin/tag.o CC builtin/unpack-file.o CC builtin/unpack-objects.o CC builtin/update-index.o CC builtin/update-ref.o CC builtin/update-server-info.o CC builtin/upload-archive.o CC builtin/var.o CC builtin/verify-commit.o CC builtin/verify-pack.o CC builtin/verify-tag.o CC builtin/worktree.o CC builtin/write-tree.o LINK git BUILTIN git-add BUILTIN git-am BUILTIN git-annotate BUILTIN git-apply BUILTIN git-archive BUILTIN git-bisect--helper BUILTIN git-blame BUILTIN git-branch BUILTIN git-bundle BUILTIN git-cat-file BUILTIN git-check-attr BUILTIN git-check-ignore BUILTIN git-check-mailmap BUILTIN git-check-ref-format BUILTIN git-checkout-index BUILTIN git-checkout BUILTIN git-clean BUILTIN git-clone BUILTIN git-column BUILTIN git-commit-tree BUILTIN git-commit BUILTIN git-config BUILTIN git-count-objects BUILTIN git-credential BUILTIN git-describe BUILTIN git-diff-files BUILTIN git-diff-index BUILTIN git-diff-tree BUILTIN git-diff BUILTIN git-difftool BUILTIN git-fast-export BUILTIN git-fetch-pack BUILTIN git-fetch BUILTIN git-fmt-merge-msg BUILTIN git-for-each-ref BUILTIN git-fsck BUILTIN git-gc BUILTIN git-get-tar-commit-id BUILTIN git-grep BUILTIN git-hash-object BUILTIN git-help BUILTIN git-index-pack BUILTIN git-init-db BUILTIN git-interpret-trailers BUILTIN git-log BUILTIN git-ls-files BUILTIN git-ls-remote BUILTIN git-ls-tree BUILTIN git-mailinfo BUILTIN git-mailsplit BUILTIN git-merge BUILTIN git-merge-base BUILTIN git-merge-file BUILTIN git-merge-index BUILTIN git-merge-ours BUILTIN git-merge-recursive BUILTIN git-merge-tree BUILTIN git-mktag BUILTIN git-mktree BUILTIN git-mv BUILTIN git-name-rev BUILTIN git-notes BUILTIN git-pack-objects BUILTIN git-pack-redundant BUILTIN git-pack-refs BUILTIN git-patch-id BUILTIN git-prune-packed BUILTIN git-prune BUILTIN git-pull BUILTIN git-push BUILTIN git-read-tree BUILTIN git-receive-pack BUILTIN git-reflog BUILTIN git-remote BUILTIN git-remote-ext BUILTIN git-remote-fd BUILTIN git-repack BUILTIN git-replace BUILTIN git-rerere BUILTIN git-reset BUILTIN git-rev-list BUILTIN git-rev-parse BUILTIN git-revert BUILTIN git-rm BUILTIN git-send-pack BUILTIN git-shortlog BUILTIN git-show-branch BUILTIN git-show-ref BUILTIN git-stripspace BUILTIN git-submodule--helper BUILTIN git-symbolic-ref BUILTIN git-tag BUILTIN git-unpack-file BUILTIN git-unpack-objects BUILTIN git-update-index BUILTIN git-update-ref BUILTIN git-update-server-info BUILTIN git-upload-archive BUILTIN git-var BUILTIN git-verify-commit BUILTIN git-verify-pack BUILTIN git-verify-tag BUILTIN git-worktree BUILTIN git-write-tree BUILTIN git-cherry BUILTIN git-cherry-pick BUILTIN git-format-patch BUILTIN git-fsck-objects BUILTIN git-init BUILTIN git-merge-subtree BUILTIN git-show BUILTIN git-stage BUILTIN git-status BUILTIN git-whatchanged SUBDIR git-gui GITGUI_VERSION = 0.20.0.44.gccc98 * new locations or Tcl/Tk interpreter GEN git-gui INDEX lib/ * tclsh failed; using unoptimized loading MSGFMT po/de.msg 520 translated. MSGFMT po/pt_pt.msg 550 translated. MSGFMT po/vi.msg 543 translated. MSGFMT po/hu.msg 514 translated. MSGFMT po/nb.msg 474 translated, 39 untranslated. MSGFMT po/sv.msg 547 translated. MSGFMT po/fr.msg 520 translated. MSGFMT po/it.msg 519 translated, 1 untranslated. MSGFMT po/ja.msg 546 translated, 1 untranslated. MSGFMT po/pt_br.msg 520 translated. MSGFMT po/bg.msg 565 translated. MSGFMT po/ru.msg 520 translated. MSGFMT po/zh_cn.msg 366 translated, 7 fuzzy, 17 untranslated. MSGFMT po/el.msg 381 translated, 4 fuzzy, 6 untranslated. SUBDIR gitk-git * new Tcl/Tk interpreter location GEN gitk-wish Generating catalog po/de.msg msgfmt --statistics --tcl po/de.po -l de -d po/ 307 translated messages. Generating catalog po/pt_pt.msg msgfmt --statistics --tcl po/pt_pt.po -l pt_pt -d po/ 311 translated messages. Generating catalog po/vi.msg msgfmt --statistics --tcl po/vi.po -l vi -d po/ 307 translated messages. Generating catalog po/ca.msg msgfmt --statistics --tcl po/ca.po -l ca -d po/ 307 translated messages. Generating catalog po/hu.msg msgfmt --statistics --tcl po/hu.po -l hu -d po/ 277 translated messages, 18 fuzzy translations, 12 untranslated messages. Generating catalog po/es.msg msgfmt --statistics --tcl po/es.po -l es -d po/ 184 translated messages, 46 fuzzy translations, 77 untranslated messages. Generating catalog po/sv.msg msgfmt --statistics --tcl po/sv.po -l sv -d po/ 311 translated messages. Generating catalog po/fr.msg msgfmt --statistics --tcl po/fr.po -l fr -d po/ 311 translated messages. Generating catalog po/it.msg msgfmt --statistics --tcl po/it.po -l it -d po/ 274 translated messages, 17 fuzzy translations, 16 untranslated messages. Generating catalog po/ja.msg msgfmt --statistics --tcl po/ja.po -l ja -d po/ 311 translated messages. Generating catalog po/pt_br.msg msgfmt --statistics --tcl po/pt_br.po -l pt_br -d po/ 279 translated messages, 16 fuzzy translations, 12 untranslated messages. Generating catalog po/bg.msg msgfmt --statistics --tcl po/bg.po -l bg -d po/ 311 translated messages. Generating catalog po/ru.msg msgfmt --statistics --tcl po/ru.po -l ru -d po/ 317 translated messages. SUBDIR perl /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/SVN/Editor.pm >blib/lib/Git/SVN/Editor.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/SVN/Migration.pm >blib/lib/Git/SVN/Migration.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/SVN/Log.pm >blib/lib/Git/SVN/Log.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/SVN.pm >blib/lib/Git/SVN.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/SVN/Memoize/YAML.pm >blib/lib/Git/SVN/Memoize/YAML.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/SVN/Ra.pm >blib/lib/Git/SVN/Ra.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/I18N.pm >blib/lib/Git/I18N.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/SVN/Prompt.pm >blib/lib/Git/SVN/Prompt.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/SVN/GlobSpec.pm >blib/lib/Git/SVN/GlobSpec.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/SVN/Fetcher.pm >blib/lib/Git/SVN/Fetcher.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/IndexInfo.pm >blib/lib/Git/IndexInfo.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/SVN/Utils.pm >blib/lib/Git/SVN/Utils.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git.pm >blib/lib/Git.pm Manifying blib/man3/Git::SVN::Editor.3pm Manifying blib/man3/Git::SVN::Memoize::YAML.3pm Manifying blib/man3/Git::SVN::Ra.3pm Manifying blib/man3/Git::I18N.3pm Manifying blib/man3/Git::SVN::Prompt.3pm Manifying blib/man3/Git::SVN::Fetcher.3pm Manifying blib/man3/Git::SVN::Utils.3pm Manifying blib/man3/Git.3pm SUBDIR templates MSGFMT po/build/locale/pt_PT/LC_MESSAGES/git.mo 3139 translated messages. MSGFMT po/build/locale/de/LC_MESSAGES/git.mo 3139 translated messages. MSGFMT po/build/locale/vi/LC_MESSAGES/git.mo 3139 translated messages. MSGFMT po/build/locale/is/LC_MESSAGES/git.mo 14 translated messages. MSGFMT po/build/locale/ca/LC_MESSAGES/git.mo 3119 translated messages, 20 untranslated messages. MSGFMT po/build/locale/ko/LC_MESSAGES/git.mo 3139 translated messages. MSGFMT po/build/locale/sv/LC_MESSAGES/git.mo 3139 translated messages. MSGFMT po/build/locale/fr/LC_MESSAGES/git.mo 3139 translated messages. MSGFMT po/build/locale/it/LC_MESSAGES/git.mo 716 translated messages, 350 untranslated messages. MSGFMT po/build/locale/bg/LC_MESSAGES/git.mo 2913 translated messages. MSGFMT po/build/locale/ru/LC_MESSAGES/git.mo 2913 translated messages. MSGFMT po/build/locale/zh_CN/LC_MESSAGES/git.mo 3139 translated messages. CC t/helper/test-chmtime.o LINK t/helper/test-chmtime CC t/helper/test-ctype.o LINK t/helper/test-ctype CC t/helper/test-config.o LINK t/helper/test-config CC t/helper/test-date.o LINK t/helper/test-date CC t/helper/test-delta.o LINK t/helper/test-delta CC t/helper/test-dump-cache-tree.o LINK t/helper/test-dump-cache-tree CC t/helper/test-dump-split-index.o LINK t/helper/test-dump-split-index CC t/helper/test-dump-untracked-cache.o LINK t/helper/test-dump-untracked-cache CC t/helper/test-fake-ssh.o LINK t/helper/test-fake-ssh CC t/helper/test-genrandom.o LINK t/helper/test-genrandom CC t/helper/test-hashmap.o LINK t/helper/test-hashmap CC t/helper/test-index-version.o LINK t/helper/test-index-version CC t/helper/test-line-buffer.o LINK t/helper/test-line-buffer CC t/helper/test-match-trees.o LINK t/helper/test-match-trees CC t/helper/test-mergesort.o LINK t/helper/test-mergesort CC t/helper/test-mktemp.o LINK t/helper/test-mktemp CC t/helper/test-parse-options.o LINK t/helper/test-parse-options CC t/helper/test-path-utils.o LINK t/helper/test-path-utils CC t/helper/test-prio-queue.o LINK t/helper/test-prio-queue CC t/helper/test-read-cache.o LINK t/helper/test-read-cache CC t/helper/test-regex.o LINK t/helper/test-regex CC t/helper/test-revision-walking.o LINK t/helper/test-revision-walking CC t/helper/test-run-command.o LINK t/helper/test-run-command CC t/helper/test-scrap-cache-tree.o LINK t/helper/test-scrap-cache-tree CC t/helper/test-sha1.o LINK t/helper/test-sha1 CC t/helper/test-sha1-array.o LINK t/helper/test-sha1-array CC t/helper/test-sigchain.o LINK t/helper/test-sigchain CC t/helper/test-string-list.o LINK t/helper/test-string-list CC t/helper/test-submodule-config.o LINK t/helper/test-submodule-config CC t/helper/test-subprocess.o LINK t/helper/test-subprocess CC t/helper/test-svn-fe.o LINK t/helper/test-svn-fe CC t/helper/test-urlmatch-normalization.o LINK t/helper/test-urlmatch-normalization CC t/helper/test-wildmatch.o LINK t/helper/test-wildmatch GEN bin-wrappers/git GEN bin-wrappers/git-upload-pack GEN bin-wrappers/git-receive-pack GEN bin-wrappers/git-upload-archive GEN bin-wrappers/git-shell GEN bin-wrappers/git-cvsserver GEN bin-wrappers/test-chmtime GEN bin-wrappers/test-ctype GEN bin-wrappers/test-config GEN bin-wrappers/test-date GEN bin-wrappers/test-delta GEN bin-wrappers/test-dump-cache-tree GEN bin-wrappers/test-dump-split-index GEN bin-wrappers/test-dump-untracked-cache GEN bin-wrappers/test-fake-ssh GEN bin-wrappers/test-genrandom GEN bin-wrappers/test-hashmap GEN bin-wrappers/test-index-version GEN bin-wrappers/test-line-buffer GEN bin-wrappers/test-match-trees GEN bin-wrappers/test-mergesort GEN bin-wrappers/test-mktemp GEN bin-wrappers/test-parse-options GEN bin-wrappers/test-path-utils GEN bin-wrappers/test-prio-queue GEN bin-wrappers/test-read-cache GEN bin-wrappers/test-regex GEN bin-wrappers/test-revision-walking GEN bin-wrappers/test-run-command GEN bin-wrappers/test-scrap-cache-tree GEN bin-wrappers/test-sha1 GEN bin-wrappers/test-sha1-array GEN bin-wrappers/test-sigchain GEN bin-wrappers/test-string-list GEN bin-wrappers/test-submodule-config GEN bin-wrappers/test-subprocess GEN bin-wrappers/test-svn-fe GEN bin-wrappers/test-urlmatch-normalization GEN bin-wrappers/test-wildmatch GEN git-remote-testgit SUBDIR perl /usr/bin/perl Makefile.PL PREFIX='/yinzhengjie/softwares/git' INSTALL_BASE='' --localedir='/yinzhengjie/softwares/git/share/locale' Writing perl.mak for Git GEN git-add--interactive GEN git-archimport GEN git-cvsexportcommit GEN git-cvsimport GEN git-cvsserver GEN git-send-email GEN git-svn SUBDIR git-gui SUBDIR gitk-git SUBDIR perl /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/SVN/Editor.pm >blib/lib/Git/SVN/Editor.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/SVN/Migration.pm >blib/lib/Git/SVN/Migration.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/SVN/Log.pm >blib/lib/Git/SVN/Log.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/SVN.pm >blib/lib/Git/SVN.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/SVN/Memoize/YAML.pm >blib/lib/Git/SVN/Memoize/YAML.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/SVN/Ra.pm >blib/lib/Git/SVN/Ra.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/I18N.pm >blib/lib/Git/I18N.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/SVN/Prompt.pm >blib/lib/Git/SVN/Prompt.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/SVN/GlobSpec.pm >blib/lib/Git/SVN/GlobSpec.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/SVN/Fetcher.pm >blib/lib/Git/SVN/Fetcher.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/IndexInfo.pm >blib/lib/Git/IndexInfo.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git/SVN/Utils.pm >blib/lib/Git/SVN/Utils.pm /usr/bin/perl -pe "s<\Q++LOCALEDIR++\E></yinzhengjie/softwares/git/share/locale>" <Git.pm >blib/lib/Git.pm SUBDIR templates install -d -m 755 '/yinzhengjie/softwares/git/bin' install -d -m 755 '/yinzhengjie/softwares/git/libexec/git-core' install git-credential-store git-daemon git-fast-import git-http-backend git-imap-send git-sh-i18n--envsubst git-shell git-show-index git-upload-pack git-remote-testsvn git-http-fetch git-http-push git-credential-cache git-credential-cache--daemon git-remote-http git-remote-https git-remote-ftp git-remote-ftps git-bisect git-difftool--helper git-filter-branch git-merge-octopus git-merge-one-file git-merge-resolve git-mergetool git-quiltimport git-rebase git-request-pull git-stash git-submodule git-web--browse git-add--interactive git-archimport git-cvsexportcommit git-cvsimport git-cvsserver git-send-email git-svn git-p4 git-instaweb '/yinzhengjie/softwares/git/libexec/git-core' install -m 644 git-mergetool--lib git-parse-remote git-rebase--am git-rebase--interactive git-rebase--merge git-sh-setup git-sh-i18n '/yinzhengjie/softwares/git/libexec/git-core' install git git-upload-pack git-receive-pack git-upload-archive git-shell git-cvsserver '/yinzhengjie/softwares/git/bin' make -C templates DESTDIR='' install make[1]: Entering directory `/root/git-2.12.2/templates' install -d -m 755 '/yinzhengjie/softwares/git/share/git-core/templates' (cd blt && gtar cf - .) | \ (cd '/yinzhengjie/softwares/git/share/git-core/templates' && umask 022 && gtar xof -) make[1]: Leaving directory `/root/git-2.12.2/templates' install -d -m 755 '/yinzhengjie/softwares/git/libexec/git-core/mergetools' install -m 644 mergetools/* '/yinzhengjie/softwares/git/libexec/git-core/mergetools' install -d -m 755 '/yinzhengjie/softwares/git/share/locale' (cd po/build/locale && gtar cf - .) | \ (cd '/yinzhengjie/softwares/git/share/locale' && umask 022 && gtar xof -) make -C perl prefix='/yinzhengjie/softwares/git' DESTDIR='' install make[1]: Entering directory `/root/git-2.12.2/perl' make[2]: Entering directory `/root/git-2.12.2/perl' Installing /yinzhengjie/softwares/git/share/perl5/Git.pm Installing /yinzhengjie/softwares/git/share/perl5/Git/SVN.pm Installing /yinzhengjie/softwares/git/share/perl5/Git/I18N.pm Installing /yinzhengjie/softwares/git/share/perl5/Git/IndexInfo.pm Installing /yinzhengjie/softwares/git/share/perl5/Git/SVN/Editor.pm Installing /yinzhengjie/softwares/git/share/perl5/Git/SVN/Migration.pm Installing /yinzhengjie/softwares/git/share/perl5/Git/SVN/Log.pm Installing /yinzhengjie/softwares/git/share/perl5/Git/SVN/Ra.pm Installing /yinzhengjie/softwares/git/share/perl5/Git/SVN/Prompt.pm Installing /yinzhengjie/softwares/git/share/perl5/Git/SVN/GlobSpec.pm Installing /yinzhengjie/softwares/git/share/perl5/Git/SVN/Fetcher.pm Installing /yinzhengjie/softwares/git/share/perl5/Git/SVN/Utils.pm Installing /yinzhengjie/softwares/git/share/perl5/Git/SVN/Memoize/YAML.pm Installing /yinzhengjie/softwares/git/share/man/man3/Git::SVN::Editor.3pm Installing /yinzhengjie/softwares/git/share/man/man3/Git::SVN::Memoize::YAML.3pm Installing /yinzhengjie/softwares/git/share/man/man3/Git::SVN::Ra.3pm Installing /yinzhengjie/softwares/git/share/man/man3/Git::I18N.3pm Installing /yinzhengjie/softwares/git/share/man/man3/Git::SVN::Prompt.3pm Installing /yinzhengjie/softwares/git/share/man/man3/Git::SVN::Fetcher.3pm Installing /yinzhengjie/softwares/git/share/man/man3/Git::SVN::Utils.3pm Installing /yinzhengjie/softwares/git/share/man/man3/Git.3pm Appending installation info to /yinzhengjie/softwares/git/lib64/perl5/perllocal.pod make[2]: Leaving directory `/root/git-2.12.2/perl' make[1]: Leaving directory `/root/git-2.12.2/perl' make -C gitweb install make[1]: Entering directory `/root/git-2.12.2/gitweb' make[2]: Entering directory `/root/git-2.12.2' make[2]: `GIT-VERSION-FILE' is up to date. make[2]: Leaving directory `/root/git-2.12.2' GEN gitweb.cgi GEN static/gitweb.js install -d -m 755 '/yinzhengjie/softwares/git/share/gitweb' install -m 755 gitweb.cgi '/yinzhengjie/softwares/git/share/gitweb' install -d -m 755 '/yinzhengjie/softwares/git/share/gitweb/static' install -m 644 static/gitweb.js static/gitweb.css static/git-logo.png static/git-favicon.png '/yinzhengjie/softwares/git/share/gitweb/static' make[1]: Leaving directory `/root/git-2.12.2/gitweb' make -C gitk-git install make[1]: Entering directory `/root/git-2.12.2/gitk-git' install -d -m 755 '/yinzhengjie/softwares/git/bin' install -m 755 gitk-wish '/yinzhengjie/softwares/git/bin'/gitk install -d -m 755 '/yinzhengjie/softwares/git/share/gitk/lib/msgs' install -m 644 po/de.msg '/yinzhengjie/softwares/git/share/gitk/lib/msgs' && install -m 644 po/ja.msg '/yinzhengjie/softwares/git/share/gitk/lib/msgs' && install -m 644 po/sv.msg '/yinzhengjie/softwares/git/share/gitk/lib/msgs' && install -m 644 po/it.msg '/yinzhengjie/softwares/git/share/gitk/lib/msgs' && install -m 644 po/hu.msg '/yinzhengjie/softwares/git/share/gitk/lib/msgs' && install -m 644 po/pt_pt.msg '/yinzhengjie/softwares/git/share/gitk/lib/msgs' && install -m 644 po/fr.msg '/yinzhengjie/softwares/git/share/gitk/lib/msgs' && install -m 644 po/pt_br.msg '/yinzhengjie/softwares/git/share/gitk/lib/msgs' && install -m 644 po/ru.msg '/yinzhengjie/softwares/git/share/gitk/lib/msgs' && install -m 644 po/ca.msg '/yinzhengjie/softwares/git/share/gitk/lib/msgs' && install -m 644 po/vi.msg '/yinzhengjie/softwares/git/share/gitk/lib/msgs' && install -m 644 po/bg.msg '/yinzhengjie/softwares/git/share/gitk/lib/msgs' && install -m 644 po/es.msg '/yinzhengjie/softwares/git/share/gitk/lib/msgs' && true make[1]: Leaving directory `/root/git-2.12.2/gitk-git' make -C git-gui gitexecdir='/yinzhengjie/softwares/git/libexec/git-core' install make[1]: Entering directory `/root/git-2.12.2/git-gui' DEST /yinzhengjie/softwares/git/libexec/git-core INSTALL 755 git-gui INSTALL 755 git-gui--askpass LINK git-citool -> git-gui DEST /yinzhengjie/softwares/git/share/git-gui/lib INSTALL 644 tclIndex INSTALL 644 themed.tcl INSTALL 644 line.tcl INSTALL 644 console.tcl INSTALL 644 checkout_op.tcl INSTALL 644 transport.tcl INSTALL 644 remote_add.tcl INSTALL 644 browser.tcl INSTALL 644 tools.tcl INSTALL 644 branch_checkout.tcl INSTALL 644 spellcheck.tcl INSTALL 644 status_bar.tcl INSTALL 644 diff.tcl INSTALL 644 remote.tcl INSTALL 644 choose_font.tcl INSTALL 644 option.tcl INSTALL 644 mergetool.tcl INSTALL 644 tools_dlg.tcl INSTALL 644 search.tcl INSTALL 644 shortcut.tcl INSTALL 644 branch_rename.tcl INSTALL 644 class.tcl INSTALL 644 remote_branch_delete.tcl INSTALL 644 choose_repository.tcl INSTALL 644 about.tcl INSTALL 644 blame.tcl INSTALL 644 branch.tcl INSTALL 644 win32.tcl INSTALL 644 sshkey.tcl INSTALL 644 branch_create.tcl INSTALL 644 commit.tcl INSTALL 644 branch_delete.tcl INSTALL 644 index.tcl INSTALL 644 encoding.tcl INSTALL 644 logo.tcl INSTALL 644 date.tcl INSTALL 644 choose_rev.tcl INSTALL 644 database.tcl INSTALL 644 error.tcl INSTALL 644 merge.tcl INSTALL 644 git-gui.ico INSTALL 644 win32_shortcut.js DEST /yinzhengjie/softwares/git/share/git-gui/lib/msgs INSTALL 644 pt_br.msg INSTALL 644 hu.msg INSTALL 644 zh_cn.msg INSTALL 644 de.msg INSTALL 644 sv.msg INSTALL 644 it.msg INSTALL 644 ja.msg INSTALL 644 pt_pt.msg INSTALL 644 fr.msg INSTALL 644 ru.msg INSTALL 644 el.msg INSTALL 644 vi.msg INSTALL 644 bg.msg INSTALL 644 nb.msg make[1]: Leaving directory `/root/git-2.12.2/git-gui' bindir=$(cd '/yinzhengjie/softwares/git/bin' && pwd) && \ execdir=$(cd '/yinzhengjie/softwares/git/libexec/git-core' && pwd) && \ { test "$bindir/" = "$execdir/" || \ for p in git git-shell git-upload-pack git-cvsserver; do \ rm -f "$execdir/$p" && \ test -z "" && \ ln "$bindir/$p" "$execdir/$p" 2>/dev/null || \ cp "$bindir/$p" "$execdir/$p" || exit; \ done; \ } && \ for p in git-receive-pack git-upload-archive; do \ rm -f "$bindir/$p" && \ test -z "" && \ ln "$bindir/git" "$bindir/$p" 2>/dev/null || \ ln -s "git" "$bindir/$p" 2>/dev/null || \ cp "$bindir/git" "$bindir/$p" || exit; \ done && \ for p in git-add git-am git-annotate git-apply git-archive git-bisect--helper git-blame git-branch git-bundle git-cat-file git-check-attr git-check-ignore git-check-mailmap git-check-ref-format git-checkout-index git-checkout git-clean git-clone git-column git-commit-tree git-commit git-config git-count-objects git-credential git-describe git-diff-files git-diff-index git-diff-tree git-diff git-difftool git-fast-export git-fetch-pack git-fetch git-fmt-merge-msg git-for-each-ref git-fsck git-gc git-get-tar-commit-id git-grep git-hash-object git-help git-index-pack git-init-db git-interpret-trailers git-log git-ls-files git-ls-remote git-ls-tree git-mailinfo git-mailsplit git-merge git-merge-base git-merge-file git-merge-index git-merge-ours git-merge-recursive git-merge-tree git-mktag git-mktree git-mv git-name-rev git-notes git-pack-objects git-pack-redundant git-pack-refs git-patch-id git-prune-packed git-prune git-pull git-push git-read-tree git-receive-pack git-reflog git-remote git-remote-ext git-remote-fd git-repack git-replace git-rerere git-reset git-rev-list git-rev-parse git-revert git-rm git-send-pack git-shortlog git-show-branch git-show-ref git-stripspace git-submodule--helper git-symbolic-ref git-tag git-unpack-file git-unpack-objects git-update-index git-update-ref git-update-server-info git-upload-archive git-var git-verify-commit git-verify-pack git-verify-tag git-worktree git-write-tree git-cherry git-cherry-pick git-format-patch git-fsck-objects git-init git-merge-subtree git-show git-stage git-status git-whatchanged; do \ rm -f "$execdir/$p" && \ test -z "" && \ ln "$execdir/git" "$execdir/$p" 2>/dev/null || \ ln -s "git" "$execdir/$p" 2>/dev/null || \ cp "$execdir/git" "$execdir/$p" || exit; \ done && \ remote_curl_aliases="git-remote-https git-remote-ftp git-remote-ftps" && \ for p in $remote_curl_aliases; do \ rm -f "$execdir/$p" && \ test -z "" && \ ln "$execdir/git-remote-http" "$execdir/$p" 2>/dev/null || \ ln -s "git-remote-http" "$execdir/$p" 2>/dev/null || \ cp "$execdir/git-remote-http" "$execdir/$p" || exit; \ done && \ ./check_bindir "z$bindir" "z$execdir" "$bindir/git-add" You have new mail in /var/spool/mail/root [root@node108.yinzhengjie.org.cn ~/git-2.12.2]# echo $? 0 [root@node108.yinzhengjie.org.cn ~/git-2.12.2]#
[root@node108.yinzhengjie.org.cn ~]# ll /yinzhengjie/softwares/git/bin/ total 41864 -rwxr-xr-x 118 root root 10398792 Jun 13 03:47 git -rwxr-xr-x 2 root root 162424 Jun 13 03:47 git-cvsserver -rwxr-xr-x 1 root root 351673 Jun 13 03:47 gitk -rwxr-xr-x 118 root root 10398792 Jun 13 03:47 git-receive-pack -rwxr-xr-x 2 root root 5368240 Jun 13 03:47 git-shell -rwxr-xr-x 118 root root 10398792 Jun 13 03:47 git-upload-archive -rwxr-xr-x 2 root root 5781800 Jun 13 03:47 git-upload-pack [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# tail -3 /etc/profile #为git配置环境变量 #ADD git PATH by yinzhengjie GIT_HOME=/yinzhengjie/softwares/git PATH=$PATH:$GIT_HOME/bin [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# source /etc/profile [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# git version git version 2.12.2 [root@node108.yinzhengjie.org.cn ~]#
3>.配置Git
[root@node108.yinzhengjie.org.cn ~]# git config --list #查看全局配置信息,等效于"git config -l" [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# git config --global user.name "yinzhengjie" #提交git用户信息,即配置使用者git的用户 [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# git config --global user.email "y1053419035@qq.com" #提交邮箱,即配置git使用的邮箱 [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# git config --global color.ui true #显示语法高亮 [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# git config --list user.name=yinzhengjie user.email=y1053419035@qq.com color.ui=true [root@node108.yinzhengjie.org.cn ~]#
4>.git的基本使用
博主推荐阅读:https://www.cnblogs.com/yinzhengjie/p/9545646.html
三.安装Apache服务并启动
[root@node108.yinzhengjie.org.cn ~]# yum -y install httpd Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.tuna.tsinghua.edu.cn * extras: mirror.bit.edu.cn * updates: mirror.bit.edu.cn Resolving Dependencies --> Running transaction check ---> Package httpd.x86_64 0:2.4.6-89.el7.centos will be installed --> Processing Dependency: httpd-tools = 2.4.6-89.el7.centos for package: httpd-2.4.6-89.el7.centos.x86_64 --> Processing Dependency: /etc/mime.types for package: httpd-2.4.6-89.el7.centos.x86_64 --> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.4.6-89.el7.centos.x86_64 --> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.4.6-89.el7.centos.x86_64 --> Running transaction check ---> Package apr.x86_64 0:1.4.8-3.el7_4.1 will be installed ---> Package apr-util.x86_64 0:1.5.2-6.el7 will be installed ---> Package httpd-tools.x86_64 0:2.4.6-89.el7.centos will be installed ---> Package mailcap.noarch 0:2.1.41-2.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ====================================================================================================================================================================================================================== Package Arch Version Repository Size ====================================================================================================================================================================================================================== Installing: httpd x86_64 2.4.6-89.el7.centos updates 2.7 M Installing for dependencies: apr x86_64 1.4.8-3.el7_4.1 base 103 k apr-util x86_64 1.5.2-6.el7 base 92 k httpd-tools x86_64 2.4.6-89.el7.centos updates 90 k mailcap noarch 2.1.41-2.el7 base 31 k Transaction Summary ====================================================================================================================================================================================================================== Install 1 Package (+4 Dependent packages) Total download size: 3.0 M Installed size: 10 M Downloading packages: (1/5): apr-1.4.8-3.el7_4.1.x86_64.rpm | 103 kB 00:00:00 (2/5): httpd-tools-2.4.6-89.el7.centos.x86_64.rpm | 90 kB 00:00:00 (3/5): mailcap-2.1.41-2.el7.noarch.rpm | 31 kB 00:00:00 (4/5): httpd-2.4.6-89.el7.centos.x86_64.rpm | 2.7 MB 00:00:01 (5/5): apr-util-1.5.2-6.el7.x86_64.rpm | 92 kB 00:00:02 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 1.1 MB/s | 3.0 MB 00:00:02 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : apr-1.4.8-3.el7_4.1.x86_64 1/5 Installing : apr-util-1.5.2-6.el7.x86_64 2/5 Installing : httpd-tools-2.4.6-89.el7.centos.x86_64 3/5 Installing : mailcap-2.1.41-2.el7.noarch 4/5 Installing : httpd-2.4.6-89.el7.centos.x86_64 5/5 Verifying : httpd-tools-2.4.6-89.el7.centos.x86_64 1/5 Verifying : mailcap-2.1.41-2.el7.noarch 2/5 Verifying : httpd-2.4.6-89.el7.centos.x86_64 3/5 Verifying : apr-1.4.8-3.el7_4.1.x86_64 4/5 Verifying : apr-util-1.5.2-6.el7.x86_64 5/5 Installed: httpd.x86_64 0:2.4.6-89.el7.centos Dependency Installed: apr.x86_64 0:1.4.8-3.el7_4.1 apr-util.x86_64 0:1.5.2-6.el7 httpd-tools.x86_64 0:2.4.6-89.el7.centos mailcap.noarch 0:2.1.41-2.el7 Complete! [root@node108.yinzhengjie.org.cn ~]#
[root@node108.yinzhengjie.org.cn ~]# systemctl start httpd [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# systemctl enable httpd Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service. [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# systemctl status httpd ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Active: active (running) since Wed 2019-06-12 21:04:09 CST; 12s ago Docs: man:httpd(8) man:apachectl(8) Main PID: 14278 (httpd) Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec" CGroup: /system.slice/httpd.service ├─14278 /usr/sbin/httpd -DFOREGROUND ├─14280 /usr/sbin/httpd -DFOREGROUND ├─14281 /usr/sbin/httpd -DFOREGROUND ├─14283 /usr/sbin/httpd -DFOREGROUND ├─14284 /usr/sbin/httpd -DFOREGROUND └─14285 /usr/sbin/httpd -DFOREGROUND Jun 12 21:04:09 node108.yinzhengjie.org.cn systemd[1]: Starting The Apache HTTP Server... Jun 12 21:04:09 node108.yinzhengjie.org.cn systemd[1]: Started The Apache HTTP Server. [root@node108.yinzhengjie.org.cn ~]#
四.Gerrit环境部署
1>.在官方下载最新的Gerrit版本 (https://www.gerritcodereview.com/)
2>.根据提示一步一步安装gerrit
[root@node108.yinzhengjie.org.cn ~]# rz [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# ll total 67108 -rw-r--r-- 1 root root 68714982 Jun 12 11:53 gerrit-3.0.0.war [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# java -jar gerrit-3.0.0.war init -d review_site Using secure store: com.google.gerrit.server.securestore.DefaultSecureStore [2019-06-12 20:41:07,299] [main] INFO com.google.gerrit.server.config.GerritServerConfigProvider : No /root/review_site/etc/gerrit.config; assuming defaults *** Gerrit Code Review 3.0.0 *** Create '/root/review_site' [Y/n]? y #程序会自动创建该文件,必须输入”Y“,如果输入"N"则程序会退出,默认就是"Y",因此我们直接回车应该也可以的 *** Git Repositories *** Location of Git repositories [git]: /yinzhengjie/softwares/gerrit #指定Git存储库,最好指定一个不存在的目录,他会自动创建。 *** Index *** Type [lucene/?]: #默认即可。 *** User Authentication *** Authentication method [openid/?]: HTTP #认证方法输入HTTP,我们要使用反向代理 Get username from custom HTTP header [y/N]? n #询问咱们是否从自定义HTTP头获取用户名,我们输入”n“ SSO logout URL : Enable signed push support [y/N]? y #启用签名的推送支持 *** Review Labels *** Install Verified label [y/N]? #安装已验证标签,默认即可。 *** Email Delivery *** SMTP server hostname [localhost]: smtp.qq.com #输入自动发送邮件的smtp服务器 SMTP server port [(default)]: 465 #465/994时SSL协议端口后,25是非SSL协议端口号 SMTP encryption [none/?]: SSL #如果上一步输入的是465/994,此处输入SSL,否则直接回车即可 SMTP username [root]: y1053419035@qq.com #此处是你定义自动发送邮件的邮箱地址 y1053419035@qq.com's password : #接着我们需要输入2次咱们邮箱的授权码,而非邮箱密码!QQ邮箱有获取授权码的连接教程。感兴趣的小伙伴可以戳进去看。 confirm password : *** Container Process *** Run as [root]: #指定容器运行的进程用户,默认为root用户,我们默认即可 Java runtime [/yinzhengjie/softwares/jdk1.8.0_201/jre]: #JAVA的运行环境。如果它识别的有误,你可以指定你服务器的环境 Copy gerrit-3.0.0.war to review_site/bin/gerrit.war [Y/n]? y #拷贝gerri安装包 Copying gerrit-3.0.0.war to review_site/bin/gerrit.war *** SSH Daemon *** Listen on address [*]: node108.yinzhengjie.org.cn #指定SSH后台服务的监听地址 Listen on port [29418]: #指定SSH后台服务的端口号 Generating SSH host key ... rsa... ed25519... ecdsa 256... ecdsa 384... ecdsa 521... done *** HTTP Daemon *** Behind reverse proxy [y/N]? y #使用发向代理 Proxy uses SSL (https://) [y/N]? n #不适用SSL Subdirectory on proxy server [/]: #指定代理服务器的子目录,默认为"/"路径,默认即可 Listen on address [*]: node108.yinzhengjie.org.cn #只当gerrit服务的监听地址 Listen on port [8081]: 8888 #指定gerrit的服务端口 Canonical URL [http://node108.yinzhengjie.org.cn/]: #指定标准连接,咱们默认即可 *** Cache *** *** Plugins *** Installing plugins. Install plugin codemirror-editor version v3.0.0 [y/N]? y #接下来就是询问我们是否安装插件,我们一路”y“ 即可~ Installed codemirror-editor v3.0.0 Install plugin commit-message-length-validator version v3.0.0 [y/N]? y Installed commit-message-length-validator v3.0.0 Install plugin delete-project version v3.0.0 [y/N]? y Installed delete-project v3.0.0 Install plugin download-commands version v3.0.0 [y/N]? y Installed download-commands v3.0.0 Install plugin gitiles version v3.0.0 [y/N]? y Installed gitiles v3.0.0 Install plugin hooks version v3.0.0 [y/N]? y Installed hooks v3.0.0 Install plugin plugin-manager version v3.0.0 [y/N]? y Installed plugin-manager v3.0.0 Install plugin replication version v3.0.0 [y/N]? y Installed replication v3.0.0 Install plugin reviewnotes version v3.0.0 [y/N]? y Installed reviewnotes v3.0.0 Install plugin singleusergroup version v3.0.0 [y/N]? y Installed singleusergroup v3.0.0 Install plugin webhooks version v3.0.0 [y/N]? y Installed webhooks v3.0.0 Initializing plugins. Initialized /root/review_site Reindexing projects: 100% (2/2) with: reindex --site-path review_site --threads 1 --index projects Reindexed 2 documents in projects index in 0.3s (6.1/s) Executing /root/review_site/bin/gerrit.sh start Starting Gerrit Code Review: OK Waiting for server on node108.yinzhengjie.org.cn:80 ... OK Opening http://node108.yinzhengjie.org.cn/#/admin/projects/ ...FAILED #一开始这里有个FAILED,让我耿耿于怀,后来发现貌似对后面的操作没啥影响。暂时忽略它~ Open Gerrit with a JavaScript capable browser: http://node108.yinzhengjie.org.cn/#/admin/projects/ You have new mail in /var/spool/mail/root [root@node108.yinzhengjie.org.cn ~]#
[root@node108.yinzhengjie.org.cn ~]# cat review_site/etc/gerrit.config [gerrit] basePath = /yinzhengjie/softwares/gerrit canonicalWebUrl = http://node108.yinzhengjie.org.cn/ serverId = 494454c2-fd42-4e1b-8612-5405439945f9 [container] javaOptions = "-Dflogger.backend_factory=com.google.common.flogger.backend.log4j.Log4jBackendFactory#getInstance" javaOptions = "-Dflogger.logging_context=com.google.gerrit.server.logging.LoggingContext#getInstance" user = root javaHome = /yinzhengjie/softwares/jdk1.8.0_201/jre [index] type = LUCENE [auth] type = HTTP [receive] enableSignedPush = true [sendemail] smtpServer = smtp.qq.com smtpServerPort = 465 smtpEncryption = SSL smtpUser = y1053419035@qq.com [sshd] listenAddress = node108.yinzhengjie.org.cn:29418 [httpd] listenUrl = proxy-http://node108.yinzhengjie.org.cn:8888/ [cache] directory = cache [root@node108.yinzhengjie.org.cn ~]#
3>.查看gerrit的管理脚本
[root@node108.yinzhengjie.org.cn ~]# ./review_site/bin/gerrit.sh status Checking arguments to Gerrit Code Review: GERRIT_SITE = /root/review_site GERRIT_CONFIG = /root/review_site/etc/gerrit.config GERRIT_PID = /root/review_site/logs/gerrit.pid GERRIT_TMP = /root/review_site/tmp GERRIT_WAR = /root/review_site/bin/gerrit.war GERRIT_FDS = 1024 GERRIT_USER = root GERRIT_STARTUP_TIMEOUT = 90 JAVA = /yinzhengjie/softwares/jdk1.8.0_201/jre/bin/java JAVA_OPTIONS = -Dflogger.backend_factory=com.google.common.flogger.backend.log4j.Log4jBackendFactory#getInstance -Dflogger.logging_context=com.google.gerrit.server.logging.LoggingContext#getInstance RUN_EXEC = /usr/bin/perl -e '$x=$ENV{JAVA};exec $x @ARGV;die $!' -- GerritCodeReview RUN_ARGS = -Dflogger.backend_factory=com.google.common.flogger.backend.log4j.Log4jBackendFactory#getInstance -Dflogger.logging_context=com.google.gerrit.server.logging.LoggingContext#getInstance -jar /root/review_site/bin/gerrit.war daemon -d /root/review_site Gerrit running pid=10308 #安装成功后,Gerrit默认是启动的,因此我们查看时会发提示”Gerrit running pid=10308“,如果没有运行成功的话不会有该行提示哟~ [root@node108.yinzhengjie.org.cn ~]#
[root@node108.yinzhengjie.org.cn ~]# ./review_site/bin/gerrit.sh stop Stopping Gerrit Code Review: OK [root@node108.yinzhengjie.org.cn ~]#
[root@node108.yinzhengjie.org.cn ~]# ./review_site/bin/gerrit.sh status Checking arguments to Gerrit Code Review: GERRIT_SITE = /root/review_site GERRIT_CONFIG = /root/review_site/etc/gerrit.config GERRIT_PID = /root/review_site/logs/gerrit.pid GERRIT_TMP = /root/review_site/tmp GERRIT_WAR = /root/review_site/bin/gerrit.war GERRIT_FDS = 1024 GERRIT_USER = root GERRIT_STARTUP_TIMEOUT = 90 JAVA = /yinzhengjie/softwares/jdk1.8.0_201/jre/bin/java JAVA_OPTIONS = -Dflogger.backend_factory=com.google.common.flogger.backend.log4j.Log4jBackendFactory#getInstance -Dflogger.logging_context=com.google.gerrit.server.logging.LoggingContext#getInstance RUN_EXEC = /usr/bin/perl -e '$x=$ENV{JAVA};exec $x @ARGV;die $!' -- GerritCodeReview RUN_ARGS = -Dflogger.backend_factory=com.google.common.flogger.backend.log4j.Log4jBackendFactory#getInstance -Dflogger.logging_context=com.google.gerrit.server.logging.LoggingContext#getInstance -jar /root/review_site/bin/gerrit.war daemon -d /root/review_site [root@node108.yinzhengjie.org.cn ~]#
[root@node108.yinzhengjie.org.cn ~]# ./review_site/bin/gerrit.sh start Starting Gerrit Code Review: OK [root@node108.yinzhengjie.org.cn ~]#
[root@node108.yinzhengjie.org.cn ~]# ./review_site/bin/gerrit.sh status Checking arguments to Gerrit Code Review: GERRIT_SITE = /root/review_site GERRIT_CONFIG = /root/review_site/etc/gerrit.config GERRIT_PID = /root/review_site/logs/gerrit.pid GERRIT_TMP = /root/review_site/tmp GERRIT_WAR = /root/review_site/bin/gerrit.war GERRIT_FDS = 1024 GERRIT_USER = root GERRIT_STARTUP_TIMEOUT = 90 JAVA = /yinzhengjie/softwares/jdk1.8.0_201/jre/bin/java JAVA_OPTIONS = -Dflogger.backend_factory=com.google.common.flogger.backend.log4j.Log4jBackendFactory#getInstance -Dflogger.logging_context=com.google.gerrit.server.logging.LoggingContext#getInstance RUN_EXEC = /usr/bin/perl -e '$x=$ENV{JAVA};exec $x @ARGV;die $!' -- GerritCodeReview RUN_ARGS = -Dflogger.backend_factory=com.google.common.flogger.backend.log4j.Log4jBackendFactory#getInstance -Dflogger.logging_context=com.google.gerrit.server.logging.LoggingContext#getInstance -jar /root/review_site/bin/gerrit.war daemon -d /root/review_site Gerrit running pid=10706 [root@node108.yinzhengjie.org.cn ~]#
4>.创建passwd文件,添加gerrit登录用户
[root@node108.yinzhengjie.org.cn ~]# htpasswd -cb /etc/httpd/passwords admin admin #注意,"-c"参数为创建,仅限第一次添加用户时使用,用户名和密码均为admin Adding password for user admin [root@node108.yinzhengjie.org.cn ~]# htpasswd -b /etc/httpd/passwords jason yinzhengjie #第二次创建时不要加"-c"参数。创建一个jason用户,密码为"yinzhengjie" Adding password for user jason [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# cat /etc/httpd/passwords #我们查看该文件的确有2个用户,但是密码时经过加密处理的! admin:$apr1$Em..sIno$GMpAsQlJ4l.S4C0Qnu0iD/ jason:$apr1$892G6DfX$IBkKm8paM/4wPvowppI/d1 [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]#
5>.修改Apache的config文件httpd.conf
[root@node108.yinzhengjie.org.cn ~]# cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf-`date +%F` [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# vi /etc/httpd/conf/httpd.conf [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# tail -23 /etc/httpd/conf/httpd.conf Listen 8090 #自定义反响代理的端口 <VirtualHost *:8090> #我们只针对咱们自定义的端口进行配置 ServerName 172.30.1.108 #此处为你的服务器IP地址或者主机名均可,比如”node108.yinzhengjie.org.cn“ ProxyRequests Off ProxyVia Off ProxyPreserveHost On <Proxy *> Order deny,allow Allow from all </Proxy> <Location /login/> AuthType Basic AuthName "Gerrit Code Review" Require valid-user AuthUserFile /etc/httpd/passwords #这里我们让认证方式是基于文件方式认证,而该文件的内容我们刚刚也看过了,你懂的。 </Location> AllowEncodedSlashes On ProxyPass / http://172.30.1.108:8888/ #此处的8888为咱们刚刚在安装Gerrit服务的端口号。说白了,以上的所有配置目的就是让用户访问8090端口其实就是在访问gerrit的8888端口. </VirtualHost> [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# systemctl restart httpd [root@node108.yinzhengjie.org.cn ~]#
[root@node108.yinzhengjie.org.cn ~]# systemctl status httpd ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Active: active (running) since Wed 2019-06-12 23:10:50 CST; 5s ago Docs: man:httpd(8) man:apachectl(8) Process: 11280 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS) Main PID: 11286 (httpd) Status: "Processing requests..." CGroup: /system.slice/httpd.service ├─11286 /usr/sbin/httpd -DFOREGROUND ├─11287 /usr/sbin/httpd -DFOREGROUND ├─11288 /usr/sbin/httpd -DFOREGROUND ├─11289 /usr/sbin/httpd -DFOREGROUND ├─11290 /usr/sbin/httpd -DFOREGROUND └─11291 /usr/sbin/httpd -DFOREGROUND Jun 12 23:10:50 node108.yinzhengjie.org.cn systemd[1]: Starting The Apache HTTP Server... Jun 12 23:10:50 node108.yinzhengjie.org.cn systemd[1]: Started The Apache HTTP Server. [root@node108.yinzhengjie.org.cn ~]#
6>.查看本地端口,访问web UI
[root@node108.yinzhengjie.org.cn ~]# ss -ntl State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 50 172.30.1.108:29418 *:* LISTEN 0 128 *:80 *:* LISTEN 0 128 *:22 *:* LISTEN 0 50 172.30.1.108:8888 *:* LISTEN 0 100 127.0.0.1:25 *:* LISTEN 0 128 *:8090 *:* LISTEN 0 128 :::22 :::* [root@node108.yinzhengjie.org.cn ~]#
7>.登陆成功
8>.查看帮助目录
9>.查看详细的帮助信息
五.将SSH密钥添加到您的Gerrit帐户
1>.Gerrit概述
Gerrit是一个免费的,基于Web的协作代码审查工具,与 Git集成。它是用Java( Java EE Java Servlet)编写的,由Shawn Pearce在 Google开发,用于开发 Android项目。
2>.生成新的SSH密钥
[root@node108.yinzhengjie.org.cn ~]# ll ~/.ssh/ #我们发现该目录下存在一个已认证key的文件. total 4 -rw------- 1 root root 826 Jun 10 20:51 authorized_keys [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# cat ~/.ssh/authorized_keys #该文件记录了可以远程到当前服务器的用户。很显然,有2个用户可以远程到当前服务器,即"node101.yinzhengjie.org.cn"和"node105.yinzhengjie.org.cn". ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDcQcuImQVwe3Q5savqqSmH2RWgBRoZTxQv9b18x5b0YJkO32ZDKMRC6S+hOEQlXCE5L8zC9Pp0G2Mxk3TnI0Hp5BgD+1frCIhXCnVz3YCg6WSf0VjJacs5WEdWjpYYeoCFphhw96AEbpGzY8sEdgDXQPZtYMY4fliDFpJsp2DwMBlJKkwAUd1xrO4Q3ggIZwVnfX4y96GwkQ5u1NqHWWgGZUv7vPcAPUg55oj9oOm5ASA+7ch5HmlIv4WAEqE4cMTbwLonm+DuWIWc9GnUBi3kTfmM37nXswU9ibifGr7IftlNnXYpiGqcwoCXPMVG9D0hf9QpuifOSx3/yfZGs1vf root@node101.yinzhengjie.org.cn ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7NkD8UVbwbTslqQz489IPgWDrTtnYkOaJv9fQKQJtL+AMuvbTJIWjSNfP6CpY7i9JMk06C14/p7Sry0NULcW8o1dwjTJNKbcCwiwEuhQXcKTsPliJZ+wn9thyBGO7JKmWJF19PVFyAIN586ovml4ocf0HppNkHp2kgg1MwSHR8Sskb83LcltwZ8Tiq7Cej5MJvBvkfgdeP7+rOJM4vibaWvlHDl17YDdSKSMGqsNJ5xMuOH7kQvNLmOsxdbFeVvgTu4ARSodxhK1b654whMMel3FDX9SI3X8Hg2gCbVo9OF7KsJVA6nklcOIPgw2dTZFuDqol+U86RrQlGTQj+T+h root@node105.yinzhengjie.org.cn [root@node108.yinzhengjie.org.cn ~]#
[root@node108.yinzhengjie.org.cn ~]# ll ~/.ssh/ #生成密钥之前查看该目录情况 total 4 -rw------- 1 root root 826 Jun 10 20:51 authorized_keys [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# ssh-keygen -t rsa -f ~/.ssh/id_rsa -P '' -C "Setting SSH keys in Gerrit" #“-t”参数用于指定加密算法,"-f"参数用于指定加密文件路径,"-P"参数用于指定密码,"-C“仅用于添加注释信息。 Generating public/private rsa key pair. Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: SHA256:YVSVUD6ZtiAG1jxFs5IvpwjCodATxirFPYk3C8LEODI Setting SSH keys in Gerrit The key's randomart image is: +---[RSA 2048]----+ |=+oo .oo.+*+o. | |E=*.*. o+. +.o | |o*+o + B.o * | |+o o. o = o o | |o o . S o . | | . . . + | | . . | | | | | +----[SHA256]-----+ [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# ll ~/.ssh/ #生成密钥之后查看该路径多了2个文件 total 12 -rw------- 1 root root 826 Jun 10 20:51 authorized_keys -rw------- 1 root root 1679 Jun 12 19:29 id_rsa #标识别私钥 -rw-r--r-- 1 root root 408 Jun 12 19:29 id_rsa.pub #公钥 [root@node108.yinzhengjie.org.cn ~]#
3>.点击设置
4>.将服务器生成的公钥拷贝到Gerrit服务器上
5>.公钥保存成功
六.通过Gerrit的Web UI创建相应的存储库
1>.点击"Repositories"
2>.创建存储库
3>.存储库创建成功
4>.为存储库创建描述信息
七.使用Git下载代码
1>.查看已经的存储库
2>.点击第一步途中的"view all"
3>.点击第一步途中的"browse"
4>.点击"master"
5>.使用git下载代码
[root@node108.yinzhengjie.org.cn ~]# git clone ssh://admin@node108.yinzhengjie.org.cn:29418/yinzhengjie-code
八.将代码push到Gerrit服务器上
1>.进入下载的目录创建测试文件
[root@node108.yinzhengjie.org.cn ~]# [root@node108.yinzhengjie.org.cn ~]# cd yinzhengjie-code/ [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# echo "https://www.cnblogs.com/yinzhengjie/" >> blog.txt [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# ll total 4 -rw-r--r-- 1 root root 37 Jun 13 01:54 blog.txt [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# git status #查看git当前状态 # On branch master # Untracked files: #这里提示我们有一个文件没有被跟踪,并告诉我们使用"git add <file>" # (use "git add <file>..." to include in what will be committed) # # blog.txt nothing added to commit but untracked files present (use "git add" to track) You have new mail in /var/spool/mail/root [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]#
2>.提交数据到git暂存区域
[root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# git status # On branch master # Untracked files: # (use "git add <file>..." to include in what will be committed) # # blog.txt nothing added to commit but untracked files present (use "git add" to track) [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# git add blog.txt #将未被跟踪的文件提交到Git的暂存区 [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# git status # On branch master # Changes to be committed: #这里告诉我有新文件将要被提交,使用"git reset HEAD <file>"命令可以将该文件从暂存区移除 # (use "git reset HEAD <file>..." to unstage) # # new file: blog.txt # [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]#
3>.将暂存区文件提交Git仓库
[root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# git status # On branch master # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # new file: blog.txt # [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# git commit -m 'commit blog.txt file !' #将暂存区的文件提交Git仓库 [master 17f3448] commit blog.txt file ! 1 file changed, 1 insertion(+) create mode 100644 blog.txt [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# git status # On branch master # Your branch is ahead of 'origin/master' by 1 commit. # (use "git push" to publish your local commits) # nothing to commit, working directory clean [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]#
4>.更新主分支
[root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# git pull origin master From ssh://node108.yinzhengjie.org.cn:29418/yinzhengjie-code * branch master -> FETCH_HEAD Already up-to-date. [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]#
5>.将本地代码push到geerit服务器中
[root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# git push origin HEAD:refs/for/master Counting objects: 3, done. Writing objects: 100% (3/3), 285 bytes | 0 bytes/s, done. Total 3 (delta 0), reused 0 (delta 0) remote: Processing changes: refs: 1, done remote: ERROR: commit 60115ce: missing Change-Id in message footer #发现这里报错啦,但是它给出了解决方案 remote: remote: Hint: to automatically insert a Change-Id, install the hook: remote: gitdir=$(git rev-parse --git-dir); scp -p -P 29418 admin@node108.yinzhengjie.org.cn:hooks/commit-msg ${gitdir}/hooks/ #第一步,下载commit-msg文件 remote: and then amend the commit: remote: git commit --amend --no-edit #第二步,执行"git commit --amend",不要求编辑,因此会弹出一个编辑界面,我们不做任何修改,直接"wq"即可 remote: Finally, push your changes again #第三步,重新push分支 remote: To ssh://node108.yinzhengjie.org.cn:29418/yinzhengjie-code ! [remote rejected] HEAD -> refs/for/master (commit 60115ce: missing Change-Id in message footer) error: failed to push some refs to 'ssh://admin@node108.yinzhengjie.org.cn:29418/yinzhengjie-code' [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]#
[root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# gitdir=$(git rev-parse --git-dir); scp -p -P 29418 admin@node108.yinzhengjie.org.cn:hooks/commit-msg ${gitdir}/hooks/ commit-msg 100% 1790 620.9KB/s 00:00 [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]#
[root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# git commit --amend [master 65d4bce] commit blog.txt file ! Date: Thu Jun 13 03:55:03 2019 +0800 1 file changed, 1 insertion(+) create mode 100644 blog.txt [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]#
[root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]# git push origin HEAD:refs/for/master #第三步 Counting objects: 3, done. Writing objects: 100% (3/3), 327 bytes | 0 bytes/s, done. Total 3 (delta 0), reused 0 (delta 0) remote: Processing changes: refs: 1, new: 1, done remote: remote: SUCCESS remote: remote: http://node108.yinzhengjie.org.cn/c/yinzhengjie-code/+/1 commit blog.txt file ! [NEW] remote: To ssh://node108.yinzhengjie.org.cn:29418/yinzhengjie-code * [new branch] HEAD -> refs/for/master [root@node108.yinzhengjie.org.cn ~/yinzhengjie-code]#
温馨提示:
如果按照官方提示操作报错:”it: ‘interpret-trailers’ is not a git command. See ‘git --help’“,一般是由于git版本过老,更换git新版本即可,参考文章开头关于git的源码安装步骤即可。
6>.刷新Gerrit的Web UI界面
7>.查看步骤六的详细消息
8>.查看此时代码是否被提交到git仓库
[root@node108.yinzhengjie.org.cn ~]# mkdir /yinzhengjie/data && cd /yinzhengjie/data [root@node108.yinzhengjie.org.cn /yinzhengjie/data]# [root@node108.yinzhengjie.org.cn /yinzhengjie/data]# git clone ssh://admin@node108.yinzhengjie.org.cn:29418/yinzhengjie-code #我们克隆一下项目存储库,观察代码文件是否被提交到git仓库啦! Cloning into 'yinzhengjie-code'... remote: Counting objects: 2, done remote: Finding sources: 100% (2/2) remote: Total 2 (delta 0), reused 0 (delta 0) Receiving objects: 100% (2/2), done. [root@node108.yinzhengjie.org.cn /yinzhengjie/data]# [root@node108.yinzhengjie.org.cn /yinzhengjie/data]# ll total 0 drwxr-xr-x 3 root root 18 Jun 13 18:19 yinzhengjie-code [root@node108.yinzhengjie.org.cn /yinzhengjie/data]# [root@node108.yinzhengjie.org.cn /yinzhengjie/data]# ll yinzhengjie-code/ total 0 You have new mail in /var/spool/mail/root [root@node108.yinzhengjie.org.cn /yinzhengjie/data]#
九.将Gerrit的代码提交到Gerrit的存储库
1>.点击“REPLY”,写上评论者建议和评分后,点击"SEND"
2>.点击"SUBMIT"
3>.点击“CONTINUE”
4>.Gerrit的代码被提交到Gerrit的存储库
5>.查看"Gerrit"主界面
参考连接1:https://www.mediawiki.org/wiki/Gerrit/zh。
参考连接2:https://www.jianshu.com/p/5ae7f5978814。
参考连接3:https://blog.csdn.net/gaochujia/article/details/78544028。
参考连接4:https://blog.csdn.net/a10703060237/article/details/89704924。