SlideShare a Scribd company logo
NGINX & uWSGI &
PYTHON & PostgreSQL
install Part1
writing by bee
test system definition
Client
http
socket or http
CentOS 7.5(x86_64)
WEB SERVER
(reverse proxy)
APLICATION
SERVER
table of contents
■ Step.1 NGINX Install (1:1.18.0-1.el7.ngx)
■ Step.2 PostgreSQL Install (0:9.2.24-2.el7_7)
■ Step.3 Python Install (3.7.1)
■ Step.4 uWSGI Install (2.0.18)
Next report on cooperation between services
[root@cent75 ~]# yum install -y nginx
読み込んだプラグイン:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ftp.iij.ad.jp
* epel: ftp.riken.jp
* extras: ftp.iij.ad.jp
* updates: ftp.iij.ad.jp
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> パッケージ nginx.x86_64 1:1.18.0-1.el7.ngx を インストール
--> 依存性解決を終了しました。
依存性を解決しました
=========================================================================================
=====================================================================
Package アーキテクチャー バージョン リポジトリー 容量
=========================================================================================
=====================================================================
インストール中:
nginx x86_64 1:1.18.0-1.el7.ngx nginx 772 k
トランザクションの要約
=========================================================================================
=====================================================================
インストール 1 パッケージ
□ Step 1-1 NGINX Install
総ダウンロード容量: 772 k
インストール容量: 2.7 M
Downloading packages:
nginx-1.18.0-1.el7.ngx.x86_64.rpm | 772 kB 00:00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
インストール中 : 1:nginx-1.18.0-1.el7.ngx.x86_64 1/1
----------------------------------------------------------------------
Thanks for using nginx!
Please find the official documentation for nginx here:
* http://nginx.org/en/docs/
Please subscribe to nginx-announce mailing list to get
the most important news about nginx:
* http://nginx.org/en/support.html
Commercial subscriptions for nginx are available on:
* http://nginx.com/products/
----------------------------------------------------------------------
検証中 : 1:nginx-1.18.0-1.el7.ngx.x86_64 1/1
インストール:
nginx.x86_64 1:1.18.0-1.el7.ngx
完了しました!
[root@cent75 ~]# systemctl enable nginx
Created symlink from /etc/systemd/system/multi-user.target.wants/nginx.service to /usr/lib/systemd/system/nginx.service.
□ Step 1-2 Set NGINX to start automatically.
□ Step 1-4 Startup NGINX
□ Step 1-5 Stop NGINX
[root@cent75 ~]# systemctl start nginx
[root@cent75 ~]# systemctl stop nginx
□ Step 1-6 Retart NGINX
[root@cent75 ~]# systemctl restart nginx
[root@cent75 ~]# systemctl status nginx
● nginx.service - nginx - high performance web server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: active (running) since 月 2020-05-11 22:44:50 JST; 2min 29s ago
Docs: http://nginx.org/en/docs/
Process: 11916 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=0/SUCCESS)
Process: 11929 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Main PID: 11932 (nginx)
...
□ Step 1-7 Show NGINX status
□ Step 1-8 Access check
[root@cent75 ~]# groupadd -g 551 postgres
[root@cent75 ~]# useradd -u 551 -g postgres postgres
[root@cent75 ~]# passwd postgres
ユーザー postgres のパスワードを変更。
新しいパスワード: postgres
よくないパスワード: このパスワードには一部に何らかの形でユーザー名が含まれています。
新しいパスワードを再入力してください: postgres
passwd: すべての認証トークンが正しく更新できました。
□ Step 2-1 make postgres user
□ Step 2-2 PostgreSQL Install
[root@cent75 ~]# yum install -y postgresql-server
読み込んだプラグイン:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ftp.iij.ad.jp
* epel: ftp.riken.jp
* extras: ftp.iij.ad.jp
* updates: ftp.iij.ad.jp
依存性の解決をしています
--> トランザクションの確認を実行しています。
・・・・
完了しました!
[root@cent75 ~]# vi .bashrc
export PATH=$PATH:/usr/local/pgsql/bin
[root@cent75 ~]# . .bashrc
□ Step 2-3 Initialize database instance
[root@cent75 ~]# PGSETUP_INITDB_OPTIONS="-E UTF8 --no-locale" postgresql-setup initdb
Initializing database ... OK
[root@cent75 ~]# vi /var/lib/pgsql/data/pg_hba.conf
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 trust
□ Step 2-4 startup PostgreSQL
[root@cent75 ~]# systemctl start postgresql
[root@cent75 ~]# systemctl status postgresql
● postgresql.service - PostgreSQL database server
Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled; vendor preset: disabled)
Active: active (running) since 火 2020-05-12 23:34:48 JST; 5s ago
Process: 10538 ExecStart=/usr/bin/pg_ctl start -D ${PGDATA} -s -o -p ${PGPORT} -w -t 300 (code=exited, status=0/SUCCESS)
tq10547 postgres: autovacuum launcher process
mq10548 postgres: stats collector process
・・・
5月 12 23:34:47 cent75 systemd[1]: Starting PostgreSQL database server...
5月 12 23:34:48 cent75 systemd[1]: Started PostgreSQL database server.
□ Step 2-5 Set PostgreSQL to start automatically
[root@cent75 ~]# systemctl enable postgresql
Created symlink from /etc/systemd/system/multi-user.target.wants/postgresql.service to /usr/lib/systemd/system/postgresql.service.
□ Step 2-6 Create database role
[postgres@cent75 ~]$ psql -U postgres -c "CREATE ROLE ¥"jppf¥" WITH CREATEDB LOGIN PASSWORD 'jppf'"
[postgres@cent75 ~]$ psql -U postgres -c '¥du'
ロール一覧
ロール名 | 属性 | メンバー
----------+----------------------------------------------------------------------+----------
jppf | DBを作成できる | {}
postgres | スーパーユーザ, ロールを作成できる, DBを作成できる, レプリケーション | {}
□ Step 3-1 pyenv and pyenv-virtualenv Install
[root@cent75 ~]# cd /root
[root@cent75 ~]# git clone https://github.com/yyuu/pyenv.git ~/.pyenv
[root@cent75 ~]# git clone https://github.com/yyuu/pyenv-virtualenv.git ./.pyenv/plugins/pyenv-virtualenv
[root@cent75 ~]# vi /root/.bash_profile
export PATH=$PATH:$HOME/bin:/usr/local/bin
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
[root@cent75 ~]# .bash_profile
[root@cent75 ~]# PYTHON_CFLAGS=-fPIC pyenv install 3.7.1
[root@cent75 ~]# pyenv global 3.7.1
[root@cent75 ~]# pyenv versions
system
* 3.7.1 (set by /root/.pyenv/version)
[root@cent75 ~]# python
Python 3.7.1 (default, Apr 30 2020, 21:21:52)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
□ Step 4-1 uWSGI Install
[root@cent75 ~]# pip install uwsgi==2.0.18
Collecting uwsgi==2.0.18
Downloading uwsgi-2.0.18.tar.gz (801 kB)
|????????????????????????????????| 801 kB 2.8 MB/s
Building wheels for collected packages: uwsgi
Building wheel for uwsgi (setup.py) ... done
Created wheel for uwsgi: filename=uWSGI-2.0.18-cp37-cp37m-linux_x86_64.whl size=5002578
sha256=5aa2a14ec4226467f3b7699ce69ea9360259dce09e1f71ef34173cb0cf6a3d41
Stored in directory: /root/.cache/pip/wheels/e7/d0/f2/b93905969980eaf9fe18183b0c43470d63b13fcd3a1f6c8efe
Successfully built uwsgi
Installing collected packages: uwsgi program
Successfully installed uwsgi-2.0.18
[root@cent75 ~]# pip install uwsgi==2.0.18
□ Step 4-2 check program
[root@cent75 ~]# vi /tmp/test.py
def application(env, start_response):
start_response('200 OK', [('Content-Type','text/html')])
rvalue = b"Hello World¥n"
return [rvalue]
□ Step 4-3 startup uWSGI server
[root@cent75 ~]# uwsgi --plugin http,python --http :9090 --wsgi-file /tmp/test.py
open("./http_plugin.so"): No such file or directory [core/utils.c line 3724]
!!! UNABLE to load uWSGI plugin: ./http_plugin.so: cannot open shared object file: No such file or directory !!!
open("./python_plugin.so"): No such file or directory [core/utils.c line 3724]
!!! UNABLE to load uWSGI plugin: ./python_plugin.so: cannot open shared object file: No such file or directory !!!
*** Starting uWSGI 2.0.18 (64bit) on [Wed May 13 00:36:11 2020] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-39) on 12 May 2020 15:25:11
os: Linux-3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018
nodename: cent75
machine: x86_64
clock source: unix
・・・
□ Step 4-4 Access check

