pt吧 关注:203,304贴子:10,811,336

在vps上安装rtorrent+rutorrent+autodl-irssi的一点总结

只看楼主收藏回复

RT 前几天折腾了下vps 也开了求助帖 现在问题基本解决 所以想发个总结贴 也算当个备份 期间得到了@zwbsbadgv的不少帮助 在此感谢!其实昨天就想写了 但越发发觉这坑有点大 所以今天开始慢慢填 好了 现在开始。
主要是两种安装方法:1.纯手工安装(系统centos 6) 2.一键安装脚本 (系统Ubuntu 14.04)
手工安装参考GitHub的Novik/ruTorrent教程 网址:https://github.com/Novik/ruTorrent/wiki/WebSERVER
一键安装用的是@northeastlife提供的脚本 网址:https://github.com/arakasi72/rtinst @老板别放醋和@关羽青龙也推荐了个脚本 没有测试 希望用过的评测下 网址:https://github.com/Kerwood/rtorrent.auto.install
---------------------------------------------------------------------------------------------------------------------------------------
先总结下手工安装方法
安装好界面是这样的:

rtorrent是命令行下载工具 没有图形界面 rutorrent是rtorrent图形界面 类似毛盒的webui 安装的最麻烦的地方也正是rutorrent的安装 因为要搭建web环境。
web的架构方式主要有两种:LAMP(Linux+Apache+Mysql+PHP)和LNMP(Linux+Nginx+Mysql+PHP)
由于只要搭建web界面 不需要数据库 所以Mysql不需要安装
我安装时用的是Nginx


