Closed bifu123 closed 6 months ago
1、clone不下来的问题,你可以试试clone其他项目,大概率可能是本地配置问题。 2、nginx配置,你可以把这3个location注释掉,然后重启nginx看看页面访问正不正常,如果访问正常,就再把这3个location取消注释再重启试试
还有一个点特别注意:看nginx保存日志,可能没有目录读写权限;而且后端服务也要注意有没有读写权限
root@debian:~/OneDrive# mkdir -p /OneDrive/data /opt/data root@debian:~/OneDrive# chmod 777 -R /OneDrive/data /opt/data root@debian:~/OneDrive# chmod 777 ./OneDrive/* -R #给整个虚拟环境777权限
二、去除三个localion后的nginx.conf的server部分,这个显然对OneDrive的http://127.0.0.1:15200没有了任何代理作用
server { listen 80; server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
client_max_body_size 10240M; # 请求体大小限制,这里是上传文件的大小
proxy_connect_timeout 60s; # 建立连接的超时时间
proxy_send_timeout 600s; # 发送请求的超时时间
proxy_read_timeout 600s; # 读取响应的超时时间
location = /50x.html {
root html;
}
} }
三、去除location后访问出现nginx的默认界面
大神,您QQ多少,便于请教!
已加
(OneDrive) test@ubuntu64:~/OneDrive$ git clone https://github.com/leeyoshinari/OneDrive.git 正克隆到 'OneDrive'... remote: Enumerating objects: 1715, done. remote: Counting objects: 100% (47/47), done. remote: Compressing objects: 100% (38/38), done. error: RPC 失败。curl 56 GnuTLS recv error (-54): Error in the pull function. error: 预期仍然需要 5526 个字节的正文 fetch-pack: unexpected disconnect while reading sideband packet fatal: 过早的文件结束符(EOF) fatal: fetch-pack:无效的 index-pack 输出