More Related Content

PPTX
Docker practice
DOCX
How to install squid proxy on server or how to install squid proxy on centos o
DOCX
Ansible ex407 and EX 294
PDF
ERP System Implementation Kubernetes Cluster with Sticky Sessions
PDF
Docker Setting for Static IP allocation
PDF
Hyperledger composer
PDF
kubernetes practice
PPTX
Docker orchestration v4
Docker practice
How to install squid proxy on server or how to install squid proxy on centos o
Ansible ex407 and EX 294
ERP System Implementation Kubernetes Cluster with Sticky Sessions
Docker Setting for Static IP allocation
Hyperledger composer
kubernetes practice
Docker orchestration v4

What's hot (20)

PPT
Learn basic ansible using docker
PDF
IT Automation with Ansible
PDF
PDF
Automação do físico ao NetSecDevOps
PDF
Ansible 實戰:top down 觀點
PDF
Known basic of NFV Features
PDF
Ansible - Introduction
PDF
Tested install-isp config3-ubuntu-16-04
DOCX
Lamp configuration u buntu 10.04
PDF
Red Hat Certified Engineer (RHCE) EX294 Exam Questions
PDF
Making environment for_infrastructure_as_code
PDF
Nginx3
PDF
Ansible, best practices
PDF
Openstack installation using rdo multi node
PDF
StackiFest16: Stacki 1600+ Server Journey - Dave Peterson, Salesforce
PDF
Webinar: Automate IBM Connections Installations and more
PDF
PPTX
Vagrant, Ansible, and OpenStack on your laptop
PDF
Présentation "Docker + Kubernetes" @ Pastis.tech #2
Learn basic ansible using docker
IT Automation with Ansible
Automação do físico ao NetSecDevOps
Ansible 實戰:top down 觀點
Known basic of NFV Features
Ansible - Introduction
Tested install-isp config3-ubuntu-16-04
Lamp configuration u buntu 10.04
Red Hat Certified Engineer (RHCE) EX294 Exam Questions
Making environment for_infrastructure_as_code
Nginx3
Ansible, best practices
Openstack installation using rdo multi node
StackiFest16: Stacki 1600+ Server Journey - Dave Peterson, Salesforce
Webinar: Automate IBM Connections Installations and more
Vagrant, Ansible, and OpenStack on your laptop
Présentation "Docker + Kubernetes" @ Pastis.tech #2
Ad

