[lvhongmin@AY1401201736089361adZ start_svr]$ cat startall_svr.sh
#!/bin/bash
errpath[0]=''
errnum=0
runnum=0
curr_path=`pwd`
#进程的名字
array[${#array[*]}]=/home/lvhongmin/bin/bin....
分类:
其他好文 时间:
2014-06-05 11:11:43
阅读次数:
243
lxc-start: cgroup is not mounted在执行lxc-start时出现上述问题是因为cgroup在宿主机上没有挂载。fix:vim /etc/fstabnone /sys/fs/cgroup cgroup defaults 0 0重启机器即可...
分类:
其他好文 时间:
2014-06-05 10:49:06
阅读次数:
270
在lxc安装过程遇到的所有问题解决后,你可以创建你的第一个lxc容器了。最简单的方法使用lxc自带的创建文件系统的工具,当然你也可以自己做个文件系统。模板的安装路径一般放在/usr/local/share/lxc/templates#lxc-create -t centos -n centos-tst#lxc-start -n centos-tst...
分类:
其他好文 时间:
2014-06-05 09:38:02
阅读次数:
258
[lvhongmin@AY1401201736089361adZ start_svr]$ cat killall_svr.sh
#!/bin/bash
unrun[0]=''
unnum=0
runnum=0
#进程的名字
array[${#array[*]}]=paiyouQuan.svr
array[${#array[*]}]=jjm.cornucopia.svr...
分类:
其他好文 时间:
2014-06-05 08:04:29
阅读次数:
277
最近使用NDK进行项目开发过程中,debug模式下logcat输出以下错误(PS:正常run没有任何错误,JNI方法执行没有问题):
05-28 13:48:10.422: W/dalvikvm(15024): JNI WARNING: input is not valid Modified UTF-8: illegal start byte 0xa5
05-28 1...
分类:
其他好文 时间:
2014-06-05 06:58:36
阅读次数:
1128
今天在centOS下装mysql时出现了一个错误:
解决方案就是如图所示kill 4734 kill 4839
最后再执行[root@localhost src]# service mysql start就可以了...
分类:
数据库 时间:
2014-06-05 02:03:02
阅读次数:
409
You have decided to start up a new social
networking company. Other existing popular social networksalready have billions
of users, so the only way to...
分类:
其他好文 时间:
2014-05-31 04:34:45
阅读次数:
275
本文体验在MVC中使用ASP.NET Identity 2.0,体验与用户身份安全有关的功能:
→install-package Microsoft.AspNet.Identity.Samples -Version 2.0.0-beta2 -Pre
安装后,在App_Start,Controller...
分类:
Web程序 时间:
2014-05-31 04:30:44
阅读次数:
461
题目:输入一个整数s,打印出全部和为s的连续整数序列(至少含有2个数)。比如输入9,则输出2、3、4和4、5两个序列方案一:因为序列至少要2个数,则两个数上限值为(1+s)/2,我们能够枚举该序列的起点和终点求全部满足的序列。时间复杂度为O(n^2),效率比較低方案二:我们设置两个指针start和e...
分类:
其他好文 时间:
2014-05-31 04:07:27
阅读次数:
282
Given a binary tree, find the maximum path
sum.The path may start and end at any node in the tree.For example:Given the
below binary tree, 1 ...
分类:
其他好文 时间:
2014-05-30 16:10:54
阅读次数:
185