centos 7 流量监控服务nload

  1. 安装EPEL库 yum -y install epel-release
  2. 安装nload yum install nload -y
  3. 使用nload nload
Device eth0 [10.2.0.248] (1/2):
================================================================================
Incoming:
                                                       Curr: 197.20 kBit/s
                                                       Avg: 214.61 kBit/s
                                                       Min: 143.73 kBit/s
                                                       Max: 1.20 MBit/s
                                                       Ttl: 7.32 GByte
Outgoing:
                                                       Curr: 464.02 kBit/s
                                                       Avg: 537.05 kBit/s
                                                       Min: 307.29 kBit/s
                                                       Max: 3.50 MBit/s
.....................................................  Ttl: 14.09 GByte

CentOS 7 编译安装 redis

  • 下载redis wget http://download.redis.io/releases/redis-3.0.2.tar.gz

  • 解压redis文件

    tar -xzvf redis-3.0.2.tar.gz -C /usr/local/
    mv /usr/local/redis-3.0.2 /usr/local/redis
  • 安装 gcc 编译器和 redis 测试使用到的 tcl 库 yum install -y gcc tcl

  • 切换至程序目录,并执行make命令编译

    make MALLOC=libc
    make install

    如果make的时候提示如下错误: cc: error: ../deps/hiredis/libhiredis.a: No such file or directory cc: error: ../deps/lua/src/liblua.a: No such file or directory cc: error: ../deps/jemalloc/lib/libjemalloc.a: No such file or directory make: *** [redis-server] Error 1 则进入redis下的deps下的运行如下命令,就OK了。 make lua hiredis linenoise

  • make install安装完成后,会在/usr/local/bin目录下生成下面几个可执行文件,它们的作用分别是: redis-server:Redis服务器端启动程序 redis-cli:Redis客户端操作工具。也可以用telnet根据其纯文本协议来操作 redis-benchmark:Redis性能测试工具 redis-check-aof:数据修复工具 redis-check-dump:检查导出工具

IOS --网络请求 AFNetworking3.0导入错误 报referenced from:

最近在原来项目中用MKNetworkKit 实现网络请求,想为了使应用符合AppStore的要求,用AFNetworking3.0+来满足ipv6。导入AFNetworking 和UIKit+AFNetworking 两个文件的时候5处地方报错快哭了:

Undefined symbols for architecture x86_64:
"_UTTypeCopyPreferredTagWithClass", referenced from:
_AFContentTypeForPathExtension in AFURLRequestSerialization.o
"_UTTypeCreatePreferredIdentifierForTag", referenced from:
_AFContentTypeForPathExtension in AFURLRequestSerialization.o
"_kUTTagClassFilenameExtension", referenced from:
_AFContentTypeForPathExtension in AFURLRequestSerialization.o
"_kUTTagClassMIMEType", referenced from:
_AFContentTypeForPathExtension in AFURLRequestSerialization.o
ld: symbol(s) not found for architecture x86_64

以上错误是因为:

未添加 MobileCoreServices.framework(此框架定义统一类型标识符 (UTIs)使用的底层类型)

作者:SmileFans 链接:https://www.jianshu.com/p/2df0a70c4521

frp+Aria2实现远程下载管理

frp+Aria2实现远程下载管理

tracker

udp://9.rarbg.com:2790/announce,udp://9.rarbg.to:2790/announce,udp://inferno.demonoid.pw:3418/announce,udp://bt.aoeex.com:8000/announce,udp://tracker.internetwarriors.net:1337/announce,udp://tracker.swateam.org.uk:2710/announce,udp://tracker.zer0day.to:1337/announce,udp://p4p.arenabg.com:1337/announce,https://open.kickasstracker.com:443/announce,udp://tracker.coppersurfer.tk:6969,http://torrentsmd.com:8080/announce,udp://tracker.pirateparty.gr:6969/announce,udp://tracker.coppersurfer.tk:6969/announce,udp://tracker4.itzmx.com:2710/announce,udp://tracker.uw0.xyz:6969/announce,udp://tracker.cypherpunks.ru:6969/announce,udp://open.stealth.si:80/announce,http://retracker.telecom.by:80/announce,udp://191.96.249.23:6969/announce,udp://78.142.19.42:1337/announce,udp://123.249.16.65:2710/announce,udp://185.82.217.160:1337/announce,udp://163.172.81.35:1337/announce,https://zer0day.000webhostapp.com:443/announce,udp://public.popcorn-tracker.org:6969/announce,https://linetorrent.xyz:443/announce,udp://tracker.leechers-paradise.org:6969/announce,https://open.acgnxtracker.com:443/announce,http://bt2.54new.com:8080/announce,http://bt1.54new.com:65533/announce,http://ipv6.54new.com:8080/announce,http://tracker.trackerfix.com/announce,udp://tracker.trackerfix.com:80/announce