Skip to content

Commit 4ae2116

Browse files
authored
Update SysAdminCheatSheet.md
1 parent a64763d commit 4ae2116

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/SysAdminCheatSheet.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
# Useful tools
22

33
## start webapp with pm2
4-
pm2 start --name=webapp npm -- start
4+
`pm2 start --name=webapp npm -- start`
55

66
## start caching with pm2
7-
pm2 start --name=caching npm -- cache
7+
`pm2 start --name=caching npm -- run cache --`
88

99
## show data usage
10-
vnstat -i eth0
10+
`vnstat -i eth0`
1111

1212
## show live bandwidth connections
13-
nload eth0
13+
`nload eth0`
1414

1515
## show live connections on port 80
16-
netstat -anp | grep :80 | wc -l
16+
`netstat -anp | grep :80 | wc -l`
1717

1818
## start caching with forever
19-
forever start -c "npm run cache" ./
19+
`forever start -c "npm run cache" ./`
2020

2121
## show incoming tcp connections
22-
sudo tcptrack -i eth0
22+
`sudo tcptrack -i eth0`
2323

2424

2525

0 commit comments

Comments
 (0)