git的安装

1、安装依赖

yum install curl-devel expat-devel openssl-devel zlib-devel gcc-c++

yum install perl-ExtUtils-MakeMaker automake autoconf libtool make

2、编译安装 Git

下载解压git源码包,进入到 解压出来的git目录,依次执行编译安装等命令

cd git-2.30.2

  1. make configure

  2. ./configure --prefix=/export/server/git #指定安装路径

  3. make profix=/export/server/git

  4. make install

3、配置git的环境变量

sudo vim /etc/profile

末尾追加

export GIT_HOME=/usr/local/git

export PATH=PATH:GIT_HOME/bin

刷新配置文件

source /etc/profile

4、验证

git --version 有返回则安装配置成功

相关推荐
Elasticsearch1 天前
如何通过 Claude Code 来写入 CSV 数据到 Elasticsearch
elasticsearch
得物技术2 天前
从埋点需求到规则资产:Hermes Agent 重构得物数仓工作流
大数据·llm·ai编程
深海鱼在掘金2 天前
Git 完全指南 —— 第1章:Git 概览与版本控制演进
git
久美子2 天前
AI驱动数仓建设的Harness工程实践——本体建模、知识分层与上下文工程
大数据
大树883 天前
金刚石散热越强,管路越先见顶
大数据·运维·服务器·人工智能·ai
大志哥1233 天前
ES和Logstash日志链路系统上线后遭遇切片爆炸(解决)
大数据·elasticsearch
果丁智能3 天前
物联网智能锁赋能集中式住宿:身份核验与远程权限管控的全链路技术实践
大数据·人工智能·物联网·智能家居
ApacheSeaTunnel3 天前
实战演示 | 基于 Apache SeaTunnel 与 Apache DolphinScheduler 实现 MySQL 到 Doris 离线定时增量同步
大数据·mysql·开源·doris·数据集成·seatunnel·数据同步
weixin_397574093 天前
PDF复杂表格的1:1还原引擎:跨页表格自动拼接技术实战
大数据·人工智能·pdf
TableRow3 天前
参数化搜索的实现原理:从多维索引到查询优化
elasticsearch·全文检索