Centos7:Jenkins+gitlab+node项目启动(2) Centos7:Jenkins+gitlab+node项目启动(1)

 Centos7:Jenkins+gitlab+node项目启动(1)

Centos7:Jenkins+gitlab+node项目启动(1)-CSDN博客

Centos7:Jenkins+gitlab+node项目启动(2)

Centos7:Jenkins+gitlab+node项目启动(2)-CSDN博客

Centos7:Jenkins+gitlab+node项目启动(3)

Centos7:Jenkins+gitlab+node项目启动(3)-CSDN博客

安装gitlab

编辑文件(新建)

vim /etc/yum.repos.d/gitlab-ce.repo

[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
gpgcheck=0
enabled=1

安装

yum install gitlab-ce

缓存

yum makecache

常用指令

gitlab-ctl start    # 启动所有 gitlab 组件;
gitlab-ctl stop        # 停止所有 gitlab 组件;
gitlab-ctl restart        # 重启所有 gitlab 组件;
gitlab-ctl status        # 查看服务状态;
gitlab-ctl reconfigure        # 启动服务;
vim /etc/gitlab/gitlab.rb        # 修改默认的配置文件;
gitlab-rake gitlab:check SANITIZE=true --trace    # 检查gitlab;
sudo gitlab-ctl tail        # 查看日志;

修改配置

vim /etc/gitlab/gitlab.rb

external_url 'http://127.0.0.1:8282'
puma['port']=8283

注1:8282 随意定义 不冲突就好

注2:8283 这行没加的话 cpu飙升  打开本地GitLab  会出现 502

启动服务+启动组件

gitlab-ctl reconfigure   这个比较久

gitlab-ctl restart

 gitlab-ctl status

登录 http://192.168.2.77:8282/ 

用户:root

密码cat /etc/gitlab/initial_root_password

注1:修改相应的ip和端口

查看是否安装git

git --version

生成密钥文件

终端执行 ssh-keygen 下一步 下一步

cat id_rsa.pub

新建群组+新建项目

来吧 从此无bug

随便取个名字吧

来几个人一起写bug

http://192.168.2.77:8282/users/sign_up

您已成功注册。但是,由于您的帐户正在等待管理员的批准,我们无法让您登录。

root 账号登录 http://192.168.2.77:8282/admin

拉取下来

git config --global user.name 林一

git config --global user.email 01@qq.com
git clone http://192.168.2.77:8282/no-bug/game3

推送上去(注意当前路径)

随便新增一个文件 

git add.

git commit -m "测试提交"

git push

去网页查看项目

http://192.168.2.77:8282/no-bug/game3

相关推荐

  1. centos 7 添加启动脚本

    2023-12-29 07:12:02       16 阅读
  2. Centos7 Jenkins开机自启动

    2023-12-29 07:12:02       27 阅读
  3. centos7 后台启动jar包

    2023-12-29 07:12:02       11 阅读
  4. CentOS 7启动数据库服务失败

    2023-12-29 07:12:02       13 阅读
  5. CentOS7.9.2009设置kibana7.11.1开机自启动

    2023-12-29 07:12:02       19 阅读

最近更新

  1. TCP协议是安全的吗?

    2023-12-29 07:12:02       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2023-12-29 07:12:02       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2023-12-29 07:12:02       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2023-12-29 07:12:02       18 阅读

热门阅读

  1. 构造哈夫曼树(数据结构实训)(难度系数85)

    2023-12-29 07:12:02       32 阅读
  2. 【浏览器】Web存储梳理和总结

    2023-12-29 07:12:02       35 阅读
  3. 《C#程序设计教程》总复习

    2023-12-29 07:12:02       30 阅读
  4. Vue2面试题:说一下v-show、v-if、v-for的理解?

    2023-12-29 07:12:02       33 阅读
  5. Latex如何转成Word

    2023-12-29 07:12:02       34 阅读
  6. stm32采用队列方式接收和发送RS485串口数据

    2023-12-29 07:12:02       32 阅读
  7. 第41节: Vue3 watch函数

    2023-12-29 07:12:02       42 阅读
  8. uniapp 目录结构

    2023-12-29 07:12:02       35 阅读
  9. K8S Ingress-Nginx导出TCP端口

    2023-12-29 07:12:02       39 阅读