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

gitlab #37

Open
uniquejava opened this issue Apr 3, 2016 · 2 comments
Open

gitlab #37

uniquejava opened this issue Apr 3, 2016 · 2 comments

Comments

@uniquejava
Copy link
Owner

Ubuntu14.04

安装见我的OSC博客:
http://my.oschina.net/uniquejava/blog/536610

阿里云centos7

参考: http://www.cnblogs.com/chen110xi/p/4800413.html

安装基本系统与依赖包

安装 Gitlab 依赖的工具

yum -y update
yum -y groupinstall 'Development Tools'
yum -y install readline readline-devel ncurses-devel gdbm-devel glibc-devel tcl-devel openssl-devel curl-devel expat-devel db4-devel byacc sqlite-devel libyaml libyaml-devel libffi libffi-devel libxml2 libxml2-devel libxslt libxslt-devel libicu libicu-devel system-config-firewall-tui git redis ruby sudo wget crontabs logwatch logrotate perl-Time-HiRes

最终又参考了这里: (在阿里云上安装gitlab) https://segmentfault.com/a/1190000002722631

打开/etc/gitlab/gitlab.rb,将external_url = 'http://git.example.com' 我还同时

# # The home directory for the git user
# user['home'] = "/var/opt/gitlab"
user['home'] = "/home/git"

另参考:http://www.cnblogs.com/zhepama/p/4080279.html

@uniquejava
Copy link
Owner Author

安装postfix出错

安装postfix出错, 解决:http://www.zabbix.cc/technic/1898/

或者: 今天配邮件服务器,service postfix start总是FAILED.

最后没办法

vi /etc/postfix/main.cf

发现配置为:

inet_interfaces = localhost

inet_protocols = all

改成:

inet_interfaces = 127.0.0.1 #只能接受内部邮件,其它邮件不接受

inet_protocols = all

然后重启服务就好了,特此记录!

@uniquejava
Copy link
Owner Author

各种gitlab版本下载(需要翻墙)

https://about.gitlab.com/downloads/archives/

不要相信上面的sha256校验码.(是个错的)

mac下: shasum -a 256 filename 
ubuntu下: sha256sum filename

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

No branches or pull requests

1 participant