会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
canbefree
博客园
首页
新随笔
联系
管理
上一页
1
2
3
4
5
6
7
8
···
18
下一页
2014年12月26日
Liunx 分区挂载
摘要: fdisk -l查看还有多少分区没有挂载fdisk /dev/xdvs操作这个分区.n格式这个分区mkfs .ext3 /dev/xvdb1挂载分区mount /dev/xvdb1 /data
阅读全文
posted @ 2014-12-26 17:45 UCanBeFree
阅读(157)
评论(0)
推荐(0)
2014年12月17日
Apache重写模块:规则详解
摘要: 1,开其重写模块: sudo a2enmod rewrite2,配置为可重写: 打开 /etc/apache Options FollowSymLinks AllowOverride All 在项目目录下,新建 .htaccess文件,加入以下内容: Options +Fo...
阅读全文
posted @ 2014-12-17 10:57 UCanBeFree
阅读(120)
评论(0)
推荐(0)
2014年12月11日
数据库读写分离
摘要: 三台服务器:大体不说了,请参考网址: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)
2014年12月10日
getattr,setattr
摘要: #!/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)
python 迭代器
摘要: 迭代器使用方法:#!/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)
2014年12月8日
django手册学习 二
摘要: 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)
2014年12月5日
python调用其他语言教程:
摘要: 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)
2014年11月27日
httpsqs消息队列
摘要: 安装: 在安装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)
Memcache 配置和使用
摘要: 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)
2014年11月24日
Session控制登陆
摘要: Session控制登陆 用户名: 密码 ...
阅读全文
posted @ 2014-11-24 08:58 UCanBeFree
阅读(192)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
18
下一页
公告