我是直接写的一个简单的shell实现的,内容如下:#!/bin/bashdatedir=`date+%Y%m%d`/bin/mkdir/home/logs/$datedir>/dev/null2>&1/bin/mv/home/logs/*.log/home/logs/$datedir/bin/kill-HUP`cat/var/run/nginx.pid`这样执行以后,就会在/home/logs/$datedir目录下生成..
分类:
其他好文 时间:
2015-06-01 20:37:09
阅读次数:
175
oracle中对于访问频率很高的包,存储过程或者函数,会引起死锁。对于用到了死锁的对象的脚本都会无法运行,造成卡死,或者报异常:打开的连接太多。这时需要使用dba权限账户去kill掉死锁的对象。使用 alter system kill session 死锁对象的ID;执行如下sql,查找出死锁的ID,并将alter语句拼接好:select Distinct 'alter system kill s...
分类:
数据库 时间:
2015-05-30 12:13:55
阅读次数:
160
UninstallDirectionsforLinux/AllOtherOperatingSystemsAsroot:1)Runthecommands:su–zimbrazmcontrolstopexit(youshouldberootafteryourunexit)2a)Runthecommand:ps-ef|grep-izimbraIfyouseerunningprocesses2b)Killanylingeringprocesses:kill-9<pid>3a)Runthecommand..
分类:
系统相关 时间:
2015-05-30 01:53:39
阅读次数:
181
##配置 ```linux /usr/local/nginx/logs/*.log { daily dateext rotate 1 olddir /usr/local/nginx/other/logs missingok notifempty compress sharedscripts postrotate /bin/kill -USR1 $(cat /var/run/nginx.p...
分类:
系统相关 时间:
2015-05-29 20:29:09
阅读次数:
251
gluster3.4.5logrotate默认配置如下:[root@lab25logrotate.d]#catglusterd/var/log/glusterfs/*glusterd.vol.log{missingokpostrotate/bin/kill-HUP`cat/var/run/glusterd.pid2>/dev/null`2>/dev/null||trueendscript}[root@lab25logrotate.d]#catglusterfsd/var/log/gl..
分类:
其他好文 时间:
2015-05-29 12:19:15
阅读次数:
203
ps -ef | grep nginx在进程列表里面找master进程,它的编号就是主进程号了。 步骤2:发送信号 从容停止Nginx: kill -QUIT 主进程号 快速停止Nginx: kill -TERM 主进程号 强制停止Nginx: pkill -9 nginx
分类:
其他好文 时间:
2015-05-28 17:55:55
阅读次数:
165
查看连接设备 adb devices //显示设备列表 adb get-serialno //获取设备序列号重启adb service adb kill-server adb start-serveradb 获取root控制 adb root adb remount //将s...
分类:
数据库 时间:
2015-05-28 15:55:13
阅读次数:
236
查看当前系统用户数按w查看自己的进程ID:whoami踢出用户:pkill-kill-tpth/1查看最近10天登录用户last-a-n10查看登录系统执行过的命令history全部清除历史记录history-c创建计划任务crontab-e列出计划任务crontab-l查看内存使用top大写M按内存使用大小排列
分类:
其他好文 时间:
2015-05-28 14:24:34
阅读次数:
152
ADB 常用命令
查看连接设备
adb devices //显示设备列表
adb get-serialno //获取设备序列号
重启adb service
adb kill-server
adb start-server
adb 获取root控制
adb root
adb remount //将system分区重新挂载为可读写分区...
分类:
数据库 时间:
2015-05-27 21:12:06
阅读次数:
292
iOS Programming State Restoration状态存储 If iOS ever needs more memory and your application is in the background, Apple might kill it to return memory to...
分类:
移动开发 时间:
2015-05-26 20:25:48
阅读次数:
297