
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.
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
혹시 뭐가 문제인지 알 수 있을까요? ㅠ
