python:uwsgi

差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
次のリビジョン両方とも次のリビジョン
python:uwsgi [2019/08/12 23:41] ともやんpython:uwsgi [2019/08/19 05:50] ともやん
行 28: 行 28:
  
 ===== Apache 2.4 への mod_uwsgi.so のインストール ===== ===== Apache 2.4 への mod_uwsgi.so のインストール =====
-<WRAP prewrap 100% #result> 
 <code> <code>
 +$ sudo dnf install httpd-devel
 $ sudo -s $ sudo -s
 +</code>
 +<WRAP prewrap 100%>
 +<code>
 # cd ~ # cd ~
 # curl -O https://raw.githubusercontent.com/unbit/uwsgi/master/apache2/mod_uwsgi.c # curl -O https://raw.githubusercontent.com/unbit/uwsgi/master/apache2/mod_uwsgi.c
行 36: 行 39:
                                  Dload  Upload   Total   Spent    Left  Speed                                  Dload  Upload   Total   Spent    Left  Speed
 100 22715  100 22715    0      60251      0 --:--:-- --:--:-- --:--:-- 60251 100 22715  100 22715    0      60251      0 --:--:-- --:--:-- --:--:-- 60251
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result>
 +<code>
 # apxs -i -a -c mod_uwsgi.c # apxs -i -a -c mod_uwsgi.c
 /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/httpd  -I/usr/include/apr-1   -I/usr/include/apr-1   -c -o mod_uwsgi.lo mod_uwsgi.c && touch mod_uwsgi.slo /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection  -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/httpd  -I/usr/include/apr-1   -I/usr/include/apr-1   -c -o mod_uwsgi.lo mod_uwsgi.c && touch mod_uwsgi.slo
行 91: 行 98:
 <code> <code>
 # chmod 755 /usr/lib64/httpd/modules/mod_uwsgi.so # chmod 755 /usr/lib64/httpd/modules/mod_uwsgi.so
-# vi /etc/httpd/conf.modules.d/00-base.conf+# vi /etc/httpd/conf/httpd.conf
 </code> </code>
-<file autoconf /etc/httpd/conf.modules.d/00-base.conf>+<file autoconf /etc/httpd/conf/httpd.conf> 
 +
 +# Dynamic Shared Object (DSO) Support 
 +
 +# To be able to use the functionality of a module which was built as a DSO you 
 +# have to place corresponding `LoadModule' lines at this location so the 
 +# directives contained in it are actually available _before_ they are used. 
 +# Statically compiled modules (those listed by `httpd -l') do not need 
 +# to be loaded here. 
 +
 +# Example: 
 +# LoadModule foo_module modules/mod_foo.so 
 +#
 LoadModule uwsgi_module modules/mod_uwsgi.so LoadModule uwsgi_module modules/mod_uwsgi.so
 +Include conf.modules.d/*.conf
 </file> </file>
 +
 +===== 参考文献 =====
 +[[https://uwsgi-docs.readthedocs.io/en/latest/|The uWSGI project — uWSGI 2.0 documentation]]\\
 +[[https://uwsgi-docs.readthedocs.io/en/latest/Apache.html|Apache support — uWSGI 2.0 documentation]]\\
 +
  • python/uwsgi.txt
  • 最終更新: 2020/09/11 16:50
  • by ともやん