我正在尝试在最新的Arch Linux家庭服务器上设置rutorrent,但我无法让它运行,我认为从缺乏经验和过时的文档.
我无法与nxinx交流.当我在nginx上显示rutorrent时,它将无法连接到rtorrent,并且会在许多其他插件错误中出现此错误:
Bad response from server: (200 [parsererror,getuisettings])
Run Code Online (Sandbox Code Playgroud)
2015/07/24 17:29:49 [error] 11837#0: *19 upstream prematurely closed connection while reading response header from upstream, client: 192.168.x.<my remote machine>, server: localhost, request: "GET / HTTP/1.1", upstream: "scgi://unix:/home/user/scgi.socket:", host: "192.168.x.<my local nginx server>"
Run Code Online (Sandbox Code Playgroud)
502 Bad Gateway
Run Code Online (Sandbox Code Playgroud)
(17:50:40) Closed XMLRPC log.
Run Code Online (Sandbox Code Playgroud)
以下是我的配置文件的相关部分:
#encoding_list utf-8
scgi_local = /home/user/scgi.socket
execute = chmod,ug=rw\,o=,/home/user/scgi.socket
execute = chgrp,http,/home/user/scgi.socket
#scgi_port = 127.0.0.1:5000
Run Code Online (Sandbox Code Playgroud)
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
log_format main '$remote_addr - $remote_user [$time_local] $status '
'"$request" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /etc/nginx/logs/access.log main;
error_log /etc/nginx/logs/error.log notice;
server {
listen 80;
server_name localhost;
#charset koi8-r;
location / {
root /usr/share/nginx/html/rutorrent;
index index.html index.htm;
include scgi_params;
scgi_pass unix:/home/user/scgi.socket;
}
Run Code Online (Sandbox Code Playgroud)
不可否认,这大部分都是我的行话.我熟悉rtorrent,有点熟悉nginx,我知道网络的基本理论.然而,XML,scgi/unix套接字和php都超出了我的范围(我只知道python),而且我完全无法开始学习.我认为这可能与"RCP2"有关,但我真的不知道.blog.abevoelker.com在nginx.conf中没有设置RCP2.
对我来说基本上要温柔,我非常感谢你们给我的任何帮助.我知道我是一个在黑暗中磕磕绊绊的新手,但我正在努力学习.
http://linoxide.com/ubuntu-how-to/setup-rtorrent-rutorrent/
https://blog.abevoelker.com/rtorrent_xmlrpc_over_nginx_scgi/