| zalexi |
|
Темы:
17
Сообщения:
185
Участник с: 16 марта 2012
|
Хочу перейти на rtorrent. Не получается запустить. Установку и настройку поизводил по статье: http://habrahabr.ru/post/120167/. Вроде и руки не особо кривые, и с головой дружу, и даже на Убунте в свое время поставил rtorrent (только с lighttpd). Но в этом случає не получается запустить rtorrent. Согласно статье можно поставить ВМЕСТЕ rtorrent-color и libtorrent-extended. Но rtorrent-color у меня во время сборки выдал ошибку, взамен ему поставил простой rtorrent, который, в свою очередь, вступил в конфликт с libtorrent-extended, который пришлось удалить. В итоге, у меня стоит только rtorrent с основного репозитория. По ходу вопрос: Какой лучше ставить rtorrent, расчитывая его круглосуточное использование и управление через web-интерфейс (rutorrent)? Вот мои конфиги, выложенные по порядку исправления, согласно статье http://habrahabr.ru/post/120167/ (пользователь = “z”, система = “notebook”): /etc/php/php-fpm.conf ;;;;;;;;;;;;;;;;;;;;;
; FPM Configuration ;
;;;;;;;;;;;;;;;;;;;;;
... вырезал всё, что не раскомментировано ...
;;;;;;;;;;;;;;;;;;
; Global Options ;
;;;;;;;;;;;;;;;;;;
[global]
; Pid file
; Note: the default prefix is /var
; Default Value: none
pid = run/php-fpm/php-fpm.pid
;;;;;;;;;;;;;;;;;;;;
; Pool Definitions ;
;;;;;;;;;;;;;;;;;;;;
; Start a new pool named 'www'.
; the variable $pool can we used in any directive and will be replaced by the
; pool name ('www' here)
[www]
; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group
; will be used.
user = http
group = http
; The address on which to accept FastCGI requests.
; Valid syntaxes are:
; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific address on
; a specific port;
; 'port' - to listen on a TCP socket to all addresses on a
; specific port;
; '/path/to/unix/socket' - to listen on a unix socket.
; Note: This value is mandatory.
listen = 127.0.0.1:9000
;listen = /var/run/php-fpm/php-fpm.sock
; Set permissions for unix socket, if one is used. In Linux, read/write
; permissions must be set in order to allow connections from a web server. Many
; BSD-derived systems allow connections regardless of permissions.
; Default Values: user and group are set as the running user
; mode is set to 0666
listen.owner = http
listen.group = http
listen.mode = 0660
; Choose how the process manager will control the number of child processes.
; Possible Values:
; static - a fixed number (pm.max_children) of child processes;
; dynamic - the number of child processes are set dynamically based on the
; following directives. With this process management, there will be
; always at least 1 children.
; pm.max_children - the maximum number of children that can
; be alive at the same time.
; pm.start_servers - the number of children created on startup.
; pm.min_spare_servers - the minimum number of children in 'idle'
; state (waiting to process). If the number
; of 'idle' processes is less than this
; number then some children will be created.
; pm.max_spare_servers - the maximum number of children in 'idle'
; state (waiting to process). If the number
; of 'idle' processes is greater than this
; number then some children will be killed.
; ondemand - no children are created at startup. Children will be forked when
; new requests will connect. The following parameter are used:
; pm.max_children - the maximum number of children that
; can be alive at the same time.
; pm.process_idle_timeout - The number of seconds after which
; an idle process will be killed.
; Note: This value is mandatory.
pm = static
; The number of child processes to be created when pm is set to 'static' and the
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
; This value sets the limit on the number of simultaneous requests that will be
; served. Equivalent to the ApacheMaxClients directive with mpm_prefork.
; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP
; CGI. The below defaults are based on a server without much resources. Don't
; forget to tweak pm.* to fit your needs.
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
; Note: This value is mandatory.
pm.max_children = 2
; The number of child processes created on startup.
; Note: Used only when pm is set to 'dynamic'
; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
pm.start_servers = 2
; The desired minimum number of idle server processes.
; Note: Used only when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
pm.min_spare_servers = 1
; The desired maximum number of idle server processes.
; Note: Used only when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
pm.max_spare_servers = 3#
# #user http;
# worker_processes 2;
#
# #error_log logs/error.log;
# error_log /var/log/nginx/error.log;
# #error_log logs/error.log notice;
# #error_log logs/error.log info;
#
# #pid logs/nginx.pid;
# pid /var/run/nginx.pid;
#
# events {
# worker_connections 1024;
# use epoll;
# }
#
#
# http {
# include 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 logs/access.log main;
#
# sendfile on;
# #tcp_nopush on;
#
# #keepalive_timeout 0;
# keepalive_timeout 65;
#
# #gzip on;
#
# 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;
# location = /50x.html {
# root html;
# }
#
# # proxy the PHP scripts to Apache listening on 127.0.0.1:80
# #
# #location ~ \.php$ {
# # proxy_pass http://127.0.0.1;
# #}
#
# # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
# #
# #location ~ \.php$ {
# # root html;
# # fastcgi_pass 127.0.0.1:9000;
# # fastcgi_index index.php;
# # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# # include fastcgi_params;
# #}
#
# # deny access to .htaccess files, if Apache's document root
# # concurs with nginx's one
# #
# #location ~ /\.ht {
# # deny all;
# #}
# }
#
#
# # another virtual host using mix of IP-, name-, and port-based configuration
# #
# #server {
# # listen 8000;
# # listen somename:8080;
# # server_name somename alias another.alias;
#
# # location / {
# # root html;
# # index index.html index.htm;
# # }
# #}
#
#
# # HTTPS server
# #
# #server {
# # listen 443;
# # server_name localhost;
#
# # ssl on;
# # ssl_certificate cert.pem;
# # ssl_certificate_key cert.key;
#
# # ssl_session_timeout 5m;
#
# # ssl_protocols SSLv2 SSLv3 TLSv1;
# # ssl_ciphers HIGH:!aNULL:!MD5;
# # ssl_prefer_server_ciphers on;
#
# # location / {
# # root html;
# # index index.html index.htm;
# # }
# #}
#
# }
worker_processes 2;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
use epoll;
}
http {
include /etc/nginx/conf/mime.types;
default_type application/octet-stream;
upstream backend {
server 127.0.0.1:9000;
}
upstream backendrtorrent {
server unix:/home/z/.rtorrent.sock;
}
sendfile on;
keepalive_timeout 65;
include /etc/nginx/conf/sites-enabled/*;
include /etc/nginx/conf/conf.d/*;
}server {Каталоги /srv/http/nginx/rutorrent.notebook/logs и /srv/http/nginx/rutorrent.notebook/htdocs - существуют. /etc/hosts #~/.rtorrent.rc scgi_local = /home/z/.rtorrent.sock/etc/rc.d/rtorrentd #!/usr/bin/env bashЗапуск rtorrent. sudo /etc/rc.d/rtorrentd start sudo screen -rWeb-интерфейс пишет: Нет связи с rTorrent. Проверьте, запущен ли он. Проверьте, что параметры $scgi_port и $scgi_host в файле config.php совпадают со значением переменной scgi_port в файле конфигурации rTorrent./srv/http/nginx/rutorrent.notebook/htdocs/conf/config.php <?phpВопросы: 1. Что у меня неправильно в конфигах? 2. Как сделать запуск от юзера, а не от рута? 3. Может лучше поставить lighttpd вместо nginx?
Нужно умереть молодым и сделать это как можно позже.
|
| rnqlover |
|
|
Темы:
43
Сообщения:
166
Участник с: 19 декабря 2011
|
А что если поставить utorrent server? У него есть доступ по вебморде и очень прост в запуске\настройке
Опыт - это такая вещь, которая появляется сразу после того, как была нужна
|
| gineaser |
|
Темы:
9
Сообщения:
131
Участник с: 04 февраля 2012
|
А почему не deluged с очень хорошей вебмордой? |
| zalexi |
|
Темы:
17
Сообщения:
185
Участник с: 16 марта 2012
|
2rnqlover utorrent-server такой же легкий и быстрый как rtorrent? Насколько стабилен, ведь он еще альфа? Я на арч с dwm только из-за минимализма, быстроты и легкости переходил. 2Gineaser Пробовал Deluge. Отказался из-за невозможности нормально работать с RSS. Лучше всего по функционалу был ktorrent, но после перехода на Arch+dwm - не вижу смысла грузить кучу библиотек и запускать в фоне ненужные процессы.
Нужно умереть молодым и сделать это как можно позже.
|
| rnqlover |
|
|
Темы:
43
Сообщения:
166
Участник с: 19 декабря 2011
|
Zalexi Не пробовал rtorrent. На счет легкости. Просто запускаете исполняемый файл, заходите на локахост в вебморду и там все настраиваете. Если не нравится так, то есть файлы конфигурации utservera. Занимает utserver у меня 8% процентов процессора и 0.28% оперативки. Сейчас заметил, что изредка он берет на себя около 30% проца, затем мгновенно спускается на 8-и процентный уровень.
Опыт - это такая вещь, которая появляется сразу после того, как была нужна
|
| zalexi |
|
Темы:
17
Сообщения:
185
Участник с: 16 марта 2012
|
rnqlover Поставил utserver, запустил. Но как работать с RSS? Получается очень урезаный функционал. Таких програм и родных под Линукс много. Мне нужна именно возможность работы с RSS.
Нужно умереть молодым и сделать это как можно позже.
|
| rnqlover |
|
|
Темы:
43
Сообщения:
166
Участник с: 19 декабря 2011
|
Zalexi Не совсем понял Вас. Вы хотите чтобы utserver собирал RSS ленты?
Опыт - это такая вещь, которая появляется сразу после того, как была нужна
|
| RiD |
|
|
Темы:
30
Сообщения:
400
Участник с: 27 июня 2011
|
rnqlover Может у нас процессоры разные.. У меня i5 мобильный. Я вообще не замечал, чтоб указанныя связка(rtorrent + + +) ела какие-то ресурсы. В пределах процента. На днях на своей lfs системе планировал поднять тоже самое. P.S. Да, важное обстоятельство. У меня торрентов немного. Около 20 на раздаче и качаю обычно 2-3.. |
| bobart |
|
|
Темы:
38
Сообщения:
2537
Участник с: 28 ноября 2009
|
viewtopic.php?f=8&t=1547&hilit=rtorrent Вдруг пригодится? |
| RiD |
|
|
Темы:
30
Сообщения:
400
Участник с: 27 июня 2011
|
Что-то я взял плохую привычку, не отвечать по теме =) Запустите rtorrent просто в консоле.. И посмотрите, что будет говорить rutorrent. Я как помню - вносил какие-то модернизации.. И этот самый rtorentd работал криво. Его задача не велика, запустть rtorrent в screen. А если screen -r говорит, что нет screen`ов, то и rtorrent не запущен. И логично, что с ним не соедениться. Чуть позже дополню, напишу что у меня собралось.. |