問題タブ [cgit]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
nginx - cgit を nginx にインストールするには?
次の「https://gist.github.com/stran12/1394757」gistを使用して、nginxにcgitをインストールしています。私はほとんどすべてのステップを完了しました。私のnginxサーバーも稼働しています。「cgit-fastcgi」サービスの開始中に、以下のエラーが発生します:
/usr/bin/spawn-fcgi 22 行目の foreach ループ エントリで、引数 "/tmp/cgi.sock" が数値ではありません。
このエラーを修正する方法を教えてください。
私の spawn-fcgi ファイルは次のとおりです。
#!/usr/bin/perl
厳密に使用します。警告を使用する FATAL => qw( all );
IO::Socket::UNIX を使用します。
私の $bin_path = '/usr/bin/fcgiwrap';
私の $socket_path = $ARGV[0] || '/tmp/cgi.sock';
私の $num_children = $ARGV 1 || 1;
STDIN を閉じます。
$socket_path のリンクを解除します。私の $socket = IO::Socket::UNIX->new( Local => $socket_path, Listen => 100, );
die "$socket_path にソケットを作成できません: $!\n" $socket;
for (1 .. $num_children) { 私の $pid = フォーク; die "フォークできません: $!" 定義されていない限り、$pid; 次の場合 $pid;
git - リポジトリが見つかりません
をインストールして構成した後cgit
、ページhttp://servergit/cgitgitolite
を開こうとするとapache
、「リポジトリが見つかりません」というエラーが表示されました。
のエラー/var/log/httpd/error_log
:
ファイルとフォルダーのアクセス許可:
Permission denied (13)
エラーの原因がわかりません。
projects.list をコピーし/tmp/projects.list
て変更cgitrc
しました
次に、次の新しいエラーが発生しました/var/log/httpd/error_log
。
なぜ文句を言うのかわかりません"No such file or directory"
。
これはCentOS 7.2
プラットフォームです。
誰か助けてください。