zoukankan      html  css  js  c++  java
  • linux学习中遇到的各种故障与解决方法

    一、nginx

    二、apache

    三、mysql

    四、tomcat

    五、oracle

    六、python

    python安装mysqldb(mysql-devel包)出现错误:

    error: command 'gcc' failed with exit status 1

    解决方法 :安装python-devel包,如果没有安装gcc还需要安装gcc

    django1.6中运行python manage.py runserver打开网页时报错:

    ImproperlyConfigured: Module "django.contrib.auth.middleware" does not define a "SessionAuthenticationMiddleware" attribute/class

    查阅资料SessionAuthenticationMiddleware是django1.7中的特性

    解决方法:(1)升级到django1.7,查看当前版本

    python -c "import django; print(django.get_version())"

    (2)在settings.py中MIDDLEWARE_CLASSES处注释掉SessionAuthenticationMiddleware

    七、git

    mooc.guokr.com/note/9146/

  • 相关阅读:
    codeforces-1144 (div3)
    codeforces-1142 (div1)
    codeforces-1131 (div2)
    codeforces-1132 (div2)
    [HAOI2006]均分数据
    Ellipsoid
    [JSOI2004]平衡点 / 吊打XXX
    CF208E Blood Cousins
    CF570D Tree Requests
    CF600E Lomsat gelral
  • 原文地址:https://www.cnblogs.com/z-books/p/4201431.html
Copyright © 2011-2022 走看看