上一页 1 2 3 4 5 6 7 8 ··· 18 下一页
摘要: fdisk -l查看还有多少分区没有挂载fdisk /dev/xdvs操作这个分区.n格式这个分区mkfs .ext3 /dev/xvdb1挂载分区mount /dev/xvdb1 /data 阅读全文
posted @ 2014-12-26 17:45 UCanBeFree 阅读(157) 评论(0) 推荐(0)
摘要: 1,开其重写模块: sudo a2enmod rewrite2,配置为可重写: 打开 /etc/apache Options FollowSymLinks AllowOverride All 在项目目录下,新建 .htaccess文件,加入以下内容: Options +Fo... 阅读全文
posted @ 2014-12-17 10:57 UCanBeFree 阅读(120) 评论(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 阅读(157) 评论(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 阅读(148) 评论(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 阅读(119) 评论(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 阅读(202) 评论(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 阅读(985) 评论(0) 推荐(0)
摘要: 安装: 在安装httpsqs之前要安装libevent-2.0.12-stable.tar.gz和okyocabinet-1.4.47.tar.gzulimit-SHn655351、安装libevent-2.0.12-stable.tar.gzwgethttp://httpsqs.googleco... 阅读全文
posted @ 2014-11-27 17:23 UCanBeFree 阅读(418) 评论(0) 推荐(0)
摘要: 1,ubuntu下配置 Memcached 2,Memcache使用方法1)安装Memcache客户端(PHP5为示例)sudo apt-get install php5-memcache安装完以后我们需要在php.ini里进行简单的配置,打开/etc/php5/apache2/php.ini文件在... 阅读全文
posted @ 2014-11-27 16:43 UCanBeFree 阅读(261) 评论(0) 推荐(0)
摘要: Session控制登陆 用户名: 密码 ... 阅读全文
posted @ 2014-11-24 08:58 UCanBeFree 阅读(192) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 18 下一页