May


  • 首页

  • 关于

  • 分类

  • 归档

  • 搜索

Django+nginx+uwsgi配置

发表于 2019-01-01 |
Django+nginx+uwsgi配置Django+nginx+uwsgi配置 在线项目部署 1. uwsgi安装测试1.1 uwsgi安装1root@iZwz969jm0y04abuhgx4byZ:~# python3 -m pip install uwsgi 1.2 uwsgi测试测试 uwsgi 是否正常: 新建 test.py 文件,内容如下: 123def application(env, start_response): start_response('200 OK', [('Content-Type','text/html')]) return "Hello Wor ...
阅读全文 »

Android打包

发表于 2018-12-27 |
Android 打包keystore.jks Password: closet123 Error:error: failed to read PNG signature: file does not start with PNG signature. android studio 打包apk时报错. 错误:无法读取PNG签名:文件没有从PNG签名开始。 一般都是图片格式有问题 可能是后缀更改了,可能是图片压缩时产生的问题。 重新处理图片再加载 Solve: 找到对应的图片,右键编辑下,重新另存为png类型的图片即可 生成keystore.jks 12345678910111213141 ...
阅读全文 »

Django拓展auth用户

发表于 2018-12-22 |
Django拓展auth 用户完成注册登录登出注销操作 !!!拓展auth用户请务必在 python manage.py migrate 前进行!!! 新建一个project:closetUsers 修改 settings.py 12345678910111213141516171819202122232425#closetUsers/settings.pyINSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.c ...
阅读全文 »

DjangoOnMac_0

发表于 2018-12-16 |
Django on Mac part01. Django连接MySQL1.1 未安装驱动Error: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient? Solve:修改 __init__.py文件: 12import pymysqlpymysql.install_as_MySQLdb() 1.2 连接超时Error: django.db.utils.OperationalError: (2003, “Can’t connect to ...
阅读全文 »

DjangoInUbuntu_2

发表于 2018-12-16 |
Django in Ubuntu part2Django和服务器的配置 Django+Nginx + Tomcat? Nginx 1root@iZwz969jm0y04abuhgx4byZ:~# apt-get install nginx
阅读全文 »

未命名

发表于 2018-12-15 |
Django In Ubuntu part11. 数据库配置我们在项目的 settings.py 文件中找到 DATABASES 配置项,将其信息修改为: HelloWorld/HelloWorld/settings.py: 文件代码:1234567891011DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', # 或者使用 mysql.connector.django 'NAME': 'test', ...
阅读全文 »

DjangoInUbutun_0

发表于 2018-12-14 |
Django in Ubuntu part01. 安装12345678910root@iZwz969jm0y04abuhgx4byZ:~# apt-get install python-setuptoolsroot@iZwz969jm0y04abuhgx4byZ:~# python -m pip install "django<2"root@iZwz969jm0y04abuhgx4byZ:~# pythonPython 2.7.12 (default, Nov 12 2018, 14:36:49) [GCC 5.4.0 20160609] on linux2Type "help", "c ...
阅读全文 »

MySQL搭建_Ubuntu

发表于 2018-12-14 |
Ubuntu上的MySQL搭建1234567891011121314151617181920212223242526272829303132333435root@iZwz969jm0y04abuhgx4byZ:~# apt-get updateroot@iZwz969jm0y04abuhgx4byZ:~# apt-get upgraderoot@iZwz969jm0y04abuhgx4byZ:~# apt-get install mysql-serverroot@iZwz969jm0y04abuhgx4byZ:~# apt-get install mysql-clientroot@iZwz96 ...
阅读全文 »

SSH连接失败

发表于 2018-12-12 |
SSH连接失败SSH 登录失败:Host key verification failed由于公钥不一样了,所以无法登录,提示信息是 KEY 验证失败。解决方法是:在 /root/.ssh/known_hosts 文件里面将原来的公钥信息删除即可。 SSH 报 “Host key verification failed.”。一般来说,出现该错误有这么几种可能: ssh/known_hosts 裡面记录的目标主机 key 值不正确。这是最普遍的情况,只要删除对应的主机记录就能恢复正常。 运行命令: sudo rm /home/yourname/.ssh/known_hosts ssh 目 ...
阅读全文 »

Mac_root

发表于 2018-12-09 |
Mac终端_root权限1234567891011121314151617181920xxxdeMacBook-Pro:~ xxx$ su root Password:su: Sorry//在平常打开的命令行下无法打开,我输入的是我的开机密码xxxdeMacBook-Pro:~ xxx$ sudo -iPassword:xxxdeMacBook-Pro:~ root# su rootsh-3.2# su xxxshell-init: error retrieving current directory: getcwd: cannot access parent directories: Per ...
阅读全文 »
1…101112
May

May

Life is fantastic!

120 日志
18 分类
3 标签
GitHub
© 2019 May | Site words total count: 87.1k
由 Hexo 强力驱动
|
主题 — NexT.Gemini v5.1.4
本站总访问量 次 | 有人看过我的博客啦