CentOS安装gitlab
来源:互联网 发布:多核编程的艺术 编辑:程序博客网 时间:2024/06/10 02:22
最近在搞gitlab,一开始在ubuntu上安装的,那个过程简直是痛不欲生。可能是因为人品不好的缘故吧,中间出现了各种错误;一度几乎让我产生了放弃的念头,后来发现很多都是用的CentOS来安装gitlab。于是,抱着试一试的心情就又进行了一次尝试,没想到,出奇的顺利。现记下安装过程,以便以后查阅。
首先,过程主要是按照官方来的:https://about.gitlab.com/installation/
1.安装并配置必要的依赖关系
sudo yum install curl policycoreutils openssh-server openssh-clientssudo systemctl enable sshdsudo systemctl start sshdsudo yum install postfixsudo systemctl enable postfixsudo systemctl start postfixsudo firewall-cmd --permanent --add-service=httpsudo systemctl reload firewalld
2.添加GitLab包服务器并安装包
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bashsudo yum install gitlab-ce
也可以直接用以下命令:
curl -LJO https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-XXX.rpm/downloadrpm -i gitlab-ce-XXX.rpm
3.配置并启动GitLab
sudo gitlab-ctl reconfigure
4.浏览到主机名并登录
在您第一次访问时,您将被重定向到密码重置屏幕,以提供初始管理员帐户的密码。输入您想要的密码,您将被重定向回登录屏幕。
默认帐户的用户名是root。提供您之前创建的密码并登录。登录后,您可以更改用户名。
阅读全文
0 0
- Centos安装gitlab安装
- CentOS 6安装Gitlab
- CentOS下一键安装GitLab
- CentOS上安装gitlab
- CentOS上安装GitLab
- centOS 7安装 gitLab
- Centos 安装gitlab
- centos下安装gitlab
- CentOS安装GitLab
- CentOS 7 安装 Gitlab
- CentOS安装GitLab
- Centos下安装GitLab
- Centos 7 安装 GitLab
- CentOS 7 安装GitLab
- centos安装gitlab-ce
- centos 7 安装gitlab
- CentOS安装gitlab
- centos安装gitlab
- 已解决:android studio找不到svn的配置了
- 浅析python中两种import的使用区别
- Scrapy-Item Loaders(项目加载器)
- Nginx详细安装部署教程
- Fragment之间传值CallBack(MainActivity)
- CentOS安装gitlab
- pageUtil分页工具类
- android 5.0 popuwindow 点击外部不消失
- $.ajax()方法详解
- Android端 同 单片机 利用蓝牙模块的通信实现
- firebreath activex wrapper编写过程
- Sublime Text3格式化html/css/js代码以及快捷键的查看与设置
- hdu 3836
- 求中位数,快速选择算法