第1列分钟1~59第2列小时1~23(0表示子夜)第3列日1~31第4列月1~12第5列星期0~6(0表示星期天)第6列要运行的命令下面是crontab的格式:分 时 日 月 星期 要运行的命令这里有crontab文件条目的一些例子:30 21 * * * /usr/local/apache/bin...
分类:
系统相关 时间:
2014-07-22 00:26:36
阅读次数:
295
Key Words: Python, Windows, pip, readline 肇因是想在Windows下能够代码补全,需要自己添加模块,添加了又缺readline模块,安装时候又想装pip……完全就是个递归。 一个个解决。 首先建一个模块:#!/usr/bin/env pythonimp...
分类:
编程语言 时间:
2014-07-22 00:01:34
阅读次数:
356
一、通过pip工具安装
https://pypi.python.org/pypi/pip#downloads
cd /opt/
tar xzvf pip-1.5.6.tar.gz
cd /opt/pip-1.5.6
python setup.py install
pip install ngxtop
ngxtop -c /usr/local/nginx/conf/nginx.co...
分类:
其他好文 时间:
2014-07-21 23:28:11
阅读次数:
258
.jni.h文件 : 了解 JNI 需要配合 jni.h 文件, jni.h 是 Google NDK 中的一个文件, 位置是 $/android-ndk-r9d/platforms/android-19/arch-arm/usr/include/jni.h ;1. JNIEnv 作用JNIEnv 概念 : 是一个线程相关的结构体, 该结构体代表了 Java 在本线程的运行环境 ; JNIEnv...
分类:
移动开发 时间:
2014-07-21 22:31:07
阅读次数:
295
首先假设dhcp服务器IP为192.168.80.20/24.1.安装dhcp服务器软件mount/dev/cdrom/mntrpm-ivh/mnt/Packages/dhcp-4.1.1-34.P1.el6.i686.rpm2.修改配置(1)查看文件提示cat/etc/dhcp/dhcpd.conf拷贝模板文件至dhcp.confcp/usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample/etc/dhcp/dhc..
分类:
系统相关 时间:
2014-07-21 22:28:07
阅读次数:
384
1.创建一个目录,用于安装ant。我们这里暂时在/usr目录下创建ant目录。
2.下载
cd /usr/ant进入该目录,使用wget ant的下载地址 下载ant到当前目录下。附ant下载页面(http://ant.apache.org/bindownload.cgi)。
作者使用的是第二个
3.解压
使用 tar -zxvf 下载好的压缩包文件 命令解压到当前目录下。
4....
分类:
其他好文 时间:
2014-07-21 22:24:17
阅读次数:
510
目的:监测mysql的存活状态,一旦监测到mysqldown掉,重新启动mysql.脚本内容:/usr/local/mysql/bin/mysqladmin-uroot-psharpowerping>/dev/null2>&1
if[$?-ne0]
then
/etc/init.d/mysql.serverrestart>/dev/null
echo"`/bin/date‘+%Y%m%d%H:%M:%S‘`mysqlisrestar..
分类:
数据库 时间:
2014-07-21 19:48:42
阅读次数:
253
##讲诉mongodb的两种安装方式,其实都蛮简单的建议使用官方源进行安装数据库存放目录建议划分到一个单独的分区上面##monogdb二进制安装包[root@redistmp]#tarxfmongodb-linux-x86_64-2.6.3.tgz-C/usr/local/
[root@redistmp]#mv/usr/local/{mongodb-linux-x86_64-2.6.3,mongodb..
分类:
数据库 时间:
2014-07-21 19:26:32
阅读次数:
491
#!/usr/bin/python#-*-encoding=utf-8-*-####################################fromSimpleXMLRPCServerimportSimpleXMLRPCServerfromSocketServerimportThreadingMixInimportsubprocess,os.path,os,statimportre,getopt,sysERR_INSECURE=‘[INSECURE_NAME]‘ERR_NO_SCRIPT=‘[NO_S..
分类:
编程语言 时间:
2014-07-21 15:26:17
阅读次数:
300
git的安装: 下载地址?http://www.kernel.org/pub/software/scm/git/? 安装过程: ?1.$ tar xzvf git-1.6.5 ?2.$?cd git-1.6.5? 3.$?./config --prefix=/usr/local? 4.$?make ?5.$?sudo make install...
分类:
其他好文 时间:
2014-07-21 13:26:18
阅读次数:
241