[javascript]
view plain
copy
官网配置参考: https://www.gitlab.com.cn/installation/#centos-6 官方配置和帮助文档地址: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md 摘自官网配置文档: You can login as an admin user with username root and password 5iveL!fe 管理员默认登陆信息 root 5iveL!fe //卸载gitlab (# Redhat/Centos) sudo rpm -e gitlab-ce
yum安装 1. 安装并配置必要的依赖关系 //在 CentOS 系统上下面的命令将会打开系统防火墙 HTTP 和 SSH 的访问 sudo yum install curl openssh-server openssh-clients postfix cronie sudo service postfix start sudo chkconfig postfix on sudo lokkit -s http -s ssh 2. 添加 GitLab 镜像源并安装 curl -sS http://packages.gitlab.com.cn/install/gitlab-ce/script.rpm.sh | sudo bash sudo yum install gitlab-ce //如果你不太习惯使用命令管道的方式安装镜像仓库,你可以在这里找到 完整的安装脚本 或者 选择系统对应的安装包 使用下面的命令手动安装 curl -O https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6/gitlab-ce-9.4.3-ce.0.el6.x86_64.rpm rpm -ivh gitlab-ce-9.4.3-ce.0.el6.x86_64.rpm 3. 配置并启动 GitLab sudo gitlab-ctl reconfigure 4. 配置并登陆 GitLab(官网并未进行详尽说明) 进入配置文件: vi ./etc/gitlab/gitlab.rb 修改文件:在文件中命令模式下使用后面查找命令找到:/external_url 'http://localhost' 将localhost修改为浏览器访问的网址即可 重新加载配置:sudo gitlab-ctl reconfigure 5. 访问 GitLab 输入http://刚才配置的IP 使用上面默认的管理员信息登录之后,修改默认的访问密码(注意长度限制) 然后使用root和你最新修改的新密码就可以登录进去了 6.之后如果想要添加用户信息请查看本人博客 http://blog.csdn.net/ainuser/article/details/76480942
转载请注明原文地址: https://www.6miu.com/read-53329.html