zoukankan      html  css  js  c++  java
  • 阿里云安装Gitlab

    手动部署GitLab环境

    完成以下操作,手动部署GitLab环境:

    1. 安装依赖包。
      sudo yum install -y curl policycoreutils-python openssh-server
    2. 设置SSH开机自启动并启动SSH服务。
      sudo systemctl enable sshd
      sudo systemctl start sshd
    3. 安装Postfix来发送通知邮件。
      sudo yum install postfix
    4. 设置Postfix开机自启动。
      sudo systemctl enable postfix
    5. 启动Postfix服务。
      1. 运行命令vim /etc/postfix/main.cf打开main.cf文件,找到下图内容:
        set_inet
      2. i进入编辑模式。
      3. 将这行代码改为inet_interfaces = all
      4. Esc退出编辑模式,然后输入:wq并回车以保存并关闭文件。
      5. 运行命令sudo systemctl start postfix启动Postfix服务。
    6. 添加GitLab软件包仓库。
       curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
    7. 安装GitLab。
      sudo EXTERNAL_URL="GitLab服务器的公网IP地址" yum install -y gitlab-ce
      说明 您可从ECS管理控制台的实例列表页面找到GitLab服务器的公网IP地址。
    8. 使用浏览器访问GitLab服务器的公网IP地址。
      返回页面如下图所示,说明环境搭建成功。

  • 相关阅读:
    子查询
    主键、外键
    语句、聚合函数、数学函数、字符串函数、时间日期函数
    数据库的备份、还原、分离、附加
    SQL server数据类型、增删改查
    轮播特效
    手风琴特效
    关于Winform中的用户代理
    详细的SQL中datediff用法
    sql server 的datediff函数
  • 原文地址:https://www.cnblogs.com/dalianpai/p/12234310.html
Copyright © 2011-2022 走看看