小编EJa*_*Jay的帖子

Git响应'边带解复用器中的错误'

我设置了两台服务器(据我所知)完全一样.在其中一个上,使用git一直很好,但是在第二个上,我开始收到这个错误:

致命:远程端意外挂起
错误:边带解复用器出错

两者之间的一切都是相同的,包括.git/hooks/post-receive文件的内容.

配置中是否有一步我错过了什么地方?我已经尝试过两次重新启动回购,但无济于事.

我的收件后文件如下:

#!/ bin/sh
cd ..
env -i git reset --hard

git corruption

18
推荐指数
2
解决办法
2万
查看次数

Nginx错误413

当我尝试将文件上传到我的网站时,我收到的是Nginx"413 Request Entity Too Large"错误,但是在我的nginx.conf文件中,我已经明确说明目前最大大小约为250MB,并改变了php.ini中的最大文件大小(是的,我重新启动了进程).错误日志给了我这个:

2010/12/06 04:15:06 [错误] 20124#0:*11975客户端意图发送过大的机身:1144149字节,客户端:60.228.229.238,服务器:www.x.com,请求:"POST/upload HTTP/1.1",主机:"x.com",推荐人:"http://x.com/"

据我所知,1144149字节不是250MB ......这里有什么我想念的吗?

这是基本的Nginx配置:

user  nginx;
worker_processes  8;
worker_rlimit_nofile 100000;

error_log   /var/log/nginx/error.log;
#error_log  /var/log/nginx/error.log  notice;
#error_log  /var/log/nginx/error.log  info;

pid        /var/run/nginx.pid;


events {
    worker_connections  1024;
    use epoll;
}


http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;

    sendfile        on;
    client_max_body_size 300M;
    tcp_nopush      on;
    tcp_nodelay     on;
    server_tokens   off;
    gzip            on;
    gzip_static     on;
    gzip_comp_level 5;
    gzip_min_length 1024;
    keepalive_timeout  300;
    limit_zone …
Run Code Online (Sandbox Code Playgroud)

php file-upload nginx

14
推荐指数
1
解决办法
1万
查看次数

标签 统计

corruption ×1

file-upload ×1

git ×1

nginx ×1

php ×1