12 2014 档案

摘要:fdisk -l查看还有多少分区没有挂载fdisk /dev/xdvs操作这个分区.n格式这个分区mkfs .ext3 /dev/xvdb1挂载分区mount /dev/xvdb1 /data 阅读全文
posted @ 2014-12-26 17:45 UCanBeFree 阅读(158) 评论(0) 推荐(0)
摘要:1,开其重写模块: sudo a2enmod rewrite2,配置为可重写: 打开 /etc/apache Options FollowSymLinks AllowOverride All 在项目目录下,新建 .htaccess文件,加入以下内容: Options +Fo... 阅读全文
posted @ 2014-12-17 10:57 UCanBeFree 阅读(124) 评论(0) 推荐(0)
摘要:三台服务器:大体不说了,请参考网址:http://www.cnblogs.com/gaizai/archive/2012/11/21/2780816.htmlsudo mysql-proxy \--proxy-read-only-backend-addresses=192.168.13.220:33... 阅读全文
posted @ 2014-12-11 19:23 UCanBeFree 阅读(159) 评论(0) 推荐(0)
摘要:#!/usr/bin/env python# !-*-coding:utf-8-*-class Setting(): name = "asdfa" age = "18" def __init__(self): passclass MyClass(): def _... 阅读全文
posted @ 2014-12-10 20:42 UCanBeFree 阅读(151) 评论(0) 推荐(0)
摘要:迭代器使用方法:#!/usr/bin/env python# !-*-coding:utf-8-*-__author__ = 't'class anyIter(object): def __init__(self, li): self.li =iter(li) def __... 阅读全文
posted @ 2014-12-10 18:51 UCanBeFree 阅读(122) 评论(0) 推荐(0)
摘要:django 各种常用模块:sudo pip installdjango-celerysudo pip installdjango-compressorsudo pip install django-bootstrap-formsudo pip install sorl.thumbnailsudo ... 阅读全文
posted @ 2014-12-08 15:52 UCanBeFree 阅读(203) 评论(0) 推荐(0)
摘要:python调用其他语言教程:调用C语言: 注意要安装 python-dev (sudo apt-get install python-dev) #include int fact(int n){ if (n <= 1) return 1; else return n * fac... 阅读全文
posted @ 2014-12-05 17:58 UCanBeFree 阅读(988) 评论(0) 推荐(0)