CentOS8 + apache + django3 + mod_wsgi 配置

CentOS8.1.1911 server with GUI 安裝。
默認已經安裝好 python3.6 pip

安裝apache:
dnf install httpd -y

安裝編譯程序:
dnf install gcc -y

安裝python的devel
dnf install python36-devel

以上都安裝成功後,在pip下安裝mod_wsgi:

[root@bogon ~]# pip3 install mod_wsgi
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting mod_wsgi
  Using cached https://files.pythonhosted.org/packages/74/98/812e68f5a1d51e9fe760c26fa2aef32147262a5985c4317329b6580e1ea9/mod_wsgi-4.7.1.tar.gz
Installing collected packages: mod-wsgi
  Running setup.py install for mod-wsgi ... done
Successfully installed mod-wsgi-4.7.1

測試是否成功安裝mod_wsgi:

[root@bogon ~]# mod_wsgi-express
Usage: mod_wsgi-express command [params]

Commands:
    install-module
    module-config
    module-location
    setup-server
    start-server

mod_wsgi-express: error: No command was specified.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章