摘要: [root@xenserver ~]# brctl --help Usage: brctl [commands] commands: addbr add bridge delbr delete bridge addif add interface to bridge delif ... 阅读全文
posted @ 2015-01-13 20:48 玉伽 阅读(2623) 评论(0) 推荐(0) 编辑
摘要: 查询出来的数据转化为json t = json.dumps(r, ensure_ascii=False)如果 不加 ensure_ascii=False 输出的 t 如果有汉字的话都默认给转换成一堆编码 如果加上的话 就都能正常显示变成了汉字 阅读全文
posted @ 2014-10-21 13:18 玉伽 阅读(238) 评论(0) 推荐(0) 编辑
摘要: yum install mysql-server mysql-devel #数据库yum install MySQL-python #用于连接djangomysqladmin -u root password '*' #设置mysql密码yum install python-imaging #图形包 阅读全文
posted @ 2014-04-17 11:32 玉伽 阅读(278) 评论(0) 推荐(0) 编辑
摘要: unix时间戳 获取方法 阅读全文
posted @ 2014-03-18 09:08 玉伽 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 自己的centos版本太老,python是2.4的,更新一以要,在网上找的以下方法1、下载python 到http://www.python.org/download/上下载python时注意可能是被和谐了该连接打不开,所以在download前多加些/////////,像http://www.python.org///////////////////download/这样,被挂起一两分钟后就能打开了,找到我们想要的linux下python版本就行了linux平台的有两种,Python 2.7 compressed source tarball (for Linux, Unix or OS X) 阅读全文
posted @ 2013-10-22 10:22 玉伽 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 问题:在centos中查询IP地址时,输入ifconfig命令报错:“ifconfig: command not found”原因:ifconfig命令所在路径/sbin未包含在系统环境变量PATH中解决方法:1. 直接输入:/sbin/ifconfig2. 临时修改环境变量:在shell中输入 $export PATH = $PATH:/sbin 然后再输入ifconfig命令即可,但是这只是临时更改了shell中的PATH,如果关闭shell,则修改消失,下次还需要重复如上操作3.永久修改PATH变量使之包含/sbin路径: 打开/etc/profile文件,在其中输入export PAT 阅读全文
posted @ 2013-10-21 11:08 玉伽 阅读(355) 评论(0) 推荐(0) 编辑
摘要: java.lang.SecurityException: Prohibited package name: java.*******,也就是运行包java.*********里的一个类,但是就产生这个错误。解决办法:包路径里不能以java开头。改成其他名字就可以了。 阅读全文
posted @ 2013-09-11 15:35 玉伽 阅读(2877) 评论(1) 推荐(1) 编辑
摘要: 错误如下Forbidden (403)CSRF verification failed. Request aborted.求解············· 阅读全文
posted @ 2013-08-26 16:59 玉伽 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 设置最大值、最小值和格式化 yAxis: { title: { text: ' ' }, min:0, max:4, labels : { formatter : function() {//设置纵坐标值的样式 return ''; } } } 阅读全文
posted @ 2013-08-26 16:56 玉伽 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 设置容器的浮动方式为相对定位,然后确定容器的宽高,比如宽500高300的层,然后设置层的外边距。div{Width:500px;height:300px;Margin:-150px00-250px;position:relative;left:50%;top:50%;} 阅读全文
posted @ 2013-08-22 15:57 玉伽 阅读(202) 评论(0) 推荐(0) 编辑