Skip to content
石头软件测试技术分享石头软件测试技术分享
主页
github icon
  • 其他

    • 环境部署
      • gitlab部署指南
        • 部署环境
          • Gitlab包及依赖下载
            • 安装命令
              • 配置url
                • 保存配置
                  • 常用命令
                  • 禅道部署
                    • 禅道下载
                      • 禅道安装
                        • 禅道访问
                          • 其他
                        • 常用工具下载链接
                          • 国内源地址
                            • 关于网站

                            环境部署

                            author icon石头calendar icon2022年1月17日category icon
                            • 其他
                            tag icon
                            • gitlab
                            timer icon大约 1 分钟

                            此页内容
                            • gitlab部署指南
                              • 部署环境
                              • Gitlab包及依赖下载
                              • 安装命令
                              • 配置url
                              • 保存配置
                              • 常用命令
                            • 禅道部署
                              • 禅道下载
                              • 禅道安装
                              • 禅道访问
                              • 其他

                            # 环境部署

                            # gitlab部署指南

                            # 部署环境

                            部署环境:redhat 6.10
                            部署gitlab版本:11.1.0

                            # Gitlab包及依赖下载

                            # gitlab下载

                            https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/open in new window

                            # openssh-server下载

                            http://www.rpmfind.net/linux/centos/6.10/updates/x86_64/Packages/openssh-server-5.3p1-124.el6_10.x86_64.rpmopen in new window

                            # openssh下载

                            http://www.rpmfind.net/linux/centos/6.10/updates/x86_64/Packages/openssh-5.3p1-124.el6_10.x86_64.rpmopen in new window

                            # 安装命令

                            # Gitlab安装

                            rpm -ivh gitlab-ce-12.0.3-ce.0.el6.x86_64.rpm
                            
                            1

                            # openssh-server安装

                            rpm -ivh openssh-server-5.3p1-124.el6_10.x86_64
                            
                            1

                            # openssh包安装

                            rpm -ivh openssh-server-5.3p1-124.el6_10.x86_64.rpm
                            
                            1

                            # 配置url

                            vim /etc/gitlab/gitlab.rb
                            
                            1

                            external_url 'http://x.x.x.x:端口' 修改默认端口,不能与url端口一样否则会冲突 这里建议不修改(unicorn['port'] = xxxx)会出错

                            # 保存配置

                            sudo gitlab-ctl reconfigure
                            
                            1

                            # 常用命令

                            # 重启

                            sudo gitlab-ctl restart
                            
                            1

                            # 启动

                            sudo gitlab-ctl status
                            
                            1

                            # 停止

                            sudo gitlab-ctl stop
                            
                            1

                            # 查看状态

                            gitlab-ctl status
                            
                            1

                            # 查看日志

                            sudo gitlab-ctl tail
                            
                            1

                            # 查看某个模块日志

                            sudo gitlab-ctl tail redis
                            
                            1

                            # 备份

                            gitlab-rake gitlab:backup:create
                            
                            1

                            # 禅道部署

                            # 禅道下载

                            禅道软件下载地址:http://www.zentao.net/download.htmlopen in new window

                            # 禅道安装

                            1. 将安装包直接解压到/opt目录下
                            sudo tar -zxvf  ZenTaoPMS.7.3.stable.zbox_32.tar.gz -C /opt
                            
                            1
                            1. Apache和Mysql常用命令
                            /opt/zbox/zbox start   # 命令开启Apache和Mysql。
                            /opt/zbox/zbox stop    # 命令停止Apache和Mysql。
                            /opt/zbox/zbox restart # 命令重启Apache和Mysql
                            
                            1
                            2
                            3

                            # 禅道访问

                            http://禅道服务器ip:apache端口
                            默认管理员账号密码

                            admin  # 帐号
                            123456 # 密码
                            
                            1
                            2

                            # 其他

                            使用/opt/zbox/zbox -h命令来获取关于zbox帮助
                            -ap参数 可以修改Apache的端口
                            -mp参数 可以修改Mysql的端口
                            例apache端口改为8080,mysql端口改为3307

                            /opt/zbox/zbox stop
                            /opt/zbox/zbox -ap 8080 -mp 3307
                            /opt/zbox/zbox start
                            
                            1
                            2
                            3
                            下一页
                            常用工具下载链接
                            Copyright © 2021-present Evan You 石头 | 备案号 : 蜀ICP备2021021200号-2 | 友情链接 : APP开发者工具