Skip to content

Instantly share code, notes, and snippets.

View daya's full-sized avatar

Daya Sharma daya

View GitHub Profile
@daya
daya / gist:906566
Created April 6, 2011 21:27
ulimit
1.9.2 ip-192-168-1-126: [master] $ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
1.9.2 ip-192-168-1-126: [master] $ !ps
ps aux | grep beam
dayas 23164 0.3 0.3 2485040 27604 s012 Ss+ 4:23PM 0:01.62 /Users/dayas/Learning/erlang/riak/dev/dev3/erts-5.8.1/bin/beam.smp -K true -A 64 -- -root /Users/dayas/Learning/erlang/riak/dev/dev3 -progname riak -- -home /Users/dayas -- -boot /Users/dayas/Learning/erlang/riak/dev/dev3/releases/0.14.0/riak -embedded -config /Users/dayas/Learning/erlang/riak/dev/dev3/etc/app.config -name [email protected] -setcookie riak -- console
dayas 23089 0.1 0.3 2486576 27976 s011 Ss+ 4:23PM 0:01.62 /Users/dayas/Learning/erlang/riak/dev/dev2/erts-5.8.1/bin/beam.smp -K true -A 64 -- -root /Users/dayas/Learning/erlang/riak/dev/dev2 -progname riak -- -home /Users/dayas -- -boot /Users/dayas/Learning/erlang/riak/dev/dev2/releases/0.14.0/riak -embedded -config /Users/dayas/Learning/erlang/riak/dev/dev2/etc/app.config -name [email protected] -setcookie riak -- console
dayas 23871 0.0 0.0 2435548 108 s009 U 4:28PM 0:00.00 grep beam
dayas
Learning Erlang in "/Users/dayas/Learning/erlang/riak/dev"
/Users/dayas/Learning/erlang/riak/dev
Now in:"/Users/dayas/Learning/erlang/riak/dev"
{badrpc,nodedown}
1.9.2 ip-192-168-1-126: [master] $ ~/Downloads/riak_script [email protected]
Learning Erlang in "/Users/dayas/Learning/erlang/riak/dev"
/Users/dayas/Learning/erlang/riak/dev
Now in:"/Users/dayas/Learning/erlang/riak/dev"
TRUE All nodes agree on the ring ['[email protected]']
ok
127.0.0.1 adobe-dns.adobe.com
127.0.0.1 adobe-dns-1.adobe.com
127.0.0.1 adobe-dns-2.adobe.com
127.0.0.1 adobe-dns-3.adobe.com
127.0.0.1 adobe-dns-4.adobe.com
1.9.2 ip-192-168-1-126: [master] $ epmd -names
epmd: up and running on port 4369 with data:
name dev1 at port 56998
name dev3 at port 56937
name dev2 at port 56927
1.9.2 ip-192-168-1-126: [master] $ !epm
epmd -names
epmd: up and running on port 4369 with data:
name dev3 at port 57298
name dev2 at port 57288
name dev1 at port 57277
1.9.2 ip-192-168-1-126: [master] $ !net
netstat -a |grep 569
1.9.2 ip-192-168-1-126: [master] $ netstat -a |grep 572
tcp4 0 0 localhost.com.epmd localhost.com.57299 ESTABLISHED
1.9.2 ip-192-168-1-126: [master] $ nmap -sT 127.0.0.1 -p T:4369,T:6000-6100,T:8097-8099,T:56998,T:56937,T:56927
Starting Nmap 5.35DC1 ( http://nmap.org ) at 2011-04-06 17:17 CDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.0011s latency).
Not shown: 107 closed ports
PORT STATE SERVICE
4369/tcp open unknown
Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
1.9.2 ip-192-168-1-126: [master] $ nmap -sT 127.0.0.1 -p T:4369,T:6000-6100,T:8097-8099,T:57298,T:57288,T:57277
Starting Nmap 5.35DC1 ( http://nmap.org ) at 2011-04-06 17:19 CDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.0014s latency).
Not shown: 104 closed ports
PORT STATE SERVICE
4369/tcp open unknown
57277/tcp open unknown
57288/tcp open unknown
1.9.2 ip-192-168-1-126: [master] $ find . -name *log
./dev1/log
./dev1/log/run_erl.log
./dev1/log/sasl-error.log
./dev2/log
./dev2/log/run_erl.log
./dev2/log/sasl-error.log
./dev3/log
./dev3/log/run_erl.log
./dev3/log/sasl-error.log