码迷,mamicode.com
首页 >  
搜索关键字:sh    ( 13189个结果
linux计算程序所用时间
########################################################################## File Name: testTime.sh# Author: fangtest# mail: fangxuhaha@126.com# Created...
分类:系统相关   时间:2014-07-03 11:19:21    阅读次数:230
linux简单用于监控队脚本
########################################################################## File Name: monitor.sh# Author: fangtest# mail: fangxuhaha@126.com# Created ...
分类:系统相关   时间:2014-07-02 00:38:58    阅读次数:213
weblogic管理脚本
start.shJava代码#!/usr/bin/bash##start.sh#@auth:zhoulin@lianchuang.com#SERVER_STATUS(){serv_status=`ps-ef|grepweblogic|grepwebapp|grep-vgrep|grep$1|wc-l...
分类:Web程序   时间:2014-06-30 23:05:20    阅读次数:578
编译所有C源码
#!/bin/sh #****************************************************************# # ScriptName: gccall.sh # Function: compile *.c in current dir #***********************************************************...
分类:其他好文   时间:2014-06-30 08:05:59    阅读次数:146
编译当天修改的所有C源码
#!/bin/sh #****************************************************************# # ScriptName: gccmodify.sh # Function: compile *.c which mtime is 0 (in 24 hours) in current dir #*************************...
分类:其他好文   时间:2014-06-30 08:04:56    阅读次数:168
JVM常用的调优参数
-Xms512m -Xmx1024m -XX:MaxPermSize=1204m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled sh set JAVA_OPTS="-Xms256m -Xmx512m -XX:+CMSClassUnloadingEnabled -X...
分类:其他好文   时间:2014-06-30 00:02:25    阅读次数:209
Shell脚本批量创建用户并随机生成密码
要求:批量创建10个系统账号oldboy01-oldboy10,并设置生成密码(密码不同).实现脚本:#!/bin/bash #Question3 foriin$(seq-w10) do useradd-s/bin/basholdboy$i echo"password$i"|md5sum|tee-apasswd.txt|passwd--stdinoldboy$i done脚本执行效果:[root@localhostq4]#shq4.sh Cha..
分类:其他好文   时间:2014-06-28 06:21:21    阅读次数:340
一键完成MySQL主从部署.
环境声明:主从服务器位于192.168.0.0/24网段master-->IP:192.168.0.88master-->IP:192.168.0.89在Master---主数据库的脚本master-IP:192.168.0.88#!/bin/sh #Function:Thisisusedformysql-masterrole #madebyzhigang.wang #contact:44850823@qq.com MYUSER=root MYPASS..
分类:数据库   时间:2014-06-28 00:56:03    阅读次数:432
Ubuntu 12.04 Server LTS下安装桌面及vncserver
亲测通过1.安装相关的包:apt-getupdateapt-getinstallubuntu-desktopapt-getinstallvnc4serverapt-getinstallx-window-system-coreapt-getinstallgdmapt-getinstallgnome-panel2.设置vncserverVncpasswd以root身份chmod+x/etc/X11/xinit/xinitrcVi/root/.vnc/xstartup#!/bin/sh..
分类:其他好文   时间:2014-06-28 00:21:30    阅读次数:473
遍历目录中所有文件并统计信息
遍历目录中所有文件,并且统计文件类型。#!/bin/bash #filename:filestat.sh #set-x if[$#-ne1]; then echo$0basepath; echo fi path=$1 declare-Astatarray; whilereadline; do ftype=`file-b"$line"` letstatarray["$ftype"]++; done<<(find$path-typef-print) ech..
分类:其他好文   时间:2014-06-28 00:16:08    阅读次数:224
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!