first,what is shell?其实只要是碰过计算机的,对于OS(Operation System操作系统,不管是linux、unix、windows)有点概念的人大多都听过这个名词,因为只要有OS那么就离不开Shell。其实Shell就是将我们输入的指令与kernel(核心)的沟通,使ke...
分类:
系统相关 时间:
2015-10-12 00:21:39
阅读次数:
399
#!/bin/bash
#?在centos系统上面执行
#?执行方法:?sh?centospingbjbk.sh?iplist1.txt
#?输入:?iplist.txt(ip列表)。警告,只能是ip,不能是host
#?输出:?faillist.txt(ping不通的ip列表)、oklist.txt(pi...
分类:
其他好文 时间:
2015-10-11 23:17:27
阅读次数:
444
#查看crontab服务状态servicecrondstatus#开启crontab 服务/etc/init.d/crondstart#crontab的配置文件/etc/crontab SHELL=/bin/bash指定了系统要使用哪个shellPATH=/sbin:/bin:/usr/sbin:....
分类:
其他好文 时间:
2015-10-11 23:10:00
阅读次数:
403
Git的官方网站:http://git-scm.com安装:msysgit是Windows版的Git,从http://msysgit.github.io/下载,然后按默认选项安装即可。安装完成后,在开始菜单里找到“Git”->“Git Bash”,蹦出一个类似命令行窗口的东西,就说明Git安装成功!...
分类:
其他好文 时间:
2015-10-11 16:31:24
阅读次数:
195
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\git_shell]@="Git Ba&sh Here"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\git_shell\comman...
分类:
其他好文 时间:
2015-10-11 14:04:05
阅读次数:
131
#!/bin/bash#lamp_install#definevariablesLY=lamp.tar.gzDES_PATH=/usr/local/YB_PATH=/usr/local/src/SOU_PATH=/usr/src/#lamp_checklamp_check(){[!-f$YB_PATH/$LY]&&echo"notfoundlamp.tar.gz"&&exit1#yumcheckyumgrouplist1>/dev/null[$?-ne0]&&am..
分类:
系统相关 时间:
2015-10-10 12:49:21
阅读次数:
398
作业1、要求添加一个用户newuser,如果其已经存在则显示”TheuserUSERNAMEisexists”,如果存在,则添加之,并将其密码设置为”P@ssw0rd”#!/bin/bash#username=newuser1if!id$username&>/dev/null;thenadduser$usernameecho$username|passwd--stdin"P@ssw0rd"..
分类:
系统相关 时间:
2015-10-10 06:51:52
阅读次数:
185
#!/bin/bash #_日志位置 _log_Path="/data0/nginx/weblogs/" #_日志文件名称 _log_FileName="access_blog.kinggoo.com.log" #_要被屏蔽的ip访问端口,默认80 _port="80" _nginx_deny="/opt/webserver/nginx/conf/...
分类:
其他好文 时间:
2015-10-09 23:08:17
阅读次数:
434
#!/bin/bash#author#date2014-03-12#chkconfig:-9023pidfile="/var/run/redis.pid"#config/etc/redis/redis.conf#sourcefunctionlibrary../etc/rc.d/init.d/functions#defualtfilesredis_conf=${redis_conf:-"/etc/redis/redis.conf"}redis=${redis_bin:-"/usr/local/bin/redis..
分类:
其他好文 时间:
2015-10-09 18:32:42
阅读次数:
188
#!/bin/bash#环境变量exportJAVA_HOME=/opt/apps/jdk1.6.0_41exportPATH=$PATH:/opt/apps/jdk1.6.0_41/binexportCLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/jre/lib/rt.jar#需要监控的网页地址URL="http://127.0.0.1:85"#tomcat程序实际路径TOMCA..
分类:
其他好文 时间:
2015-10-09 15:36:47
阅读次数:
155