Redis dig netstat, redisdig
/Srv/rorapps/huafei2 # dig paifei.funguide.com.cn
; <<>> DiG 9.9.5-3-Ubuntu <<>> huafei.funguide.com.cn;; global options: +cmd;; Got answer:;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29838;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1;; OPT PSEUDOSECTION:; EDNS: version: 0, flags:; udp: 4096;; QUESTION SECTION:;huafei.funguide.com.cn.INA;; ANSWER SECTION:huafei.funguide.com.cn.508INA54.223.137.19;; Query time: 2 msec;; SERVER: 10.0.0.2#53(10.0.0.2);; WHEN: Tue Dec 09 18:30:22 CST 2014;; MSG SIZE rcvd: 67
Netstat-anp | grep 6379
tcp 0 0 10.0.1.17:35071 10.0.1.250:6379 ESTABLISHED 24175/ruby tcp 0 0 10.0.1.17:35074 10.0.1.250:6379 ESTABLISHED 24175/ruby tcp 0 0 10.0.1.17:35119 10.0.1.250:6379 ESTABLISHED 24175/ruby tcp 0 0 10.0.1.17:35088 10.0.1.250:6379 ESTABLISHED 24175/ruby tcp 0 0 10.0.1.17:35069 10.0.1.250:6379 ESTABLISHED 24175/ruby tcp 0 0 10.0.1.17:35457 10.0.1.250:6379 TIME_WAIT - tcp 0 0 10.0.1.17:35070 10.0.1.250:6379 ESTABLISHED 24175/ruby
Pss aux | grep 24175
root 24175 2.6 4.1 411212 166516 ? Ss 18:25 0:10 ruby /srv/rorapps/huafei2/lib/try_change_retry.rbroot 26474 0.0 0.0 12140 944 pts/0 S+ 18:32 0:00 grep --color=auto 24175