Tag: nginx

  • CentOS 7-Install Python 3, Django 2, uwsgi, nginx

    以root身份依序執行以下指令:

    yum -y install epel-release
    yum -y install python36 python36-tools python36-libs python36-devel wget gcc gcc-c++ zlib* openssl-devel unixODBC-devel
    yum -y install uwsgi
    
    wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate
    python36 get-pip.py
    pip install django
    pip install django-pyodbc-azure
    
    firewall-cmd --zone=public --add-service=http --permanent
    systemctl enable nginx