侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

GitLab搭建

2023-11-06 星期一 / 0 评论 / 0 点赞 / 44 阅读 / 1366 字

安装配置依赖项sudo yum install curl openssh-server openssh-clients postfix croniesudo service postfix start

  1. 安装配置依赖项
sudo yum install curl openssh-server openssh-clients postfix croniesudo service postfix startsudo chkconfig postfix onsudo lokkit -s http -s ssh
  1. 添加GitLab仓库,并安装到服务器上
curl -sS http://packages.gitlab.cc/install/gitlab-ce/script.rpm.sh | sudo bashsudo yum install gitlab-ce
  1. 启动GitLab
sudo gitlab-ctl reconfigure

4、使用浏览器访问GitLab首次访问GitLab,系统会让你重新设置管理员的密码,设置成功后会返回登录界面.默认的管理员账号是root,如果你想更改默认管理员账号,请输入上面设置的新密码登录系统后修改帐号名.参考URL:https://www.gitlab.com.cn/downloads/#centos6

5、常用命令Get service status 查看各服务状态 sudo gitlab-ctl status

run: nginx: (pid 972) 7s; run: log: (pid 971) 7srun: postgresql: (pid 962) 7s; run: log: (pid 959) 7srun: redis: (pid 964) 7s; run: log: (pid 963) 7srun: sidekiq: (pid 967) 7s; run: log: (pid 966) 7srun: unicorn: (pid 961) 7s; run: log: (pid 960) 7s
# 启动Gitlab所有组件sudo gitlab-ctl start# 停止Gitlab所有组件sudo gitlab-ctl stop# 重启Gitlab所有组件sudo gitlab-ctl restart

广告 广告

评论区