(一)CVS
安装xinetd
# rpm -q xinetd
# yum install xinetd
# chkconfig xinetd on
# /etc/init.d/xinetd start
安装CVS
# rpm -q cvs
cvs-1.11.23-15.el6.x86_64 (CentOS自带)
# yum install cvs
创建用户
# groupadd cvsgroup
# useradd -G wheel,cvsgroup cvsuser
# passwd cvsuser
设置
# mkdir /usr/local/cvsrepo
# cd /usr/local/cvsrepo
# cvs init
# chown -R root:cvsgroup /usr/local/cvsrepo
# chmod –R 775 /usr/local/cvsrepo
# touch /etc/xinetd.d/cvs
# vi /etc/xinetd.d/cvs
service cvspserver
{
disable = no # <-
port = 2401
socket_type = stream
protocol = tcp
wait = no
user = root
passenv = PATH
server = /usr/bin/cvs
env = HOME=/usr/local/cvsrepo
server_args = -f --allow-root=/usr/local/cvsrepo pserver
}
# chmod 644 /etc/xinetd.d/cvs
# /etc/init.d/xinetd restart
确认
# cvs -d ':pserver:root@localhost:/usr/local/cvsrepo' login
# cvs -d ':pserver:root@localhost:/usr/local/cvsrepo' logout
(二)SVN
安装
# yum list | grep "^subversion"
# cd /usr/local/src
# wget http://apache.fayea.com/subversion/subversion-1.8.13.tar.gz
# tar -zxvf subversion-1.8.13.tar.gz
# cd subversion-1.8.13
# ./configure --prifix=/usr/local/svn
# make
# make install
# svnserve --version
设置
# mkdir -p /usr/local/svndata
# svnadmin create /usr/local/svndata/myproj/
# cd /usr/local/svndata/myproj/
# ls -l
# cd conf
# ls -l
# vi svnserve.conf
[general]
anon-access = none
auth-access = write
password-db = /usr/local/svndata/myproj/conf/passwd
authz-db = /usr/local/svndata/myproj/conf/authz
# vi passwd
[users]
username=password
# vi authz
[groups]
project_p = pm
[project:/]
@project_p = rw
* =
启动服务
# svnserve -d -r /usr/local/svndata/myproj/
停止服务
# ps -aux|grep svnserve
# kill -9 ID号
确认
# svn co svn://localhost/myproj
(三)Git
安装
# yum list | grep "^git"
# cd /usr/local/src
# wget https://www.kernel.org/pub/software/scm/git/git-2.3.2.tar.gz
# tar -zxvf git-2.3.2.tar.gz
# cd git-2.3.2
# ./configure
# make
# make install
# git --version
设置
# touch /etc/xinetd.d/git-daemon
# vi /etc/xinetd.d/git-daemon
service git
{
disable = no # <-
socket_type = stream
wait = no
user = nobody
server = /usr/libexec/git-core/git-daemon
server_args = --base-path=/var/lib/git --export-all --user-path=public_git --syslog --inetd --verbose
log_on_failure += USERID
}
# /etc/init.d/xinetd restart
创建repository
# mkdir -p /var/lib/git/public_git/test.git/
# cd /var/lib/git/public_git/test.git/
# git --bare init --shared
# groupadd gitgroup
# usermod -G wheel,gitgroup gituser
# passwd gituser
# chown -R gituser:gitgroup /var/lib/git/
客户端确认
# cd /home/gituser/src
# mkdir test
# cd test
# echo "Git Test." > test.txt
# git init
# git add test.txt
# git commit -m "First Commit"
# git remote add test ssh://gituser@localhost:56722/var/lib/git/public_git/test.git
# git push origin master
分享到:
相关推荐
centos 7.9服务器 离线 搭建svn服务器 ,该文章适用于 开发人员 实施人员 项目经理用于项目文档管理 代码管理,而不指定如何在centos7.9环境下离线搭建svn服务器,因为大多数的网站只是介绍yum install 的方式,但是...
CentOS6-Base-163.repo更新源,直接放到/etc/yum.repos.d目录下,只想yum update即可将源换成163的源。
docker 安装包 docker-1.13.1-53.git774336d.el7.centos.x86_64.rpm
CentOS-7.2-x86_64-DVD-1511 CentOS-7.3-x86_64-DVD-1611 CentOS-7.4-x86_64-DVD-1708 CentOS-7.5-x86_64-DVD-1804 CentOS-7.6-aarch64-Everything-1810 CentOS-7.6-x86_64-DVD-1810 CentOS-7.7-x86_64-DVD-1908 ...
离线安装包,亲测可用
# CentOS-7-x86_64-DVD-1810.iso CentOS 7.6 DVD 版 4G http://mirrors.163.com/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso # CentOS-7-x86_64-Everything-1810.iso CentOS 7.6 Everything版 10G ...
离线安装包,亲测可用
CentOS 7搭建SVN服务器,详细安装步骤说明及配置详细步骤说明
centos7.6.1810---镜像包dockercentos7.6.1810---镜像包dockercentos7.6.1810---镜像包docker
离线安装包,亲测可用
离线安装包,亲测可用
内容: 1、centos 6 安装 mantisbt-1.2.8 ; 2、 centos 7 安装 mantisbt-2.12.0.zip 3、mantisbt-2.12.0.tar.gz包; 4、MySQL-5.5.59-1.el7.x86_64.rpm-bundle.tar包
CentOS6-Mysql-5.7.28-离线安装包(含依赖安装包)CentOS6-Mysql-5.7.28-离线安装包(含依赖安装包)CentOS6-Mysql-5.7.28-离线安装包(含依赖安装包)
断网,centos系统,版本服务器,在没有外网的centos系统中搭建svn版本服务器
CentOS-6.6-x86_64-bin-DVD1.iso和CentOS-6.6-x86_64-bin-DVD2镜像文件百度云下载
Txt文件中包含 CentOS-6.3-i386-bin-DVD1.iso 和 CentOS-6.3-i386-bin-DVD2.iso 的官网下载地址 和百度网盘下载地址
CentOS-Linux搭建SVN-Server配置详解
离线安装包,亲测可用