差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン両方とも次のリビジョン | ||
python:uwsgi [2019/08/19 05:50] – ともやん | python:uwsgi [2020/04/08 09:38] – ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
- | <ifauth !@loggedinusers>< | ||
- | <script async src="// | ||
- | < | ||
- | | ||
- | google_ad_client: | ||
- | enable_page_level_ads: | ||
- | }); | ||
- | </ | ||
< | < | ||
< | < | ||
- | #result pre { | + | # |
- | height: 200px; | + | |
overflow: scroll; | overflow: scroll; | ||
overflow-x: hidden; | overflow-x: hidden; | ||
+ | font-size: 10px; | ||
+ | } | ||
+ | # | ||
+ | height: 400px; | ||
+ | overflow: scroll; | ||
+ | overflow-x: hidden; | ||
+ | font-size: 10px; | ||
} | } | ||
</ | </ | ||
行 22: | 行 20: | ||
\\ | \\ | ||
uWSGIは、Cherokee や Nginx などの Web サーバーと組み合わせて Python Web アプリケーションを提供するためによく使用され、uWSGI のネイティブ uwsgi プロトコルを直接サポートする。\\ | uWSGIは、Cherokee や Nginx などの Web サーバーと組み合わせて Python Web アプリケーションを提供するためによく使用され、uWSGI のネイティブ uwsgi プロトコルを直接サポートする。\\ | ||
- | [[https:// | + | [[wpjp>UWSGI|uWSGI - Wikipedia]] より\\ |
\\ | \\ | ||
本家: [[https:// | 本家: [[https:// | ||
ソースコード: | ソースコード: | ||
+ | |||
+ | ===== dnf によるインストール ===== | ||
+ | < | ||
+ | $ sudo dnf install uwsgi | ||
+ | </ | ||
+ | <WRAP prewrap 100% # | ||
+ | < | ||
+ | メタデータの期限切れの最終確認: | ||
+ | 依存関係が解決しました。 | ||
+ | ================================================================================== | ||
+ | | ||
+ | ================================================================================== | ||
+ | インストール: | ||
+ | | ||
+ | |||
+ | トランザクションの概要 | ||
+ | ================================================================================== | ||
+ | インストール | ||
+ | |||
+ | ダウンロードサイズの合計: | ||
+ | インストール済みのサイズ: | ||
+ | これでよろしいですか? | ||
+ | パッケージのダウンロード: | ||
+ | uwsgi-2.0.18-2.fc31.x86_64.rpm | ||
+ | ---------------------------------------------------------------------------------- | ||
+ | 合計 | ||
+ | トランザクションの確認を実行中 | ||
+ | トランザクションの確認に成功しました。 | ||
+ | トランザクションのテストを実行中 | ||
+ | トランザクションのテストに成功しました。 | ||
+ | トランザクションを実行中 | ||
+ | 準備 | ||
+ | scriptletの実行中: | ||
+ | インストール中 | ||
+ | scriptletの実行中: | ||
+ | Executing systemd post-install tasks | ||
+ | |||
+ | 検証 | ||
+ | |||
+ | インストール済み: | ||
+ | uwsgi-2.0.18-2.fc31.x86_64 | ||
+ | |||
+ | 完了しました! | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== pip によるインストール ===== | ||
+ | < | ||
+ | $ pip install uwsgi | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | < | ||
+ | Collecting uwsgi | ||
+ | Downloading uwsgi-2.0.18.tar.gz (801 kB) | ||
+ | | ||
+ | Installing collected packages: uwsgi | ||
+ | Running setup.py install for uwsgi ... done | ||
+ | Successfully installed uwsgi-2.0.18 | ||
+ | </ | ||
+ | </ | ||
===== Apache 2.4 への mod_uwsgi.so のインストール ===== | ===== Apache 2.4 への mod_uwsgi.so のインストール ===== | ||
行 32: | 行 90: | ||
$ sudo -s | $ sudo -s | ||
</ | </ | ||
- | <WRAP prewrap 100%> | + | <WRAP prewrap 100% #result> |
< | < | ||
# cd ~ | # cd ~ | ||
# curl -O https:// | # curl -O https:// | ||
+ | </ | ||
+ | </ | ||
+ | <WRAP prewrap 100% #result> | ||
+ | < | ||
% Total % Received % Xferd Average Speed | % Total % Received % Xferd Average Speed | ||
| | ||
行 41: | 行 103: | ||
</ | </ | ||
</ | </ | ||
- | <WRAP prewrap 100% #result> | ||
< | < | ||
# apxs -i -a -c mod_uwsgi.c | # apxs -i -a -c mod_uwsgi.c | ||
+ | </ | ||
+ | <WRAP prewrap 100% # | ||
+ | < | ||
/ | / | ||
mod_uwsgi.c: | mod_uwsgi.c: | ||
行 100: | 行 164: | ||
# vi / | # vi / | ||
</ | </ | ||
+ | <WRAP prewrap 100% # | ||
<file autoconf / | <file autoconf / | ||
# | # | ||
行 116: | 行 181: | ||
Include conf.modules.d/ | Include conf.modules.d/ | ||
</ | </ | ||
+ | </ | ||
===== 参考文献 ===== | ===== 参考文献 ===== |