python:uwsgi

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
次のリビジョン両方とも次のリビジョン
python:uwsgi [2020/04/17 09:24] ともやんpython:uwsgi [2020/04/25 15:42] ともやん
行 111: 行 111:
 [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)]
 </code> </code>
 +</WRAP>
  
 Python 仮想環境の作成\\ Python 仮想環境の作成\\
行 120: 行 121:
 <code> <code>
 $ . py3dj3_venv/bin/activate $ . py3dj3_venv/bin/activate
 +</code>
 +<WRAP prewrap 100% #result>
 +<code>
 (py3dj3_venv) $ (py3dj3_venv) $
 </code> </code>
 +</WRAP>
  
 Python 仮想環境の pip を更新\\ Python 仮想環境の pip を更新\\
行 166: 行 171:
 <code> <code>
 (py3dj3_venv) $ deactivate (py3dj3_venv) $ deactivate
 +</code>
 +<WRAP prewrap 100% #result>
 +<code>
 $ $
 </code> </code>
 +</WRAP>
  
 一番シンプルな uwsgi コマンドで Django アプリの動作確認を行う\\ 一番シンプルな uwsgi コマンドで Django アプリの動作確認を行う\\
行 235: 行 244:
 chdir = /usr/local/lsws/Example/django_project chdir = /usr/local/lsws/Example/django_project
 wsgi-file = django_project/wsgi.py wsgi-file = django_project/wsgi.py
 +</code>
 +uWSGI Emperor Service の開始
 +<code>
 +$ sudo systemctl start uwsgi
 +</code>
 +uWSGI Emperor Service リッスン確認\\
 +<code>
 +$ sudo netstat -anp4 | grep uwsgi
 +tcp        0      0 0.0.0.0:8000            0.0.0.0:              LISTEN      986/uwsgi
 </code> </code>
  
  • python/uwsgi.txt
  • 最終更新: 2020/09/11 16:50
  • by ともやん