LoginSignup
0
0

More than 1 year has passed since last update.

RedHat7系でUWSGIインストール

Last updated at Posted at 2021-06-10

2021/6に投稿
python36 + flask + uwsgiの環境を構築するのに以前のやり方が通用しなかった。
pipでは入りませんでしたのでyumで入れました。
以下の内容はec2のredhat7で作業した場合。

# epel-release
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# install uwsgi
sudo yum install python36 uwsgi uwsgi-plugin-python36
# run
sudo uwsgi --plugin=python36 --http-socket=0.0.0.0:80

pip経由でuwsgiをインストールした場合はpython36との関係を自動で上手くやってくれるみたいですが、
yum経由の場合はpythonプラグインをインストール、設定しないといけないみたいです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0