参考文章
1.部署自己的gitlab服务器成功部署gitlab8
2.CentOS6.3下GitLab+Nginx(SSL)+MySQL+Ruby安装部署 在细节上写的非常好
比如说nginx的ssl配置,比如在linux客户机上怎么不用密码git clone
下面是我这段时间碰到的问题
如何在linux上无密码git clone
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# 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 git@git.example.com: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上做的是反向代理啊。
本文转自 liqius 51CTO博客,原文链接:http://blog.51cto.com/szgb17/1784120,如需转载请自行联系原作者