|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

 

 

posted on   yanqi_vip  阅读(11)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· DeepSeek 开源周回顾「GitHub 热点速览」
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示