Similar to Nginx2 (20)

KEY
Practical introduction to dev ops with chef
PDF
OSS AWS 핸즈온 강의
PDF
9 steps to install and configure postgre sql from source on linux
PDF
Developing in Python on Red Hat Platforms (DevNation 2016)
PDF
Developing In Python On Red Hat Platforms (Nick Coghlan & Graham Dumpleton)
PDF
pgpool-II demonstration
PDF
stackconf 2025 | Snakes are my new favourite by Felix Frank.pdf
PDF
Nix for Python developers
KEY
WebSocket - Nov 2011
PDF
Python Developer's Daily Routine
PDF
PyCon 2013 : Scripting to PyPi to GitHub and More
KEY
WebSocketサーバを使ってみよう! Jul 2011
PDF
Pipfile, pipenv, pip… what?!
PPT
Fabric
PDF
Introduction to Python
PDF
Ansible - Swiss Army Knife Orchestration
PDF
Ansible is the simplest way to automate. SymfonyCafe, 2015
PDF
PyCon Taiwan 2013 Tutorial
PDF
nginxをソースからインストールしてみたよ
PDF
Automated Deployment and Configuration Engines. Ansible
Practical introduction to dev ops with chef
OSS AWS 핸즈온 강의
9 steps to install and configure postgre sql from source on linux
Developing in Python on Red Hat Platforms (DevNation 2016)
Developing In Python On Red Hat Platforms (Nick Coghlan & Graham Dumpleton)
pgpool-II demonstration
stackconf 2025 | Snakes are my new favourite by Felix Frank.pdf
Nix for Python developers
WebSocket - Nov 2011
Python Developer's Daily Routine
PyCon 2013 : Scripting to PyPi to GitHub and More
WebSocketサーバを使ってみよう! Jul 2011
Pipfile, pipenv, pip… what?!
Fabric
Introduction to Python
Ansible - Swiss Army Knife Orchestration
Ansible is the simplest way to automate. SymfonyCafe, 2015
PyCon Taiwan 2013 Tutorial
nginxをソースからインストールしてみたよ
Automated Deployment and Configuration Engines. Ansible
Ad

