查看Apache的连接数和当前的连接数以及IP访问次数,以下脚本可实现:#!/bin/bash#writenbyzhuxiaowei#date:2015.10.19#about"watchclientsIP"###########################################con_num=`netstat-ant|grep$ip:80|wc-l`#connectionsnumberscon_now=`netstat-ant|grep$i..
分类:
Web程序 时间:
2015-10-19 12:49:12
阅读次数:
253
gvim的tabe标签页打开跟在同一个页面(标签中)打开,对buffer的影响都是一样的,都是增加新的buffer可以认为gvim的命令行模式跟bash shell里的操作差不多在命令行模式中通过!comm可以执行shell命令, 甚至完全从vim切换到shell,使用命令:shell,退回用exi...
分类:
系统相关 时间:
2015-10-19 00:34:22
阅读次数:
224
useradd
[options]USERNAME-uUID指定用户ID,大于500-gGID(基本组),组必须存在-GGID,…,…(附加组,可以有多个)-c"COMMENT"注释信息-d/path/to/somedirectory指定家目录-s
/bin/bash指定shell路径SHELL环境变量echo$SHELL-m-k(/etc/skel/中的文件拷贝到创建的家目录中)强制为..
分类:
系统相关 时间:
2015-10-18 01:25:33
阅读次数:
293
实验环境CentOSphpinfo()显示PHPVersion5.3.3去官网http://www.xdebug.org/对应下载xdebug-2.2.5linux下解压xdebug包。1、进入xdebug,在这个目录下先运行php目录下面的bin/phpize;我的机子,运行phpize出错[root@localhostxdebug-2.2.5]#phpize
-bash:phpize:commandnotfound安..
分类:
Web程序 时间:
2015-10-18 01:24:13
阅读次数:
137
bash-3.2# prtdiag 报告一般系统信息System Configuration: VMware, Inc. VMware Virtual PlatformBIOS Configuration: Phoenix Technologies LTD 6.00 06/02/2011===...
分类:
其他好文 时间:
2015-10-17 23:39:31
阅读次数:
267
1.设置selinux端口[root@hn ~]# semanage port -l|grep ssh-bash: semanage: 未找到命令[root@hn ~]# whereis semanagesemanage:缺少semanage,需要安装net-tools (这个包同时还包含了ifco...
分类:
其他好文 时间:
2015-10-17 20:33:00
阅读次数:
413
在linux下习惯使用ll、la、l等ls别名的童鞋到mac os可就郁闷了~~其实只要在用户目录下建立一个脚本“.bash_profile”,并输入以下内容即可:alias ll='ls -alF'alias la='ls -A'alias l='ls -CF'然后 source .bash_pr...
分类:
系统相关 时间:
2015-10-17 11:58:19
阅读次数:
160
single="ls -l"$single=============multi="ls -l | grep e"echo $multi > tmp.shbash tmp.sh=============cmd="ls -l | grep e"bash -c "$cmd"=============$ c...
分类:
系统相关 时间:
2015-10-17 10:42:07
阅读次数:
213
#!/bin/bash
#chkconfig:359901
case"$1"in
start)
echo-e"\n\t\t`date+%F``date+%T`"
echo-e"\t\t正在启动lsnrctlstart...."
su-oracle-c‘lsnrctlstart‘&>>/var/log/oracle
echo-e"\t\t正在启动dbstart...."
su-oracle-c‘dbstart‘&>>/var/log/oracle
echo..
分类:
数据库 时间:
2015-10-17 07:08:04
阅读次数:
274
历史命令 history -c clear -w 写入 ~/.bash_history 默认保存1000条, 可在/etc/profile中修改 调用 Tab补全 命令、目录、文件命令别名 alias 别名='原命令' 命令执行顺序: 绝对...
分类:
系统相关 时间:
2015-10-17 00:34:28
阅读次数:
249