zoukankan      html  css  js  c++  java
  • Linux-搭建gitlab

    Centos7搭建gitlab

    安装依赖软件(注意看提示到底缺少什么依赖)

    安装所需命令

    sudo yum install curl openssh-server openssh-clients postfix cronie

    GitLab使用postfix发送邮件

    sudo service postfix start

    设置postfix开机自启动

    sudo chkconfig postfix on
    yum -y install policycoreutils openssh-server openssh-clients postfix

    设置postfix开机自启,并启动,postfix支持gitlab发信功能

    systemctl enable postfix && systemctl start postfix

    下载gitlab安装包,然后安装

    Wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-8.0.0-ce.0.el7.x86_64.rpm

    解压安装包

    rpm -i gitlab-ce-8.0.0-ce.0.el7.x86_64.rpm

    修改gitlab配置文件指定服务器ip和自定义端口:

    vim  /etc/gitlab/gitlab.rb

    如“http://106.54.75.89:8888”

    重置并启动GitLab

    gitlab-ctl reconfigure

    修改过配置后执行

    gitlab-ctl restart 

    重启项目

    访问 GitLab页面

    如果没有域名,直接输入服务器ip和指定端口进行访问

    初始账户: root 密码: 5iveL!fe

    第一次登录修改密码

    设置gitlab发信功能,需要注意一点:

    发信系统用的默认的postfix,smtp是默认开启的,两个都启用了,两个都不会工作。

    我这里设置关闭smtp,开启postfix

    关闭smtp方法:

    vim /etc/gitlab/gitlab.rb

    找到#gitlab_rails['smtp_enable'] = true 改为 gitlab_rails['smtp_enable'] = false

    搭建完后可以进入页面访问,但是数据库问题还没有解决。

  • 相关阅读:
    python获取股票数据接口
    Excel使用VBA读取实时WebService股票数据
    安装Pycharm
    Pycharm2019使用
    KLine
    pycharm下用mysql
    新浪股票接口
    SpringBoot整合持久层技术--(二)MyBatis
    SpringBoot整合持久层技术--(一)JdbcTemplate
    SpringBoot整合WEB开发--(十)配置AOP
  • 原文地址:https://www.cnblogs.com/lixianglong/p/12195078.html
Copyright © 2011-2022 走看看