Skip to content
This repository was archived by the owner on Aug 10, 2022. It is now read-only.

Latest commit

Β 

History

History
36 lines (26 loc) Β· 2.13 KB

File metadata and controls

36 lines (26 loc) Β· 2.13 KB

[Nginx] SSL μ„€μ •(HTTPS 적용) 와 how_to_set_https_by_using_nginx.md, KOR λ₯Ό μ°Έκ³ ν•΄μ„œ ν–ˆμ§€λ§Œ, κ²Œμ‹œκΈ€μ€ ubuntu@16.0.0 μ˜€κ³  μ €λŠ” ubuntu@22.0.0 μ˜€κΈ° 떄문인지 nginx.conf ꡬ성 μžμ²΄κ°€ λ„ˆλ¬΄ λ‹¬λžμŠ΅λ‹ˆλ‹€.

λ”°λΌμ„œ Official Docs 에 κ°€κΉŒμš΄ νŠœνˆλ¦¬μ–Όμ„ μ°Ύμ•„μ„œ μ‹€ν–‰ν–ˆμŠ΅λ‹ˆλ‹€. μ—λŸ¬ λ‚΄μ—­ 3번 이후 λ₯Ό μ°Έκ³ ν•΄μ£Όμ„Έμš”.

λ¬Έμ œμƒν™© ν•΄κ²° μ•ˆλ¨

nginx.conf λ₯Ό μˆ˜μ •ν–ˆλ”λ‹ˆ μ•„μ˜ˆ nginxκ°€ 가동이 μ•ˆλ˜κ³  μžˆμŠ΅λ‹ˆλ‹€.

λ°±μ—…ν•΄ λ‘” 원본 νŒŒμΌμ„ 넣어도 이 λ¬Έμ œκ°€ ν•΄κ²°λ˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€.

Job for nginx.service failed because the control process exited with error code.     
See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.

systemctl status nginx.service 을 μ³λ³΄λ‹ˆ λ‹€μŒκ³Ό 같은 μ—λŸ¬κ°€ λ‚˜μ™”μŠ΅λ‹ˆλ‹€.

Γ— nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Fri 2022-08-05 16:20:30 UTC; 1min 46s ago 
       Docs: man:nginx(8)
    Process: 4880 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
        CPU: 3ms

Aug 05 16:20:30 ip-172-31-39-125 systemd[1]: Starting A high performance web server and a reverse proxy server...    
Aug 05 16:20:30 ip-172-31-39-125 systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE                               48,29-57      Bot 
Aug 05 16:20:30 ip-172-31-39-125 systemd[1]: nginx.service: Failed with result 'exit-code'.
Aug 05 16:20:30 ip-172-31-39-125 systemd[1]: Failed to start A high performance web server and a reverse proxy server.

μ˜ˆμƒ 상황 1

μ•„λ§ˆλ„ μ œκ°€ μΈμ§€ν•˜μ§€ λͺ»ν•˜λŠ” μœˆλ„μš° 와 μš°λΆ„νˆ¬ 의 차이라고 μƒκ°ν•΄μ„œ μš°λΆ„νˆ¬μ˜ vim μ•ˆμ—μ„œ μ½”λ“œλ₯Ό μ „λΆ€ λ³΅μ‚¬ν•΄μ„œ μž‘μ„±ν–ˆμŠ΅λ‹ˆλ‹€.

ν•˜μ§€λ§Œ μ—­μ‹œλ‚˜ μ—λŸ¬κ°€ ν•΄κ²°λ˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€.