我使用下面的"https://gist.github.com/stran12/1394757“gist在nginx上安装cgit。我几乎把所有的步骤都做完了。我的nginx服务器也已启动并运行。在启动“cgit-”服务时,我得到的错误如下:
参数"/tmp/cgi.sock“在/usr/bin/第22行的foreach循环条目中不是数字。
知道怎么纠正这个错误吗。
我的产卵文件是:
#!/usr/bin/perl 使用严格;使用致命的=> qw( all )警告; 使用IO::Socket::UNIX; 我的$bin_path = '/usr/bin/fcgiwrap'; 我的$socket_path = $ARGV连体'/tmp/cgi.sock'; 我的$num_children = $ARGV1收1; 关闭STDIN; 取消链接$socket_path;我的$socket = IO::Socket::UNIX->new( Local=> $socket_path,Listen => 100 ); 死“不能在$socket_path:$!\n”创建套接字,除非$socket; 为(1 . )( $num_children) { my $pid =$pid;死后“不能分叉:$!”除非定义为$pid;其次为if $pid; exec $bin_path;die“未能执行$bin_path:$!\n";}
发布于 2015-08-22 17:37:35
我刚刚重新安装了spawn-fcgi,下面是链接。
https://github.com/anujsharma12feb/cgit-fcgiwrap-nginx/wiki
对我来说很管用。
sudo apt-get update sudo apt-获取安装产卵-fcgi
https://stackoverflow.com/questions/32066012
复制相似问题