μ•ˆλ…•ν•˜μ„Έμš”, μΌ€μ΄μΉ˜μž…λ‹ˆλ‹€.


μ˜€λŠ˜μ€ λ¦¬λˆ…μŠ€ μ„œλ²„μ˜ μž¬λΆ€νŒ…/μž¬κΈ°λ™ λ˜λŠ” μ–Έμ œ shutdown이 λμ—ˆλŠ”μ§€λ₯Ό ν™•μΈν•˜λŠ” 방법을 λ°°μ› μŠ΅λ‹ˆλ‹€.


그닀지 많이 μ“Έ 일은 μ—†λŠ” λͺ…령어이긴 ν•œλ° μ›Ήμ‚¬μ΄νŠΈμ— 접속이 μ•ˆλ˜μ„œ 확인해보닀가 μ•Œκ²Œλ˜μ—ˆλ„€μš”.


μš°μ„  μ›Ήμ„œλ²„λ‘œ 접속을 ν•˜λŠ”λ° μ•„λž˜μ™€ 같은 λ©”μ‹œμ§€κ°€ λ–΄μŠ΅λ‹ˆλ‹€.

Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.


λ­”μ†Œλ¦°κ°€ λ΄€λ”λ‹ˆ 점검 μ€‘μ΄κ±°λ‚˜ μš©λŸ‰λ¬Έμ œλ‘œ μΈν•΄μ„œ 접속할 수 μ—†λ‹€λΌλŠ” λ§μ΄λ„€μš”.


κ·Έλž˜μ„œ μ„œλ²„μ— μ ‘μ†ν•΄μ„œ ν˜Ήμ‹œ 디렉토리 μš©λŸ‰μ΄ λΆ€μ‘±ν•œκ°€ λ΄€λŠ”λ° μ•„λ‹ˆμ—ˆμŠ΅λ‹ˆλ‹€.


그럼 μ™œ μ•ˆλ˜λŠ”μ§€ μ—λŸ¬λ‘œκ·ΈλΆ€ν„° 확인해야겠죠.


μ›Ήμ„œλ²„μ˜ μ—λŸ¬λ‘œκ·Έλ₯Ό λ΄€λŠ”λ° μ—λŸ¬κ°€ μ—†μŠ΅λ‹ˆλ‹€ γ„·γ„·;;;;; 뭐지 이건;;;


이제 μ‹€μ œ 웹앱이 μ˜¬λΌκ°€μžˆλŠ” WAS κΈ°λ™μƒνƒœλ₯Ό ν™•μΈν•©λ‹ˆλ‹€.


두λ‘₯!!!! WASκ°€ μ£½μ—ˆλ„€μš” γ…œγ…œ


뭐지 λ‚œ 죽인적이 μ—†λŠ”λ°....κ·Έλž˜μ„œ λ‹€μ‹œ WAS의 μ—λŸ¬λ‘œκ·Έλ₯Ό ν™•μΈν•˜λŠ”λ° 헐;;;; 여기도 μ—λŸ¬λ‘œκ·ΈλŠ” μ—†μŠ΅λ‹ˆλ‹€. λ§ˆμ§€λ§‰κΉŒμ§€ μ—΄μ‹¬νžˆ μ‚¬λžŒλ“€μ˜ μš”μ²­μ— λΆ€μ‘ν•œ 흔적밖에 μ—†λ„€μš”.


뭐지? μ„œλ²„κ°€ μž¬λΆ€νŒ… λλ‚˜? μ–΄λ–»κ²Œ ν™•μΈν•˜μ§€?


λ¦¬λˆ…μŠ€ μ„œλ²„μ˜ μž¬κΈ°λ™ μƒνƒœλ₯Ό ν™•μΈν•˜λŠ” λͺ…λ Ήμ–΄λŠ” 두 가지가 μžˆμŠ΅λ‹ˆλ‹€.


첫째, last λͺ…λ Ήμ–΄.

λ‘˜μ§Έ, who λͺ…λ Ήμ–΄.


[keichee@server1 ~]$ last reboot

reboot   system boot  3.10.0-514.16.1. Thu Jun 22 17:13 - 11:32 (140+18:19)

reboot   system boot  3.10.0-327.36.3. Wed Jan  4 22:14 - 17:11 (168+18:57)

reboot   system boot  3.10.0-327.36.3. Thu Nov 17 14:41 - 17:11 (217+02:30)

reboot   system boot  3.10.0-327.36.3. Thu Nov 17 15:06 - 17:11 (217+02:04)

reboot   system boot  3.10.0-327.36.3. Thu Nov 17 11:01 - 17:11 (217+06:09)


