커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
5-13 강의 도중
undefined주차
북마크
이*봉
댓글
5
추천
0
조회수
18
조회수
18
답변 완료


git=bash 화면에서 강제종료 코드스니펫 ( ps -ef | grep 'python app.py' | awk '{print $2}' | xargs kill )을 입력해도 종료가 되지 않고 계속 동작 됩니다.



스파르타 즉문즉답




작성한 코드 및 에러 메세지


82103@DESKTOP-G7D3IEI MINGW64 /
$ ssh -i /c/Users/82103/Desktop/paul1225_mykey.pem ubuntu@3.34.186.24
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-1020-aws x86_64)


 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage


  System information as of Sun Oct  9 07:32:41 UTC 2022


  System load:  0.0048828125      Processes:             104
  Usage of /:   31.3% of 7.57GB   Users logged in:       0
  Memory usage: 31%               IPv4 address for eth0: 172.31.10.97
  Swap usage:   0%


 * Ubuntu Pro delivers the most comprehensive open source security and
   compliance features.


   https://ubuntu.com/aws/pro


16 updates can be applied immediately.
To see these additional updates run: apt list --upgradable




Last login: Sun Oct  9 06:13:47 2022 from 211.210.201.15
ubuntu@ip-172-31-10-97:~$ cd sparta
ubuntu@ip-172-31-10-97:~/sparta$ ps -ef | grep 'python app.py' | awk '{print $2}' | xargs kill
kill: (4128): No such process
ubuntu@ip-172-31-10-97:~/sparta$ cd ..
ubuntu@ip-172-31-10-97:~$ ps -ef | grep 'python app.py' | awk '{print $2}' | xargs kill
kill: (4133): No such process
ubuntu@ip-172-31-10-97:~$ cd sparta
ubuntu@ip-172-31-10-97:~/sparta$ ls
app.py  nohup.out  static  templates
ubuntu@ip-172-31-10-97:~/sparta$ python app.py
 * Serving Flask app 'app'
 * Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5000
 * Running on http://172.31.10.97:5000
Press CTRL+C to quit
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 110-104-718
211.210.201.15 - - [09/Oct/2022 07:41:47] "GET / HTTP/1.1" 200 -
211.210.201.15 - - [09/Oct/2022 07:41:47] "GET /homework HTTP/1.1" 200 -
ps -ef | grep 'python app.py' | awk '{print $2}' | xargs kill
211.210.201.15 - - [09/Oct/2022 07:44:18] "GET / HTTP/1.1" 200 -
211.210.201.15 - - [09/Oct/2022 07:44:19] "GET /homework HTTP/1.1" 200 -
211.210.201.15 - - [09/Oct/2022 07:44:29] "POST /homework HTTP/1.1" 200 -
211.210.201.15 - - [09/Oct/2022 07:44:31] "GET / HTTP/1.1" 200 -
211.210.201.15 - - [09/Oct/2022 07:44:32] "GET /homework HTTP/1.1" 200 -
^Cubuntu@ip-172-31-10-97:~/sparta$

오류 발생 시, 작성한 코드 전체와 에러 메시지를 첨부해 주세요.

Tip 1) </> 아이콘을 눌러 코드박스를 만들어 보세요.

Tip 2) Ctrl+A(맥의 경우 Command+A) 단축키로 코드를 한 번에 선택할 수 있어요!




취소
 공유
취소
댓글 0
댓글 알림
나의얼굴