You are climbing a stair case. It takesnsteps
to reach to the top.Each time you can either climb 1 or 2 steps. In how many
distinct ways can you climb...
分类:
其他好文 时间:
2014-06-04 19:53:34
阅读次数:
173
普及 linux 基础知识,Linux 文件及文件夹权限,不要动不动就 777
权限。网上教程过于复杂啰嗦,简单总结如下...一、查看 Linux 文件权限ls -l (通用)ll (Ubuntu适用,等于ls
-al)二、权限标示符r(读)、w(写)、x(执行)4(读)、2(写)、1(执行)注:目...
分类:
系统相关 时间:
2014-06-03 09:17:01
阅读次数:
241
现象:网站访问越来越慢,最后无法访问了,经过检查发现磁盘满了分析过程及解决方案:通常出现这种问题都应该登录服务器检查磁盘、内存和进程使用的情况,通过top、df
–h和free –m来检查,发现磁盘空间满了。再进一步通过du –sh对可以的目录进行检查,发现是mysql的binlog占用空间过大。清...
分类:
数据库 时间:
2014-06-03 08:20:56
阅读次数:
309
可以使用一下命令查使用内存最多的5个进程ps -aux | sort -k4nr | head
-n 5或者top (然后按下M,注意大写)可以使用一下命令查使用CPU最多的5个进程ps -aux | sort -k3nr | head -n 5或者top
(然后按下P,注意大写)
分类:
系统相关 时间:
2014-06-03 07:30:14
阅读次数:
301
ubuntu server vsftpd
匿名用户上传下载及目录设置1:vsftpd服务器安装;sudo apt-get install vsftpd #安装cd /srv/
#切换到默认匿名用户ftp目录;运行 ls -l 我们可以看到 默认的 ftp目录是,虚拟用户ftp的根目录,并且此目...
分类:
其他好文 时间:
2014-05-31 11:41:52
阅读次数:
330
顺东方大厦适当放宽了三等奖klsdjflk适当放宽迪斯科但是分开了的首付款斯大林反抗螺丝钉范德萨洛克菲勒的首付款连锁店了独守空房了但是分斯大林反抗的拉萨反抗螺丝钉分;螺丝钉看法了但是螺丝钉看法了盛大开放桑德拉反抗螺丝钉棵分斯大林了独守空房了但是分桑德拉反抗了的首付款洒落的反抗螺丝钉分看到萨拉范德萨了...
分类:
其他好文 时间:
2014-05-31 06:54:53
阅读次数:
184
1 2 13 25 26 You can count on this being a dark
29 background with light text on top, but should try to make no 30 other
assumptions ...
分类:
移动开发 时间:
2014-05-31 06:12:59
阅读次数:
492
ls -lr反向排序结果==============================ls
${PATH//:/\ } | grep ==============================echo
$RANDOM==============================[[ $# -ne 3 ...
分类:
其他好文 时间:
2014-05-30 21:35:51
阅读次数:
335
由于Android是基于Linux内核的操作系统。因此,在Android上可以执行Shell命令。 chenbjin@acer:~$adbshell
shell@android:/ $ su 拿到root权限 ls 查看文件夹 cd 改变目录 cat 查看文件 rm 删除文件 mkd...
分类:
数据库 时间:
2014-05-30 16:58:36
阅读次数:
380
Given a triangle, find the minimum path sum
from top to bottom. Each step you may move to adjacent numbers on the row
below.For example, given the fol...
分类:
其他好文 时间:
2014-05-30 14:59:37
阅读次数:
241