码迷,mamicode.com
首页 >  
搜索关键字:tmp    ( 7796个结果
如何让程序在后台执行
示例:查看系统负载的脚本#!/bin/shwhile truedo uptime >/tmp/uptime.log sleep 1done[root@lamp scripts]# tail -f /tmp/uptime.log 21:37:26 up 5:49, 2 users, loa...
分类:其他好文   时间:2015-11-23 23:11:05    阅读次数:168
MySQL之truncate表后恢复思路整理(前提是有备份且开启binlog)
1.1对数据库thunder进行备份mysqldump-S/tmp/mysql3316.sock--single-transaction--master-data=2thunder>thunder_full_2015112.sql1.2进行truncatetable操作并insertintotable(work)root@localhost:mysql3316.sock[(none)]>select*fromthunder.tb1; +----+---------+ |i..
分类:数据库   时间:2015-11-22 23:35:25    阅读次数:808
tmp_table_size
Whenever you increasetmp_table_sizeandmax_heap_table_size, keep in mind that setting these does not make queries behave better. It actually make ineff...
分类:其他好文   时间:2015-11-22 00:19:23    阅读次数:146
一个简单的crontab
a.sh#!/bin/bashcd/opt/park/crontab;php./park_center.phppark_center.php中的大致内容如下:<?php$redis=newRedis();$redis->connect("127.0.0.1","7380");......if($httpcode>=200&&$httpcode<300){file_put_contents("/tmp/toke.log",date("Y-m-dh:i:s..
分类:其他好文   时间:2015-11-20 20:06:00    阅读次数:136
linux命令显示文件内容行号|linux将内容以行号显示出来
查看文件内容:cat /etc/shadow里面所有内容 cat命令是全部输出 cat /etc/shadow -n 输出内容及行号,空行业输出了 cat /etc/shadow -b 输出内容及行号,但不会输出空格 tac /tmp/cat.txt 文件内容反过来看 先显示所有结果然...
分类:系统相关   时间:2015-11-20 12:37:24    阅读次数:180
Bash中使用MySQL导入导出CSV格式数据[转]
转自:http://codingstandards.iteye.com/blog/604541MySQL中导出CSV格式数据的SQL语句样本如下:select * from test_info into outfile '/tmp/test.csv' fields terminated by ','...
分类:数据库   时间:2015-11-20 12:18:35    阅读次数:195
python 备份脚本
原来是ruby写的,考虑不太全,现在重写了一下。按时间过滤相关东西#!/usr/bin/envpython importos importre importtime importtarfile importstring bak_ser="bacula@192.168.1.4" tar_dir="/tmp/auto_tar_bak" ext_user="/eda/bin/auto_bak.conf" config={"deep":8,"exclude..
分类:编程语言   时间:2015-11-20 00:26:42    阅读次数:269
iOS沙盒处理
沙盒文件每个ios应用都有自己的应用沙盒,应用沙盒就是文件系统目录,与其他应用的文件系统隔离,ios系统不允许访问其他应用的应用沙盒。在ios8中已经开放访问。应用沙盒一般包括以下几个文件目录:应用程序包、Documents、Libaray(下面有Caches和Preferences目录)、tmp。...
分类:移动开发   时间:2015-11-19 09:42:33    阅读次数:246
oracle去重
oracle去重create table tmp_table3as (SELECT seqno FROM (SELECT t.seqno,ROWID, ROW_NUMBER() OVER(PARTITI...
分类:数据库   时间:2015-11-19 09:36:17    阅读次数:171
SaltStack配置管理之系统初始化
[root@linux-node1~]#cd/srv/salt/base/[root@linux-node1base]#lsapache.slsdns.slsfilestop.sls[root@linux-node1base]#mkdirinit[root@linux-node1base]#mvapache.slsdns.slsfiles//tmp/[root@linux-node1base]#ll总用量8drwxr-xr-x2rootroot409611月1714:05init-rw-r--r--1..
分类:其他好文   时间:2015-11-18 18:11:01    阅读次数:390
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!