Welcome to Ubuntu 22.04 LTS (GNU/Linux 5.15.0-1011-aws x86 64)
* Documentation: https://help.ub
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Fri Jul 8 00:49:50 UTC 2022
System load: 0.0 Usage of 7: 22.6% of 7.58GB Memory usage: 234 Swap usage: 0%
Processes:
100 Users logged in: IPv4 address for etho: ***.**.**.**
* Ubuntu Pro delivers the most comprehensive open source security and,
compliance features.
42 updates can be applied immediately.
22 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable
SSHで接続すると、上記のようなメッセージが出力されます。
ubuntu@ip-**-**-**-**(ipアドレス):~$
出力後、上記のように出力されれば、接続は完了となります。
■Nginx(エンジンエックス)のインストール
$ sudo apt update
接続後、上記のコマンドを入力し、Enterキーを押します。パッケージ一覧を更新します。Enterキーを押すと更新が開始され、「Reading package lists… Done(パッケージリストを読んでいます…完了)」、「** packages can be upgraded. (パッケージはアップグレードできます。)」といったメッセージが出力されます。これが出力されれば更新が完了となります。
移動後、上記のコマンドを入力し、Enterキーを押します。「myfirstflask」タイプと呼ばれる新しい仮想環境を作成します。なお、Enterキーを押した場合に「Command ‘virtualenv’ not found, but can be installed with: sudo apt install python3-virtualenv」と出力されることがありますが、この場合は、python3-virtualenvをインストールする必要があります。
* Serving Flask app 'api_test' (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Running on all addresses (0.0.0.0)
WARNING: This is a development server. Do not use it in a production deployment.
* Running on http://127.0.0.1:5000
* Running on http://172.31.27.46:5000 (Press CTRL+C to quit)
コメント