- 29
- 0
- 约3.68千字
- 约 10页
- 2017-07-24 发布于河南
- 举报
git服务器搭建(Git server build)
git服务器搭建(Git server build)
1. environmental deployment
System environment: Server: CentOS 6.5, ip:
Client: CentOS 6.5, ip:01
Software version: server side: source code, installation, git-1.9.0.tar.gz
Client: Yum online installation mechanism
2. installation
2.1 server side:
#yum, install, curl-devel, expat-devel, gettext-devel, openssl-devel, zlib-devel, perl-devel
#wget /files/git-1.9.0.tar.gz
#tar zxvf git-1.9.0.tar.gz
#cd git-1.9.0
#make prefix=/usr/local all
#make prefix=/usr/local install #root user operation
View version number: git --version
Git version 1.9.0
Install gitosis:gitosis for the Git user rights management system, through the management of the servers /home/git/.ssh/authorized_key file to execute user rights management, is a python module package
#yum install Python python-setuptools
#git clone git:///res0nat0r/gitosis.git
#cd gitosis/
#python setup.py install
Show Finished processing dependencies for gitosis==0.2 means success
2.2 client installation:
#yum install Git
#git --version
Git version 1.7.1
3. SSH settings
The client produces the key and uploads it to the server:
#ssh-keygen -t RSA
#scp ~/.ssh/id_rsa.pub root@:~/
The server looks at the keys that have been uploaded: ls to /id_rsa.pub
4. git users are generated on the server, using the GIT user and initializing the gitosis
Add user git:
#useradd, -r, -s, /bin/sh, -c,git, version, control,, -d, /home/git, GIT
Set permissions:
#mkdir -p /home/git
#chown git:git /home/git
Generating a management library on the server side:
#sudo, -H, -u, GIT, gitosis-init /id_rsa.pub
Initialized, empty, Git, repository, in, /home/git//repositories/gitosis-admin.git/, Reinitialized, existing, Git,, repository, in, /home/git/repositories/gitosis-admin.git/
Annotations:
1., the generated gitosis-admin is the user access management library for Git, and gitosis manages access rights for all git libraries through the GIT library.
2. by executing initialization, the owner of the public key can modify the particul
您可能关注的文档
- 英语中的一些变音现象及读音规则(Some sound phenomena and rules of pronunciation in English).doc
- 英语中许多的表达法(The expression of many in English).doc
- 英语作文中常用的关联词及句型(Frequently used Related words and sentences in English composition).doc
- 英语作文专题(English composition topic).doc
- 英语作文关键词替换(Keyword replacement).doc
- 英语作文库(English writing Library).doc
- 英语全部否定和部分否定的巧译(The translation of all negative and partial negation in English).doc
- 英语全程练习与评价(Whole English practice and evaluation).doc
- 英语六级写作难点问题(Difficulties in writing English at six levels).doc
- 英语六级听力同步字幕2004.6 lrc(English level six listening synchronized subtitles 2004.6 LRC).doc
- 2025广东广州市天河区拟招聘英语实习老师1人备考题库附答案.docx
- 2025广东广州市天河区城市管理第二保洁所招聘编外工作人员4人笔试备考试卷附答案解析.docx
- 2025广东广州市越秀区流花街道办事处招聘综合事务中心辅助人员1人笔试历年题库附答案解析.docx
- 2025广东广州市花都区新雅街清初级中学招聘临聘教师1人备考历年题库带答案解析.docx
- 2025广东广州市天河区城市管理第二保洁所招聘编外工作人员4人笔试备考试卷带答案解析.docx
- 江苏省盐城市东台市三仓镇区中学2026届八年级数学第一学期期末教学质量检测试题含解析.doc
- 2025广东广州市天河区城市管理第二保洁所招聘编外工作人员4人备考题库带答案解析.docx
- 江苏省盐城市亭湖区2026届数学八上期末考试试题含解析.doc
- 安徽省蚌埠市淮上区2026届数学八年级第一学期期末达标检测模拟试题含解析.doc
- 2025广东广湛城旅游轮有限公司招聘备考历年题库附答案解析.docx
原创力文档

文档评论(0)