IP属地:江苏本楼含有高级字体1楼2015-10-03 21:08回复
    前排
      ~~~~~~~~~~~~~~~~
    我们离大名士时代太远了,远到已经不相信这个国度是真的存在过有古君子之风的人了。
       


    IP属地:陕西来自Android客户端2楼2015-10-03 21:09
    收起回复
      首先SSH进你的vps 软件可以用putty SecureCRT等 我用的是putty (ssh默认端口都是22)

      首先安装nginx
      1. 到nginx官网下载最新版 网址:http://nginx.org/en/download.html 下载稳定版 不要用开发板

      wget http://nginx.org/download/nginx-1.8.0.tar.gz (没有wget的 要先安装下 yum install wget)
      2. tar -xvf nginx-1.8.0.tar.gz
      3. cd nginx-1.8.0
      4. ./configure
      编译安装前先安装开发环境: yum groupinstall -y 'Development Tools' 解决依赖关系
      5. make
      6. make install


      IP属地:江苏3楼2015-10-03 21:23
      收起回复
        安装nginx过程中可能遇到的问题(./configure的可能报错):
        1. 问题:
        checking for PCRE library … not found checking for PCRE library in/usr/local/ … not found checking for PCRE library in /usr/include/pcre/ … notfound checking for PCRE library in /usr/pkg/ … not found checking for PCRElibrary in /opt/local/ … not found ./configure: error: the HTTP rewrite modulerequires the PCRE library. You can either disable the module by using–without-http_rewrite_module option, or install the PCRE library into thesystem, or build the PCRE library statically from the source with nginx byusing –with-pcre=<path> option.
        解决办法:yum install pcre-devel
        2. 问题:
        ./configure: error: the HTTP gzip module requires the zlib library.You can either disable the module by using –without-http_gzip_module option, orinstall the zlib library into the system, or build the zlib library staticallyfrom the source with nginx by using –with-zlib=<path> option.
        解决办法: yum install zlib zlib-devel
        3. 可能还会用到openssl组件:yum install opensslopenssl-devel


        IP属地:江苏4楼2015-10-03 21:30
        收起回复
          技术贴


          来自iPhone客户端5楼2015-10-03 21:36
          回复
            好专业


            IP属地:河南来自Android客户端6楼2015-10-03 21:37
            回复


              IP属地:陕西来自Android客户端7楼2015-10-03 21:41
              回复
                支持。最近正好有这个想法。。。学习了


                IP属地:内蒙古9楼2015-10-03 21:49
                回复
                  启动与配置nginx:(nginx的安装路径为:/usr/local/nginx 可以通过whereis nginx查询)
                  1. 修改nginx.conf (/usr/local/nginx/etc/conf/nginx.conf) 这是nginx的配置文件

                  修改的方法:
                  进入配置文件目录 cd /usr/local/nginx/etc/conf/ 用vi或者vim进行修改 vi nginx.conf (vi和vim的用法可自行百度)
                  或者使用winscp直接修改配置文件
                  2. 运行nginx:
                  cd /usr/local/nginx/sbin
                  ./nginx (未报错表示已正常运行)
                  可以使用如下命令查看运行情况:
                  ps aux |grep nginx 或者 netstat-tupln
                  没有错误就可以看到nginx监听80端口
                  3. 访问vps ip可以看到nginx欢迎页面:

                  PS 附上nginx的几个常用命令:
                  Nginx -s stop 快速关闭Nginx,可能不保存相关信息,并迅速终止web服务。(quick exit)
                  Nginx -s quit 平稳关闭Nginx,保存相关信息,有安排的结束web服务。(graceful exit)
                  Nginx -s reload 因改变了Nginx相关配置,需要重新加载配置而重载。(changing configuration,start a new worker,quitting an old worker gracefully.)
                  Nginx -s reopen 重新打开日志文件。(reopenging log files)
                  ----------------------------------------------------------------------------------------------------------------------------------
                  每一次修改nginx.conf都要重启nginx(切记)


                  IP属地:江苏10楼2015-10-03 21:55
                  收起回复
                    有事停更一会 回来接着填坑


                    IP属地:江苏11楼2015-10-03 21:57
                    回复
                      已收藏


                      IP属地:河南来自iPhone客户端13楼2015-10-03 22:20
                      回复
                        安装php:
                        1. 到官网下载源码包 网址: http://php.net/downloads.php

                        wget http://php.net/get/php-5.6.14.tar.gz/from/this/mirror (下载下来是mirror 重命名为mirror.tar.gz)
                        2. tar -xvfmirror.tar.gz
                        3. cd php-5.6.14
                        4. ./configure--prefix=/usr/local/php --with-config-file-path=/etc--enable-inline-optimization --disable-debug --disable-rpath --enable-shared--enable-opcache --enable-fpm --with-fpm-user=www --with-fpm-group=www--with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd--with-gettext --enable-mbstring --with-iconv --with-mcrypt --with-mhash--with-openssl --enable-bcmath --enable-soap --with-libxml-dir --enable-pcntl--enable-shmop --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-sockets--with-curl --with-zlib --enable-zip --with-bz2 --with-readline--without-sqlite3 --without-pdo-sqlite --with-pear
                        php比较大 编译时间会比较长
                        5. make
                        6. make install


                        IP属地:江苏15楼2015-10-03 22:55
                        收起回复
                          安装php过程中可能遇到的问题(./configure的可能报错):
                          1. 出现错误: congigureerror: xml2-config not found.
                          解决办法:
                          执行命令: yuminstall libxml2-devel
                          2. 出现错误:congigure error: Cannot find OpenSSL's <evp.h>
                          解决办法:
                          yum install openssl openssl-devel
                          3. 出现错误: configure:error: Please reinstall the BZip2 distribution
                          解决办法:
                          yuminstall bzip2 bzip2-devel
                          4. 出现错误: configure:error: Please reinstall the libcurl distribution -easy.h should be in<curl- dir>/include/curl/
                          解决办法:
                          yum -yinstall curl-devel
                          5. 出现错误:configure: error: mcrypt.h not found. Please reinstall libmcrypt.
                          解决方法:
                          yum install libmcrypt libmcrypt-devel mcrypt mhash
                          mcrypt mhash在centos自带的源里面没有 需要添加新源 推荐epel源 具体安装方法在rtorrent安装那部分介绍
                          6. 出现错误: configure:error: Please reinstall readline - I cannot find readline.h
                          解决方法:
                          yuminstall readline-devel


                          IP属地:江苏16楼2015-10-03 23:05
                          收起回复
                            启动与配置php:(php的安装路径为:/usr/local/php 可以通过whereis php查询)
                            1. 将源码包里的php.ini-production拷贝到/usr/local/php/etc/重命名为php.ini (这是php的配置文件)
                            cp php.ini-production /usr/local/php/etc/php.ini
                            将php-fpm.conf.default重命名为php-fpm.conf (这是php-fpm的配置文件)
                            cp php-fpm.conf.default php-fpm.conf
                            2. 修改php-fpm.conf:

                            将user和group改为nobody 其实可以随便改只要保持和nginx的用户一样就行 因为之前nginx的为nobody 所以这里改为nobody
                            3. 启动php-fpm:(/usr/local/php/sbin)
                            cd /usr/local/php/sbin
                            ./php-fpm (未报错表示正常运行)
                            可以使用下面命令查看运行情况:
                            netstat-tupln
                            没有错误可以看到php-fpm监听9000端口
                            ---------------------------------------------------------------------------------------------------------------------------------------
                            PS 每一次修改php-fpm.conf都要重启php-fpm (切记)


                            IP属地:江苏17楼2015-10-03 23:18
                            回复