last reboot λͺ…λ Ήμ–΄λŠ” λ§ˆμ§€λ§‰μœΌλ‘œ μž¬κΈ°λ™ν•œ μ‹œκ°„μ΄ μ–Έμ œμΈμ§€λ₯Ό desc μ •λ ¬ν•˜μ—¬ 좜λ ₯ν•©λ‹ˆλ‹€. 즉, 제일 μœ„μ— μžˆλŠ”κ²Œ κ°€μž₯ μ΅œκ·Όμ— μž¬κΈ°λ™ν•œ μ‹œκ°„μ„ λ§ν•©λ‹ˆλ‹€.


last reboot 말고도 last shutdown λͺ…λ Ήμ–΄λ‘œ μ–Έμ œ μ…§λ‹€μš΄λμ—ˆλŠ”μ§€ 확인이 κ°€λŠ₯ν•©λ‹ˆλ‹€. 


last -x λŠ” μ–΄λ–€ μ‚¬μš©μžκ°€ μ„œλ²„μ— μ ‘μ†ν•΄μ„œ μ–Όλ§ˆλ‚˜ μžˆμ—ˆλŠ”μ§€ 확인이 κ°€λŠ₯ν•©λ‹ˆλ‹€. run level이 μ–΄λ–»κ²Œ λ°”λ€Œμ—ˆλŠ”μ§€λ„ 확인이 κ°€λŠ₯ν•˜μ£ .


[keichee@server1 ~]$ last -x

keichee    pts/0        210.145.229.14   Fri Nov 10 11:09   still logged in

keichee    pts/0        210.145.229.14   Tue Nov  7 09:17 - 14:14  (04:57)

keichee    pts/0        210.145.229.143   Mon Nov  6 09:19 - 18:27  (09:07)

keichee    pts/2        204.130.143.176  Thu Nov  2 22:04 - 00:26  (02:21)

keichee    pts/1        103.170.103.116  Thu Nov  2 22:04 - 00:26  (02:22)

runlevel (to lvl 3)   3.10.0-514.16.1. Thu Jun 22 17:13 - 11:35 (140+18:22)
reboot   system boot  3.10.0-514.16.1. Thu Jun 22 17:13 - 11:35 (140+18:22)
shutdown system down  3.10.0-327.36.3. Thu Jun 22 17:11 - 17:13  (00:01)


그럼 두 번째 λͺ…λ Ήμ–΄μ˜€λ˜ whoλŠ” μ–΄λ–»κ²Œ μ“ΈκΉŒμš”?


기본적으둜 whoλ₯Ό μ“Έ λ•ŒλŠ” ν˜„μž¬ λ‚΄κ°€ μ–΄λ–€ μ‚¬μš©μžλ‘œ 접속을 ν–ˆλŠ”μ§€ ν™•μΈν•˜κΈ° μœ„ν•΄μ„œ μ‚¬μš©ν•  수 있죠.


[keichee@server1 ~]$ who

keichee    pts/0        2017-11-10 11:09 (118.145.269.124)


help μ˜΅μ…˜μœΌλ‘œ μ–΄λ–€ μ˜΅μ…˜μ„ μΆ”κ°€λ‘œ 쀄 수 μžˆλŠ”μ§€ ν•œλ²ˆ λ³ΌκΉŒμš”?


[keichee@server1 ~]$ who  --help

Usage: who [OPTION]... [ FILE | ARG1 ARG2 ]

Print information about users who are currently logged in.


  -a, --all         same as -b -d --login -p -r -t -T -u

  -b, --boot        time of last system boot

  -d, --dead        print dead processes

  -H, --heading     print line of column headings

  -l, --login       print system login processes

      --lookup      attempt to canonicalize hostnames via DNS

  -m                only hostname and user associated with stdin

  -p, --process     print active processes spawned by init

  -q, --count       all login names and number of users logged on

  -r, --runlevel    print current runlevel

  -s, --short       print only name, line, and time (default)

  -t, --time        print last system clock change

  -T, -w, --mesg    add user's message status as +, - or ?

  -u, --users       list users logged in

      --message     same as -T

      --writable    same as -T

      --help     display this help and exit

      --version  output version information and exit


μ˜΅μ…˜ 쀑에 -b μ˜΅μ…˜μ΄ λ§ˆμ§€λ§‰ μ‹œμŠ€ν…œ λΆ€νŒ… μ‹œκ°„μ„ 좜λ ₯ν•œλ‹€λŠ” 것을 확인할 수 μžˆμŠ΅λ‹ˆλ‹€.


그럼 ν•œ 번 써보죠.

[keichee@server1 ~]$ who -b

         system boot  2017-06-22 17:13

17λ…„ 6μ›” 22일 17μ‹œ 13뢄에 μ‹œμŠ€ν…œμ΄ κΈ°λ™λμŒμ„ μ•Œ 수 μžˆμŠ΅λ‹ˆλ‹€.


μ΄μƒμž…λ‹ˆλ‹€.


μ˜€λŠ˜μ€ μ—¬κΈ°κΉŒμ§€~