1. Cơ bản
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
// SSH vào OS, password: abc123.. ssh root@103.124.93.214 // Check hệ điều hành hostnamectl // Check IP Centos hostname -i ifconfig ip a ip addr curl ifconfig.co curl ifconfig.me // Đổi mật khẩu root passwd // Kiểm tra tình trạng máy top // Kiểm tra dung lượng ổ đĩa df -h du -h --max-depth=1 // Kiểm tra các chương trình đã cài trên CentOs yum list installed // Kiểm tra các service sudo systemctl // Khi jenkins start bị limit sudo systemctl reset-failed jenkins.service // Check thư mục chạy câu lệnh which npm which node // Kiểm tra các cổng đang mở sudo netstat -tulpn | grep LISTEN -t : All TCP ports -u : All UDP ports -l : Display listening server sockets -p : Show the PID and name of the program to which each socket belongs -n : Don’t resolve names |