码迷,mamicode.com
首页 >  
搜索关键字:tmp    ( 7796个结果
git 增加空目录到版本控制中
使用git开发需要增加两个目录log和tmp分别是日志文件和tmp这两个文件夹里面的内容是不需要加入到版本控制里面去的备忘一下操作命令mkdirlog mkdirtmp touchlog/.gitignore touchtmp/.gitignore gitadd-f. gitcommit-m"增加空目录" gitpush将#Ignoreeverythinginthisdirectory *..
分类:其他好文   时间:2014-10-10 16:17:54    阅读次数:271
linux学习笔记四(shell编程二)
写一个脚本:计算100以内所有能被3整除的正整数的和;取模,取余:%3%2=1100%55=45#!/bin/bashletSUM=0forIin{1..100};doTMP=$[$I%3]if[$TMP-eq0];thenSUM=$[$SUM+$I]fidoneecho"SUMis$SUM"写一个脚本:计算100以内所有奇数的和以及所有偶数的和;分别显示之;写一个脚本:每5秒..
分类:系统相关   时间:2014-10-10 15:13:05    阅读次数:275
多实例MySQL的/etc/my.cnf配置文件
[mysqld_multi]mysqld = /usr/bin/mysqld_safemysqladmin = /usr/bin/mysqladmin[mysqld1]datadir=/mnt/mysql/3306socket=/tmp/mysql3306.sockpid-file=/mnt/mys...
分类:数据库   时间:2014-10-09 21:44:17    阅读次数:444
python open 文件操作
open文件操作f=open(‘/tmp/hello‘,‘w‘)#open(路径+文件名,读写模式)#读写模式:r只读,r+读写,w新建(会覆盖原有文件),a追加,b二进制文件.常用模式如:‘rb‘,‘wb‘,‘r+b‘等等读写模式的类型有:rU或Ua以读方式打开,同时提供通用换行符支持(PEP278)w以写方式打开,a以追加模式打开(从E..
分类:编程语言   时间:2014-10-09 19:11:48    阅读次数:171
flume 日志导入elasticsearch
Flume配置 。 flume生成的数据结构 "_index" : "logstash-2013.01.07", "_type" : "tms_jboss_syslog", "_id" : "a_M9X_0YSpmE7A_bEzIFiw", "_score" : 1.0, "_source" : {"@source":"file://localhost.localdomain/tmp...
分类:其他好文   时间:2014-10-09 17:03:48    阅读次数:290
ctci1.2
voidreverse(char*str){if(str==NULL)return;intlen=strlen(str);inti=0;chartmp;for(i=0;i<len/2;i++){tmp=*(str+i);*(str+i)=*(str+len-1-i);*(str+len-1-i)=t...
分类:其他好文   时间:2014-10-09 16:13:34    阅读次数:171
维护系统必备命令:Chroot
mount/dev/sdx/mnt/gentoo mount-tprocnone/mnt/gentoo/proc/ 或 mount-tprocproc/mnt/gentoo/proc/ mount--rbind/sys/mnt/gentoo/sys/ mount--rbind/dev/mnt/gentoo/dev/ mount--rbind/tmp/mnt/gentoo/tmp(gentoo) 可选:mount--rbind/run/mnt/arch/run(arch) DNS:cp/etc/reso..
分类:其他好文   时间:2014-10-09 16:06:18    阅读次数:172
jps 显示process information unavailable解决方法
jps 显示process information unavailable解决办法jps时出现如下信息:4791 -- process information unavailable解决办法:进入tmp目录,cd /tmp删除该目录下名称为hsperfdata_{username}的文件夹然后jps...
分类:其他好文   时间:2014-10-08 11:39:25    阅读次数:335
sqlserver 递归查询的一种写法
with tmp as ( select a.id,a.name,a.pid from tb a where id='003' union all select k.id,k.name,k.pid from tb k inner join tmp c on c.id = k.pid )select....
分类:数据库   时间:2014-10-08 10:53:55    阅读次数:165
js闭包小结
1.变量在声明他们的函数体以及这个函数体嵌套的任意函数体内都是有定义的。eg:alert(tmp);vartmp=123;//未定义而不会报错2.作用域链的一个经典例子:name="lwy";functiont(){varname="tlwy";functions(){varname="slwy";console.log(name);}functionss(){console.log(name);}s..
分类:Web程序   时间:2014-10-08 00:34:45    阅读次数:247
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!