Recently uploaded (20)

PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PPTX
ai tools demonstartion for schools and inter college
PDF
Understanding Forklifts - TECH EHS Solution
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Digital Strategies for Manufacturing Companies
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Nekopoi APK 2025 free lastest update
PPTX
history of c programming in notes for students .pptx
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
Transform Your Business with a Software ERP System
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
Design an Analysis of Algorithms II-SECS-1021-03
Design an Analysis of Algorithms I-SECS-1021-03
wealthsignaloriginal-com-DS-text-... (1).pdf
ai tools demonstartion for schools and inter college
Understanding Forklifts - TECH EHS Solution
Which alternative to Crystal Reports is best for small or large businesses.pdf
Upgrade and Innovation Strategies for SAP ERP Customers
CHAPTER 2 - PM Management and IT Context
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Digital Strategies for Manufacturing Companies
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Odoo POS Development Services by CandidRoot Solutions
Nekopoi APK 2025 free lastest update
history of c programming in notes for students .pptx
Navsoft: AI-Powered Business Solutions & Custom Software Development
Transform Your Business with a Software ERP System
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Design an Analysis of Algorithms II-SECS-1021-03

Nginx2

  • 1. NGINX & uWSGI & PYTHON & PostgreSQL install Part1 writing by bee
  • 2. test system definition Client http socket or http CentOS 7.5(x86_64) WEB SERVER (reverse proxy) APLICATION SERVER
  • 3. table of contents ■ Step.1 NGINX Install (1:1.18.0-1.el7.ngx) ■ Step.2 PostgreSQL Install (0:9.2.24-2.el7_7) ■ Step.3 Python Install (3.7.1) ■ Step.4 uWSGI Install (2.0.18) Next report on cooperation between services
  • 4. [root@cent75 ~]# yum install -y nginx 読み込んだプラグイン:fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: ftp.iij.ad.jp * epel: ftp.riken.jp * extras: ftp.iij.ad.jp * updates: ftp.iij.ad.jp 依存性の解決をしています --> トランザクションの確認を実行しています。 ---> パッケージ nginx.x86_64 1:1.18.0-1.el7.ngx を インストール --> 依存性解決を終了しました。 依存性を解決しました ========================================================================================= ===================================================================== Package アーキテクチャー バージョン リポジトリー 容量 ========================================================================================= ===================================================================== インストール中: nginx x86_64 1:1.18.0-1.el7.ngx nginx 772 k トランザクションの要約 ========================================================================================= ===================================================================== インストール 1 パッケージ □ Step 1-1 NGINX Install
  • 5. 総ダウンロード容量: 772 k インストール容量: 2.7 M Downloading packages: nginx-1.18.0-1.el7.ngx.x86_64.rpm | 772 kB 00:00:02 Running transaction check Running transaction test Transaction test succeeded Running transaction インストール中 : 1:nginx-1.18.0-1.el7.ngx.x86_64 1/1 ---------------------------------------------------------------------- Thanks for using nginx! Please find the official documentation for nginx here: * http://nginx.org/en/docs/ Please subscribe to nginx-announce mailing list to get the most important news about nginx: * http://nginx.org/en/support.html Commercial subscriptions for nginx are available on: * http://nginx.com/products/ ---------------------------------------------------------------------- 検証中 : 1:nginx-1.18.0-1.el7.ngx.x86_64 1/1 インストール: nginx.x86_64 1:1.18.0-1.el7.ngx 完了しました!
  • 6. [root@cent75 ~]# systemctl enable nginx Created symlink from /etc/systemd/system/multi-user.target.wants/nginx.service to /usr/lib/systemd/system/nginx.service. □ Step 1-2 Set NGINX to start automatically. □ Step 1-4 Startup NGINX □ Step 1-5 Stop NGINX [root@cent75 ~]# systemctl start nginx [root@cent75 ~]# systemctl stop nginx □ Step 1-6 Retart NGINX [root@cent75 ~]# systemctl restart nginx [root@cent75 ~]# systemctl status nginx ● nginx.service - nginx - high performance web server Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled) Active: active (running) since 月 2020-05-11 22:44:50 JST; 2min 29s ago Docs: http://nginx.org/en/docs/ Process: 11916 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=0/SUCCESS) Process: 11929 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS) Main PID: 11932 (nginx) ... □ Step 1-7 Show NGINX status
  • 7. □ Step 1-8 Access check
  • 8. [root@cent75 ~]# groupadd -g 551 postgres [root@cent75 ~]# useradd -u 551 -g postgres postgres [root@cent75 ~]# passwd postgres ユーザー postgres のパスワードを変更。 新しいパスワード: postgres よくないパスワード: このパスワードには一部に何らかの形でユーザー名が含まれています。 新しいパスワードを再入力してください: postgres passwd: すべての認証トークンが正しく更新できました。 □ Step 2-1 make postgres user □ Step 2-2 PostgreSQL Install [root@cent75 ~]# yum install -y postgresql-server 読み込んだプラグイン:fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: ftp.iij.ad.jp * epel: ftp.riken.jp * extras: ftp.iij.ad.jp * updates: ftp.iij.ad.jp 依存性の解決をしています --> トランザクションの確認を実行しています。 ・・・・ 完了しました! [root@cent75 ~]# vi .bashrc export PATH=$PATH:/usr/local/pgsql/bin [root@cent75 ~]# . .bashrc
  • 9. □ Step 2-3 Initialize database instance [root@cent75 ~]# PGSETUP_INITDB_OPTIONS="-E UTF8 --no-locale" postgresql-setup initdb Initializing database ... OK [root@cent75 ~]# vi /var/lib/pgsql/data/pg_hba.conf # "local" is for Unix domain socket connections only local all all trust # IPv4 local connections: host all all 127.0.0.1/32 trust # IPv6 local connections: host all all ::1/128 trust □ Step 2-4 startup PostgreSQL [root@cent75 ~]# systemctl start postgresql [root@cent75 ~]# systemctl status postgresql ● postgresql.service - PostgreSQL database server Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled; vendor preset: disabled) Active: active (running) since 火 2020-05-12 23:34:48 JST; 5s ago Process: 10538 ExecStart=/usr/bin/pg_ctl start -D ${PGDATA} -s -o -p ${PGPORT} -w -t 300 (code=exited, status=0/SUCCESS) tq10547 postgres: autovacuum launcher process mq10548 postgres: stats collector process ・・・ 5月 12 23:34:47 cent75 systemd[1]: Starting PostgreSQL database server... 5月 12 23:34:48 cent75 systemd[1]: Started PostgreSQL database server.
  • 10. □ Step 2-5 Set PostgreSQL to start automatically [root@cent75 ~]# systemctl enable postgresql Created symlink from /etc/systemd/system/multi-user.target.wants/postgresql.service to /usr/lib/systemd/system/postgresql.service. □ Step 2-6 Create database role [postgres@cent75 ~]$ psql -U postgres -c "CREATE ROLE ¥"jppf¥" WITH CREATEDB LOGIN PASSWORD 'jppf'" [postgres@cent75 ~]$ psql -U postgres -c '¥du' ロール一覧 ロール名 | 属性 | メンバー ----------+----------------------------------------------------------------------+---------- jppf | DBを作成できる | {} postgres | スーパーユーザ, ロールを作成できる, DBを作成できる, レプリケーション | {}
  • 11. □ Step 3-1 pyenv and pyenv-virtualenv Install [root@cent75 ~]# cd /root [root@cent75 ~]# git clone https://github.com/yyuu/pyenv.git ~/.pyenv [root@cent75 ~]# git clone https://github.com/yyuu/pyenv-virtualenv.git ./.pyenv/plugins/pyenv-virtualenv [root@cent75 ~]# vi /root/.bash_profile export PATH=$PATH:$HOME/bin:/usr/local/bin export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)" [root@cent75 ~]# .bash_profile [root@cent75 ~]# PYTHON_CFLAGS=-fPIC pyenv install 3.7.1 [root@cent75 ~]# pyenv global 3.7.1 [root@cent75 ~]# pyenv versions system * 3.7.1 (set by /root/.pyenv/version) [root@cent75 ~]# python Python 3.7.1 (default, Apr 30 2020, 21:21:52) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> exit()
  • 12. □ Step 4-1 uWSGI Install [root@cent75 ~]# pip install uwsgi==2.0.18 Collecting uwsgi==2.0.18 Downloading uwsgi-2.0.18.tar.gz (801 kB) |????????????????????????????????| 801 kB 2.8 MB/s Building wheels for collected packages: uwsgi Building wheel for uwsgi (setup.py) ... done Created wheel for uwsgi: filename=uWSGI-2.0.18-cp37-cp37m-linux_x86_64.whl size=5002578 sha256=5aa2a14ec4226467f3b7699ce69ea9360259dce09e1f71ef34173cb0cf6a3d41 Stored in directory: /root/.cache/pip/wheels/e7/d0/f2/b93905969980eaf9fe18183b0c43470d63b13fcd3a1f6c8efe Successfully built uwsgi Installing collected packages: uwsgi program Successfully installed uwsgi-2.0.18 [root@cent75 ~]# pip install uwsgi==2.0.18 □ Step 4-2 check program [root@cent75 ~]# vi /tmp/test.py def application(env, start_response): start_response('200 OK', [('Content-Type','text/html')]) rvalue = b"Hello World¥n" return [rvalue]
  • 13. □ Step 4-3 startup uWSGI server [root@cent75 ~]# uwsgi --plugin http,python --http :9090 --wsgi-file /tmp/test.py open("./http_plugin.so"): No such file or directory [core/utils.c line 3724] !!! UNABLE to load uWSGI plugin: ./http_plugin.so: cannot open shared object file: No such file or directory !!! open("./python_plugin.so"): No such file or directory [core/utils.c line 3724] !!! UNABLE to load uWSGI plugin: ./python_plugin.so: cannot open shared object file: No such file or directory !!! *** Starting uWSGI 2.0.18 (64bit) on [Wed May 13 00:36:11 2020] *** compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-39) on 12 May 2020 15:25:11 os: Linux-3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 nodename: cent75 machine: x86_64 clock source: unix ・・・ □ Step 4-4 Access check