Maximum continuous sub-array.
分类:
其他好文 时间:
2014-05-22 04:36:26
阅读次数:
232
1、您也可以使用一键自动部署环境的工具,请参见网友开发的这个工具http://www.centos.bz/2013/08/ezhttp-tutorial/2、安装:wget
-c http://lamp.phpstudy.net/phpstudy.binchmod +x phpstudy.bin #...
分类:
Web程序 时间:
2014-05-22 01:58:26
阅读次数:
361
题目:We all know that Bin-Laden is a notorious
terrorist, and he has disappeared for a long time. But recently, it is reported
that he hides in Hang Zho...
分类:
其他好文 时间:
2014-05-22 01:09:55
阅读次数:
328
=> build/tools/zipalign:
out/host/linux-x86/bin/zipalign (host)=> build/tools/atree:
out/host/linux-x86/bin/atree (host)=> build/tools:=> build/to...
分类:
移动开发 时间:
2014-05-22 00:26:32
阅读次数:
2792
mysqladmin命令格式:mysqladmin -u 用户名 -p 旧密码 password
新密码1) 给root加个密码ab12首先在DOS下进入目录mysql\bin,然后键入以下命令: mysqladmin -u root -password
ab12注:因为开始时root没有密码,.....
分类:
数据库 时间:
2014-05-21 22:23:53
阅读次数:
417
1.统计/usr/bin目录下的文件个数[root@localhost~]#ls/usr/bin|wc-l
1306
[root@localhost~]#2.取出当前系统上所有用户的SHELL,要求,每种SHELL只显示一次,并且按顺序进行显示[root@localhost~]#cut-d:-f7/etc/passwd|sort-u
/bin/bash
/bin/nologin
/bin/sync
/bin/tcsh
/sb..
分类:
系统相关 时间:
2014-05-21 02:01:09
阅读次数:
530
安装好mysql数据库后,直接在安装的目录下/usr/local/mysql下新建了一个目录data用于存放数据,建好后,直接去启动数据库,发现启动不了,出现如下报错:mysqld_safeStartingmysqlddaemonwithdatabasesfrom/usr/local/mysql/data/usr/local/mysql/libexec/mysqld:File‘./mysql-..
分类:
数据库 时间:
2014-05-21 01:32:42
阅读次数:
378
第一个简单的python脚本#!/usr/bin/python
#
importos
file_1=‘user.txt‘
file_2=‘lock.txt‘
#putanaccount_list
f=file(file_1)
accout_list=f.readlines()
f.close()
#putalistofthelockuser
f=file(file_2)
lock_list=[]
foriinf.readlines():
line=i.strip(‘\n‘)
lock_list..
分类:
编程语言 时间:
2014-05-21 01:19:11
阅读次数:
391
nagios工作正常,各个监控页面也可以正常显示,唯独maps无法显示,提示TherequestedURL/nagios/cgi-bin/statusmap.cgiwasnotfoundonthisserver。进到/nagios/cgi-bin/文件夹中发现果然没有statusmap.cgi。上网查了一下,说是可能缺下面的安装包,gdgd-devellibpnglibpng-devell..
分类:
移动开发 时间:
2014-05-21 01:05:34
阅读次数:
393
nagios监控设置monitor告警的用户名和密码默认在commands.cfg文件中定义:其中参数解释:Vimcommands.cfg文件:/usr/local/bin/sendEmail–fnagios@test.com–tyahoon@test.com–smail.test.com–u“fromnagios”–xunagios–xpp#3isoda–mhappy解释:-f表示发送者的邮箱-t表示?.
分类:
移动开发 时间:
2014-05-21 00:36:54
阅读次数:
333