`
- 浏览:
27696 次
- 性别:
- 来自:
北京
-
- 先检查下版本信息:
[@sohu_99_3 ~]# lsb_release -a
LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 5.5 (Tikanga)
Release: 5.5
Codename: Tikanga
[@sohu_99_3 ~]# uname -a
Linux sohu_99_3 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
[@sohu_99_3 ~]# cat /proc/version
Linux version 2.6.18-194.el5 (mockbuild@x86-005.build.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Tue Mar 16 21:52:39 EDT 2010
- 因为编译安装,所以先安装相应的devel包:
yum install zlib-devel
yum install gettext-devel
yum install openssl-devel
yum install curl-devel
yum install expat-devel
- 下载解压缩git:
wget http://kernel.org/pub/software/scm/git/git-1.7.2.tar.gz
tar -xzvf git-1.7.2.tar.gz
- 编译安装:
cd git-1.7.2
make prefix=/usr/local all
make prefix=/usr/local install
- 检查一下:
安装好的文件:
[@sohu_99_3 ~]# ll /usr/local/bin/
total 17948
-rwxr-xr-x 105 root root 4623648 Aug 12 09:40 git
-rwxr-xr-x 1 root root 120943 Aug 12 09:40 git-cvsserver
-rwxr-xr-x 1 root root 321995 Aug 12 09:40 gitk
-rwxr-xr-x 1 root root 4623648 Aug 12 09:40 git-receive-pack
-rwxr-xr-x 1 root root 1926258 Aug 12 09:40 git-shell
-rwxr-xr-x 1 root root 4623648 Aug 12 09:40 git-upload-archive
-rwxr-xr-x 1 root root 1970204 Aug 12 09:40 git-upload-pack
-rwxr-xr-x 1 root root 1576 Aug 10 10:58 pcre-config
-rwxr-xr-x 1 root root 35248 Aug 10 10:58 pcregrep
-rwxr-xr-x 1 root root 54467 Aug 10 10:58 pcretest
git命令的执行:
[@sohu_99_3 ~]# git
usage: git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]
[-p|--paginate|--no-pager] [--no-replace-objects]
[--bare] [--git-dir=GIT_DIR] [--work-tree=GIT_WORK_TREE]
[-c name=value
[--help] COMMAND [ARGS]
The most commonly used git commands are:
add Add file contents to the index
bisect Find by binary search the change that introduced a bug
branch List, create, or delete branches
checkout Checkout a branch or paths to the working tree
clone Clone a repository into a new directory
commit Record changes to the repository
diff Show changes between commits, commit and working tree, etc
fetch Download objects and refs from another repository
grep Print lines matching a pattern
init Create an empty git repository or reinitialize an existing one
log Show commit logs
merge Join two or more development histories together
mv Move or rename a file, a directory, or a symlink
pull Fetch from and merge with another repository or a local branch
push Update remote refs along with associated objects
rebase Forward-port local commits to the updated upstream head
reset Reset current HEAD to the specified state
rm Remove files from the working tree and from the index
show Show various types of objects
status Show the working tree status
tag Create, list, delete or verify a tag object signed with GPG
See 'git help COMMAND' for more information on a specific command.
从github上获取项目:
[@sohu_99_3 mochi]# git clone http://github.com/mochi/mochiweb.git
Cloning into mochiweb...
remote: Counting objects: 921, done.
remote: Compressing objects: 100% (326/326), done.
remote: Total 921 (delta 638), reused 813 (delta 575)
Receiving objects: 100% (921/921), 182.37 KiB | 24 KiB/s, done.
Resolving deltas: 100% (638/638), done.
分享到:
Global site tag (gtag.js) - Google Analytics
相关推荐
rhel-server-5.5-x86_64 redhat 5.5 64bit download 本人使用的就是这个
rhel-server-5.5-x86_64-dvd.iso rhel-server-5.6-x86_64-dvd.iso rhel-server-5.7-x86_64-dvd.iso rhel-server-5.8-x86_64-dvd.iso rhel-server-5.9-x86_64-dvd.iso rhel-server-5.10-x86_64-dvd.iso rhel-server-...
rhel-server-6.0-x86_64-dvd.iso rhel-server-6.1-x86_64-dvd.iso rhel-server-6.2-x86_64-dvd.iso rhel-server-6.3-x86_64-dvd.iso rhel-server-6.4-x86_64-dvd.iso rhel-server-6.5-x86_64-dvd.iso rhel-server-...
通过以上步骤,您可以在 VirtualBox 虚拟机上成功安装 RHEL Server 5.5。尽管 RHEL 5.5 已经较为陈旧,但对于学习 Linux 基础知识和技术原理仍然具有一定的参考价值。在实际部署生产环境时,建议考虑使用最新的 RHEL...
2. **RHEL兼容性**:由于基于RHEL,CentOS与RHEL在API和ABI层面上保持一致,使得在CentOS上运行的软件也能在RHEL上正常工作。 3. **软件仓库**:CentOS提供了丰富的软件仓库,用户可以通过`yum`命令方便地安装、...
GreenPlum官方安装文档,Linux 红帽子5.5 操作系统
文档详细记录了红帽系列Linux的安装步骤。文档经过N次实验,方法值得学习
rhel-server-5.8-x86_64 redhat 5.8 64bit download 红帽中5.8是5系列中使用最多也是最稳定的
资源是Redhat7.4镜像文件的云盘链接,包括rhel-server-7.4-x86_64-boot.iso和rhel-server-7.4-x86_64-dvd.iso 仅供学习交流,严禁用于商业用途,请于24小时内删除
资源是Redhat7.1镜像文件的云盘链接,包括rhel-server-7.1-x86_64-boot.iso、rhel-server-7.1-x86_64-dvd.iso和supp-server-7.1-rhel-7-x86_64-dvd.iso 仅供学习交流,严禁用于商业用途,请于24小时内删除
资源是Redhat7.3镜像文件的云盘链接,包括rhel-server-7.3-x86_64-boot.iso和rhel-server-7.3-x86_64-dvd.iso 仅供学习交流,严禁用于商业用途,请于24小时内删除
压缩包子文件“rhel-8.0-x86_64-linuxprobe.com.iso”即为RHEL 8.0的ISO镜像文件,通常用于创建DVD或USB启动盘,以便在物理或虚拟机上安装操作系统。用户也可以将其挂载到系统上,以浏览或提取其中的文件,或者使用...
rhel-server-7.1-x86_64-dvd.iso文件
总的来说,"rhel-baseos-9.0-beta-0-x86_64-dvd.iso.rar"文件是一个用于测试的RHEL 9.0基础操作系统镜像,压缩后可以更方便地下载和存储,准备用于安装或评估在64位x86平台上的企业级服务器环境。
资源是Redhat7.2镜像文件的云盘链接,包括rhel-server-7.2-x86_64-boot.iso和rhel-server-7.2-x86_64-dvd.iso 仅供学习交流,严禁用于商业用途,请于24小时内删除
最近,Red Hat 对旗下面向企业用户的 Linux 系统 Red Hat Enterprise Linux (RHEL) 进行了更新,推出了 5.5 版本。RHEL 5.5 支持新的硬件平台,升级了既有的软件包,以及对虚拟化方面进行了增强。 根据 RHEL 5.5...
rhel-server-6.7-x86_64-dvd.iso 64位网盘下载,安装客户端,即可下载,百度网盘下载 rhel-server-6.7-x86_64-dvd.iso 64位网盘下载
综上所述,"rhel-8.5-x86_64-dvd.rar"文件代表了Red Hat Enterprise Linux 8.5的一个重要发行版,它为用户带来了模块化、安全、高性能的Linux操作系统体验,适合在各种企业环境中部署和使用。通过下载并解压此RAR...
rhel-server-7.0-x86_64-dvd 操作系统 网盘下载地址 确保资源可用
rhel-server-7.0-x86_64-dvd.iso 网盘下载地址 【付费下载之后的用户,可留言获取更多下载资源】