|NO.Z.00012|——————————|^^ 部署 ^^|——|Jenkins&Jenkins部署.V02|——|二进制.Git.v2.9.5|
一、基础环境配置
### --- 系统部署规划
~~~ centos7.x:10.10.10.11: github
~~~ centos7.x:10.10.10.11: 部署jenkins
~~~ centos7.x:10.10.10.12: 充当tomcat网站服务器:建议使用公网环境
### --- 安装基础依赖包
[root@server11 ~]# yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker -y
二、Git安装
### --- Git部署说明
~~~ 4G内存的CENTOS7-64位一台
### --- git官网下载最新版本GIT
~~~ 下载并解压Git版本包
[root@server11 ~]#wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz // 使用提供的安装包即可。
[root@server11 ~]# tar -zxvf git-2.9.5.tar.gz
三、安装Git版本包
### --- 安装git:
[root@server11 ~]# cd git-2.9.5/
[root@server11 git-2.9.5]# make prefix=/usr/local/git all # 编译源码包
[root@server11 git-2.9.5]# make prefix=/usr/local/git install # 源码安装
### --- 修改环境变量
[root@server11 ~]# vim /etc/bashrc
PATH=$PATH:$HOME/bin:/usr/local/git/bin
### --- 使配置文件生效
~~~ 关于bashrc和profile
~~~ /etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次!!!
~~~ 登录!!!时,该文件被执行. 并从/etc/profile.d目录的配置文件中搜集shell的设置.
~~~ /etc/bashrc:为每一个运行bash shell的用户执行此文件.当bash shell被打开时,
~~~ 该文件被读取.
[root@server11 ~]# source /etc/bashrc
### --- 验证Git部署
[root@server11 ~]# git --version
git version 1.8.3.1
Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
——W.S.Landor
浙公网安备 33010602011771号