zoukankan      html  css  js  c++  java
  • gitlab下载安装及部署

    gitlab的下载地址:

    1. 安装依赖软件
    yum -y install policycoreutils openssh-server openssh-clients postfix
    2.设置postfix开机自启,并启动,postfix支持gitlab发信功能
    systemctl enable postfix && systemctl start postfix
    3.下载gitlab安装包,然后安装
    [gitlab的下载地址:](https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/)https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/
    rpm -ivh gitlab-ce-14.2.4-ce.0.el7.x86_64.rpm
    4.修改gitlab配置文件指定服务器ip和自定义端口      -->更改gitlab默认端口
    vim  /etc/gitlab/gitlab.rb 
    external_url 'http://192.168.2.130:8099'
    修改内容:external_url后改为自己的http://ip:端口;
    5:使用gitlab-ctl reconfigure 自动配置,并安装数据库,初始化信息(第一次使用配置时间较长):
    6:使用gitlab-ctl status 查看gitlab服务的状态
     命令:gitlab-ctl start --启动gitlab服务。
           gitlab-ctl stop   --停止服务
           gitlab-ctl stop nginx --单独停止某个服务
           gitlab-ctl reconfigure --启动服务
           gitlab-ctl start --启动所有gitlab组件
           gitlab-ctl tail  --查看所有服务的日志
    7.gitlab-ctl reconfigure      #更改配置文件后需重新配置
    /opt/gitlab/                #gitlab的程序安装目录
    /var/opt/gitlab             #gitlab目录数据目录
    /var/opt/gitlab/git-dfata   #存放仓库数据
    8.在浏览器中输入 http://ip:端口/ ,然后 change password: ,并使用root用户登录 即可 (后续动作根据提示操作)    
    
  • 相关阅读:
    JS之函数声明与表达式
    任重道远!
    Java_Notes01
    Android_Application Fundamentals
    Android_Activity
    Android
    Linux下的实模式和保护模式
    spring注解原理
    开启aix SFTP日志 是否和链接SFTP有关呢
    Apache版本兼容性问题
  • 原文地址:https://www.cnblogs.com/khtt/p/15352463.html
Copyright © 2011-2022 走看看