Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在阿里云上通过Omnibus一键安装包安装Gitlab #19

Open
hehongwei44 opened this issue Oct 25, 2015 · 8 comments
Open

在阿里云上通过Omnibus一键安装包安装Gitlab #19

hehongwei44 opened this issue Oct 25, 2015 · 8 comments

Comments

@hehongwei44
Copy link
Owner

假设使用的操作系统为CentOS6.5+,且最低硬件需求也符合要求,那么安装下面的操作要求安装,安装的Gitlab版本为8.1.0.

1.安装Gitlab所依赖的环境。操作命令如下所示:

sudo yum install curl openssh-server postfix cronie
sudo service postfix start
sudo chkconfig postfix on
sudo lokkit -s http -s ssh

2.下载GitLab安装包并安装,官网提供了两种方式,分别如下

方式一:

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install gitlab-ce

鉴于国内伟大的防火墙,这种方式我从来就没成功安装过。不过可以使用下面的方式来安装。

首先你的去https://packages.gitlab.com/gitlab/gitlab-ce找到符合你操作系统版本的安装包,下载到本地,然后上传到阿里云服务器安装,安装命令如下所示:

rpm -i gitlab-ce-XXX.rpm

不过,貌似下载速度比较慢,不过谁需要的话,会在下面评论给出百度云盘的地址。

3.安装完成后需要下面的命令重启Gitlab使配置生效。

sudo gitlab-ctl reconfigure

4.等过浏览器进行登录和访问。默认给出了顶级的root用户密码,登录后要重现设置密码并且要牢记该密码,由于这是权限最重的用户,密码设置的时候复杂度尽量高些。

Username: root 
Password: 5iveL!fe
@hehongwei44
Copy link
Owner Author

云盘地址:http://pan.baidu.com/s/1dDpv1wH

@jiw29
Copy link

jiw29 commented Mar 31, 2016

不用这么麻烦,gitlab-ce 镜像 在国内有镜像。https://mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/
然后 sudo yum install gitlab-ce done!

@nodelog
Copy link

nodelog commented Apr 9, 2016

@hehongwei44 网盘文件删除了

@nodelog
Copy link

nodelog commented Apr 9, 2016

@qintengfei 那个清华的镜像现在也不能用了把,我是下载不了

@nodelog
Copy link

nodelog commented Apr 9, 2016

@hehongwei44 那么多版本怎么选择呀?

@jiw29
Copy link

jiw29 commented Apr 10, 2016

@wyc0991 可以用。

@jerry-he
Copy link

怎么修改gitlab默认的存储目录啊

@nerffei
Copy link

nerffei commented May 20, 2017

... 我的是centos7, 用傻瓜安装方式安装之后,修改ip地址为公网ip后。外网死活连接不上。尝试在服务器上wget 公网Ip地址也连接不上,已经确认配置应该是正确的,是不是其他原因导致的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants