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/

原文地址:https://www.cnblogs.com/z-books/p/4201431.html