커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
서버에 다른 app.py를 클라우드 서버에 올려보려고 했더니 이후에는 안돼요 ㅠㅠ
undefined주차
북마크
김*원
댓글
30
추천
0
조회수
41
조회수
41
답변 완료

5주차까지 완료하고 서버에 혼자 작성하고 있는 app.py로 변경해 보려고 했더니, 이후로는 작동이 안됩니다 ㅠ

git brash에서는 5000포트는 이미 사용중이라고 하고

그래서 5001포트로 바꾸고 올리면 이렇게 안내가 떠요...


USER@AL01766472 MINGW64 ~

$ ssh -i /c/Users/user/Desktop/jiwon_mykey.pem ubuntu@52.78.111.132

Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.13.0-1029-aws x86_64)


 * Documentation: https://help.ubuntu.com

 * Management:   https://landscape.canonical.com

 * Support:    https://ubuntu.com/advantage


 System information as of Thu Aug 25 10:46:25 UTC 2022


 System load: 0.05       Processes:       114

 Usage of /:  31.5% of 7.58GB  Users logged in:    0

 Memory usage: 32%        IPv4 address for eth0: 172.31.7.32

 Swap usage:  0%


 * Ubuntu Pro delivers the most comprehensive open source security and

  compliance features.


  https://ubuntu.com/aws/pro


20 updates can be applied immediately.

To see these additional updates run: apt list --upgradable


New release '22.04.1 LTS' available.

Run 'do-release-upgrade' to upgrade to it.



*** System restart required ***

Last login: Thu Aug 25 04:35:07 2022 from 59.31.130.32

ubuntu@ip-172-31-7-32:~$ restart


Command 'restart' not found, did you mean:


 command 'rstart' from deb x11-session-utils (7.7+4)

 command 'restartd' from deb restartd (0.2.3-1build1)


Try: sudo apt install <deb name>


ubuntu@ip-172-31-7-32:~$ ^C

ubuntu@ip-172-31-7-32:~$ rstart


Command 'rstart' not found, but can be installed with:


sudo apt install x11-session-utils


ubuntu@ip-172-31-7-32:~$ ls

sparta

ubuntu@ip-172-31-7-32:~$ cd sparta

ubuntu@ip-172-31-7-32:~/sparta$ python app.py

 * Serving Flask app 'app'

 * Debug mode: on

Address already in use

Port 5000 is in use by another program. Either identify and stop that program, or start the server with a different port.

ubuntu@ip-172-31-7-32:~/sparta$ ls

app2.py nohup.out static templates

ubuntu@ip-172-31-7-32:~/sparta$ python app2.py

 * Serving Flask app 'app2'

 * 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:5001

 * Running on http://172.31.7.32:5001

Press CTRL+C to quit

 * Restarting with stat

 * Debugger is active!

 * Debugger PIN: 594-481-576


혹시 뭐가 문제인지 알 수 있을까요? ㅠ

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