代码托管
快来分享你的内容吧~
- 2022-12-26
- 2022-12-26
搭建Gitlab私服(社区版)
<font style="color:black;background-color:#FFFFFF;">注意:要使用CentOS7版本安装,CentOS6版本不行。</font> ### 1.官网地址 首页:https://about.gitlab.com/ 安装说明:https://about.gitlab.com/installation/ ### 2.提前下载所需rpm(文末有安装包) yum安装gitlab-ee(或ce)时,需要联网下载几百M的安装文件,非常耗时,所以应提前把所需RPM包下载并安装好。 下载地址是: https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-10.8.2-ce.0.el7.x86_64.rpm 下载好后上传到Linux系统,习惯上还是放在/opt目录下 ### 3.安装 ```shell sudo rpm -ivh /opt/gitlab-ce-10.8.2-ce.0.el7.x86_64.rpm sudo yum install -y curl policycoreutils-python openssh-server cronie # sudo yum install lokkit sudo lokkit -s http -s ssh sudo yum install postfix #yum install keyutils-libs-devel libcom_err-devel libselinux-devel libverto-devel -y #rpm -ivh mysql-community-libs-compat-5.7.28-1.el7.x86_64.rpm sudo systemctl enable postfix.service sudo chkconfig postfix on curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash sudo EXTERNAL_URL="http://gitlab.example.com" yum -y install gitlab-ce ``` ### 4.访问 + 初始化配置 gitlab-ctl reconfigure + 启动Gitlab服务 gitlab-ctl start + 停止Gitlab服务 gitlab-ctl stop 访问Linux服务器IP地址即可,如果想访问EXTERNAL_URL指定的域名还需要配置域名服务器或本地hosts文件。 初次登录时需要为gitlab的root用户设置密码。  ### 所需要的文件 [gitlab-ce-10.8.2-ce.0.el7.x86_64.rpm](https://www.yuque.com/attachments/yuque/0/2024/rpm/34310486/1707470675275-02a3eea6-9e82-452d-b57c-26e877c5c382.rpm)
极狐GitLab
国内版GitLab终于来啦!极狐GitLab 一体化 DevOps 平台,项目管理和代码托管平台,支持 DevOps 地址:https://gitlab.cn/
CodeFever
地址:https://github.com/PGYER/codefever
CODE CHINA
CODE CHINA——开源代码托管平台,独立第三方开源社区,Git/Github/Gitlab 地址:https://codechina.csdn.net
vscode插件
地址:https://github.com/zy445566/vscode-plugin-swimming
Gitea
Gitea 的首要目标是创建一个极易安装,运行非常快速,安装和使用体验良好的自建 Git 服务。我们采用 Go 作为后端语言,这使我们只要生成一个可执行程序即可。并且他还支持跨平台,支持 Linux, macOS 和 Windows 以及各种架构,除了 x86,amd64,还包括 ARM 和 PowerPC。 地址:https://gitea.io/zh-cn/
GitHub520
本项目无需安装任何程序,通过修改本地 hosts 文件,试图解决:GitHub 访问速度慢的问题、项目中的图片显示不出的问题。若无法访问本项目,请按照这篇文章获取和配置初始 hosts:https://mp.weixin.qq.com/s/dI9ImN1hZcdGohcaNRALeA 地址:https://github.com/521xueweihan/GitHub520
GitLab
GitLab是一个利用 Ruby on Rails 开发的开源应用程序,实现一个自托管的Git项目仓库,可通过Web界面进行访问公开的或者私人项目。它拥有与Github类似的功能,能够浏览源代码,管理缺陷和注释。可以管理团队对仓库的访问,它非常易于浏览提交过的版本并提供一个文件历史库。它还提供一个代码片段收集功能可以轻松实现代码复用,便于日后有需要的时候进行查找。 地址:https://about.gitlab.com/
Bibucket
使用内联注释和请求来协作代码,是一个团队管理、共享 Git 存储库、代码构建和发布的软件。国内访问可能较慢。 地址:https://bitbucket.org/
GitHub Desktop
地址:https://desktop.github.com/

