1.很系统供应商不允许使用这一命令,或者即使被置位,也会被忽略,这一命令会带来安全性风险。suid意味着该用户对自己的shell脚本设置了这种权限,那么其他用户执行该脚本时,也将拥有该用户相同的权限。如果根用户设置了这样的权限,那么其他普通用户在执行这一脚本时,将有根用户的权限。同样的原则也适用于g...
分类:
其他好文 时间:
2014-09-16 17:17:20
阅读次数:
174
[root@vapp0301~]#catpull_log.sh#!/bin/bash#date=2014-09-16#istopulltheapplogecho-ne"\033[31m\033[05mthetimeformatoftheriskandbpis%Y-%m-%d%H:%M:%S.theposis%H:%M:%S\033[0m"read-p"pleaseinputyourapp":APPread-p"pleaseinputyourtimeinterval":TIME1read-p"pleaseinp..
分类:
其他好文 时间:
2014-09-16 16:06:40
阅读次数:
189
[root@gxapp01shells]#catcheck_saqz.sh#!/bin/bash#date=2014-09-06#istocheckthehttpstatus.ifitisnotOK,restarttheprogressrestart_saqz(){kill-9`ps-elf|grepjboss-saqz|grep-v"grepjboss-saqz"|awk-F‘‘‘{print$4}‘|tail-1`rm-rf/usr/local/jboss/server/jboss-saqz/tmp/*r..
分类:
其他好文 时间:
2014-09-16 16:05:51
阅读次数:
164
[root@jbossshell]#catzabbix.sh#!/bin/bashset-xHOST=`hostname`DIR=/rootserviceiptablesstopAZ(){groupaddzabbixuseraddzabbix-gzabbix-s/sbin/nologintar-zxvf$DIR/zabbix-1.8.5.tar.gzcdzabbix-1.8.5./configure--prefix=/usr/local/zabbix--enable-agentmakemakeinstallm..
分类:
其他好文 时间:
2014-09-16 16:05:31
阅读次数:
176
前言用bash shell写程序时,经常会用到for循环,特别是从1到100这种需求,这里记录几种shell中从1到100的循环方法方法类c语言[html] view plaincopyprint?for((i=1;i<=100;i++))doecho$idonefor ((i=1; i<=100;...
分类:
其他好文 时间:
2014-09-16 15:49:20
阅读次数:
187
linux下PHP扩展安装memcache模块roid安装环境RHEL 4Php 5.2.6所需软件libevent-1.4.6-stable.tar.gz (http://monkey.org/~provos/libevent/)memcache-2.2.3.tgz (http://pecl.ph...
分类:
Web程序 时间:
2014-09-16 15:42:40
阅读次数:
302
memcached是一个软件,而PHP包括了memcache和memcached 2个扩展,这2个接口使PHP程序代码能够操作和使用memcached这个软件。一,php扩展memcache和memcached区别1.目前大多数php环境里使用的都是不带d的memcache版本,这个版本出的比较早,...
分类:
其他好文 时间:
2014-09-16 15:35:00
阅读次数:
213
不退出: 1 #include 2 #include 3 4 5 unsigned __stdcall _threadfun(void* pParam) 6 { 7 while(TRUE) 8 { 9 printf("hello world");10 ...
分类:
编程语言 时间:
2014-09-16 13:59:50
阅读次数:
223
Android自动化性能收集 Android 功能测试自动化框架较多,UIAutomator,Robotium,Appium等。Case执行过程中,可能希望收集手机的性能指标,包括内存、cpu、流量等。使用java+shell+bat简单实现了android手机性能...
分类:
移动开发 时间:
2014-09-16 12:55:20
阅读次数:
257
通篇假设未曾使用过gdb,一般的发行版都会携带这个工具,要是没有,只能自己找找,如何安装了。
本文并未详细说明exit(_exit)里边详细过程,只是表述如何进入。
测试代码如下:
#include
#include
void func()
{
printf("atexit ");
}
int main(int argc,...
分类:
数据库 时间:
2014-09-16 12:41:20
阅读次数:
351