进入操作系统
yum install docker-io
docker -d
提示没有空闲IP地址可以给桥接网卡使用了
编辑下内网网卡eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
IPADDR=x.x.x.x
NETMASK=255.255.248.0
BRIDGE='docker0'
新建一个docker0配置文件
DEVI...
分类:
其他好文 时间:
2014-08-11 17:51:42
阅读次数:
212
Sharepoint访问ashx问件报错:the file you are attempting to save or retrieved has been blocked from this web siteby the serveradministrator解决方案:1.打开Sharepoint...
分类:
其他好文 时间:
2014-08-11 17:17:32
阅读次数:
227
本次介绍ansible的palybook结合docker进行虚拟机里安装2.6.8版本smokeping(apache版本是2.4.7)。docker版本09:26:53#dockerversion
Clientversion:0.11.1
ClientAPIversion:1.11
Goversion(client):go1.2.1
Gitcommit(client):fb99f99/0.11.1
Serverversion:0.11.1
ServerAPI..
分类:
其他好文 时间:
2014-08-11 12:12:33
阅读次数:
1941
'; } function save($path) { echo ""; $data = ob_get_contents(); ob_end_clean(); $this->wirtefile($path, $data); } function wirtefile($...
分类:
Web程序 时间:
2014-08-11 11:54:22
阅读次数:
199
djangmodels1.创建model fromdjango.dbimportmodels classMyObject(models.Model): attribute1=models.CharField(max_length=50)2.创建记录 2.1p=MyObject(attribute=xxxx) p.save() 2.2p=MyObject.objects.create(attribue=xxx)3.更新记录 p=MyObject.objects.all(attribute..
分类:
其他好文 时间:
2014-08-11 10:17:52
阅读次数:
266
问题在IE9以上被隐藏,但是在IE8上,出现EasyUI.mini.js中的错误,竟然是一个多余的逗号引起的如下:dataTable_OnsiteDelegation.datagrid({ title: '现场登记管理', iconCls: 'icon-save', ...
分类:
其他好文 时间:
2014-08-10 23:57:31
阅读次数:
635
在AndroidMainfest.xml文件中添加-->
注意:在前添加-->
/**
* Save Bitmap to a file.保存图片到SD卡。
*
* @param bitmap
* @param file
* @return error message if the saving is failed. nul...
分类:
移动开发 时间:
2014-08-10 18:47:10
阅读次数:
225
File path = new File("/sdcard/okc"); File file = new File("/sdcard/okc/save.txt"); if (!path.exists()){ path.mkdirs(); ...
分类:
其他好文 时间:
2014-08-10 01:42:29
阅读次数:
220
Here are some save function for some situations:Yes/No/// /// /// /// public void SaveDataSet(DataSet ds, string parent...
分类:
其他好文 时间:
2014-08-09 21:02:49
阅读次数:
200
安装django-jfu请参考:https://pypi.python.org/pypi/django-jfu利用django-jfu上传文件,如果遇到相同文件名称会自动加"_"1.jpg后缀,如2d7f977e6b36ec616b4e31a33d988c13_1.jpg,下面我们把这个功能去掉,让它直接覆盖原文件。文件:views.pydefupload(request):instance.save(..
分类:
其他好文 时间:
2014-08-09 02:41:28
阅读次数:
1176