参考文章
1.部署自己的gitlab服务器成功部署gitlab8
2.CentOS6.3下GitLab+Nginx(SSL)+MySQL+Ruby安装部署 在细节上写的非常好
比如说nginx的ssl配置,比如在linux客户机上怎么不用密码git clone
下面是我这段时间碰到的问题
如何在linux上无密码git clone
# useradd test # su test # mkdir testprojiect # cd testprojiect/ # git init # echo "What a fucking Hello World" > readme.txt # git add . # git commit -m 'first commit' # git remote add origin [email protected]:root/testproject.git # git push -u origin master 如果报错 /opt/git/gitlab-shell/lib/gitlab_shell.rb:135:in `exec': No such file or directory - git-upload-pack (Errno::ENOENT) from /opt/git/gitlab-shell/lib/gitlab_shell.rb:135:in `exec_cmd' from /opt/git/gitlab-shell/lib/gitlab_shell.rb:118:in `process_cmd' from /opt/git/gitlab-shell/lib/gitlab_shell.rb:31:in `exec' from /opt/git/gitlab-shell/bin/gitlab-shell:20:in `<main>' fatal: Could not read from remote repository. ln -s /usr/local/ruby/bin/ruby /usr/bin/ruby ln -s /opt/soft/git/bin/git-upload-pack /usr/bin/git-upload-pack ln -s /opt/soft/git/bin/git-receive-pack /usr/bin/git-receive-pack
最后nginx和gitlab最好还是安装在一台机器上,我现在nginx和gitlab是分开的,git clone只能使用ip
,nginx上做的是反向代理啊。