GitLab在Centos7下的安装及项目创建与使用
来源:互联网 发布:centos开启mysql服务器 编辑:程序博客网 时间:2024/06/05 20:07
安装并配置必要的依赖关系
打开系统防火墙 HTTP 和 SSH 的访问,使用如下命令
sudo yum install curl policycoreutils openssh-server openssh-clientssudo systemctl enable sshdsudo systemctl start sshdsudo yum install postfixsudo systemctl enable postfixsudo systemctl start postfixsudo firewall-cmd --permanent --add-service=httpsudo systemctl reload firewalld
RPM安装GitLab
curl -LJO https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-XXX.rpmrpm -i gitlab-ce-XXX.rpm其中,xxx代表对应的gitlab版本,不清楚gitlib-ce版本可以访问镜像列表https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7去获取下载
配置并启动 GitLab
sudo gitlab-ctl reconfigure
通过浏览器访问上一步配置的域名
- 第一次访问 GitLab,系统会重定向 url 到重置密码的页面,你需要输入初始化管理员账号的密码。 设置完成后,系统会重定向到登录界面,你就可以使用刚才输入的密码登录系统了。
添加Group组与新建project
- 添加组,new group, 设置group path、group name、description后,再设置Visibility Level(访问级别)为private后,则该组为私有组,非组员看到该组的项目。
- 添加组员,点击右上角搜索框右侧的admin area跳转管理员界面,选择组后,可以对改组添加组员,设置组员角色。
- 添加项目,new project,设置project path,project name,description后,设置访问级别为private后,生成git地址,本地clone后即可提交项目到gitlab中。
注意事项
- 服务器重启时,GitLab有可能也需要重新启动,启动命令:
sudo gitlab-ctl start
阅读全文
0 0
- GitLab在Centos7下的安装及项目创建与使用
- GitLab在CentOS7下LNMP环境的安装使用
- 在centos7下安装gitlab-runner
- CentOS7下安装GitLab
- CentOS7下安装GitLab
- CentOS7下安装GitLab
- CentOS7安装GitLab、汉化、邮箱配置及使用
- gitlab的安装及仓库创建
- CentOS7安装GitLab的步骤
- 区块链 Hyperledger - 超级账本项目在centos7环境下的安装与部署
- centos7下gitlab的搭建、备份与还原
- Gitlab安装及使用
- GitLab的安装及使用教程
- git使用:虚拟机gitlab安装,即项目创建上传下载
- 在linode centos7 上安装 gitlab-ce
- 最新gitlab在CentOs7.3中的安装
- 使用Gitlab创建git项目
- Gitlab安装与使用
- 消息队列应用场景
- 排序之三:插入排序
- c语言宏定义#define的理解与资料整理
- Java设计模式学习笔记,一:单例模式
- 线程同步-----条件变量
- GitLab在Centos7下的安装及项目创建与使用
- 数据库读写分离的一些坑
- hadoop中map分片信息的源码分析
- Java基础Day2
- ZOJ3574 Under Attack II【线段树】
- 已归档博文收纳
- 01wxWidgets创建wxFrame
- Java8时间校正器
- Jzzhu and Cities(CodeForces