参考文章
比如说nginx的ssl配置,比如在linux客户机上怎么不用密码git clone
下面是我这段时间碰到的问题
如何在linux上无密码git clone
<code># useradd test</code>
<code># su test</code>
<code># mkdir testprojiect</code>
<code># cd testprojiect/</code>
<code># git init</code>
<code># echo "What a fucking Hello World" > readme.txt</code>
<code># git add .</code>
<code># git commit -m 'first commit'</code>
<code># git remote add origin [email protected]:root/testproject.git</code>
<code># git push -u origin master</code>
<code>如果报错</code>
<code>/opt/git/gitlab-shell/lib/gitlab_shell</code><code>.rb:135:</code><code>in</code> <code>`</code><code>exec</code><code>': No such </code><code>file</code> <code>or directory - git-upload-pack (Errno::ENOENT)</code>
<code> </code><code>from </code><code>/opt/git/gitlab-shell/lib/gitlab_shell</code><code>.rb:135:</code><code>in</code> <code>`exec_cmd'</code>
<code> </code><code>from </code><code>/opt/git/gitlab-shell/lib/gitlab_shell</code><code>.rb:118:</code><code>in</code> <code>`process_cmd'</code>
<code> </code><code>from </code><code>/opt/git/gitlab-shell/lib/gitlab_shell</code><code>.rb:31:</code><code>in</code> <code>`</code><code>exec</code><code>'</code>
<code> </code><code>from </code><code>/opt/git/gitlab-shell/bin/gitlab-shell</code><code>:20:</code><code>in</code> <code>`<main>'</code>
<code>fatal: Could not </code><code>read</code> <code>from remote repository.</code>
<code>ln</code> <code>-s </code><code>/usr/local/ruby/bin/ruby</code> <code>/usr/bin/ruby</code>
<code>ln</code> <code>-s </code><code>/opt/soft/git/bin/git-upload-pack</code> <code>/usr/bin/git-upload-pack</code>
<code>ln</code> <code>-s </code><code>/opt/soft/git/bin/git-receive-pack</code> <code>/usr/bin/git-receive-pack</code>
最后nginx和gitlab最好还是安装在一台机器上,我现在nginx和gitlab是分开的,git clone只能使用ip
,nginx上做的是反向代理啊。
本文转自 liqius 51CTO博客,原文链接:http://blog.51cto.com/szgb17/1784120,如需转载请自行联系原作者