比较两个整数的大小(比较两个整数的大小教学设计)
#!/bin/sh#defined the numberread -p "please input two number:" a b[ -z "$a" ] || [ -z "$b" ] && {···
#!/bin/sh#defined the numberread -p "please input two number:" a b[ -z "$a" ] || [ -z "$b" ] && {···
利用let计数监控web服务状态#监控服务状态ServerMonitor () {#服务状态监控timeout=10fails=0success=0while true do /usr/bin···
#!/bin/shif expr "$1" : ".*\.pub" &>/dev/null then echo "you are using $1" else echo "you must u···
前提:配置好LNMP和LAMP,添加好memcache的扩展1.服务端安装memcached服务端软件注意:memcached用libevent来作事件驱动,所以要先安装libevent。这两个只要.···
1.下载jdk-6u35-linux-x64-rpm.binrpm -qa|grep gcj 如果有,用rpm -e下载可以加--nodeps参数强制卸载2.rz上传jdk-6u35-linux-x6···
1.创建用户文本文件[root@shnne ~]# vim /etc/vsftpd/vsftpd_virtualuser.txt[root@shnne ~]# cat /etc/vsftpd/vsft···
1.下载安装redis-2.6.8.tar.gztar xf redis-2.6.8.tar.gzcd redis-2.6.8make PREFIX=/application/redis-2.6.8···
1.安装前准备环境:Linux 2.6.32-642.el6.x86_64 #1 SMP Tue May 10 17:27:01 UTC 2016 x86_64 x86_64 x86_64 GNU/L···
[root@shnne ~]# cat liu.log I am shnne welcome to my blog.[root@shnne ~]# cat liu.sh #!/bin/sharray=···
方法一:md5sum[root@shnne scripts]# cat diffpro.sh #!/bin/shpath=/server/scripts/cuangai[ ! -d $path ] &···
1.[root@shnne ~]# cat slave_check.sh #!/bin/shwhile truedoflag=0 array=($(egrep "_Running|Behind_Mas···
[root@shnne ~]# vim test.sh#!/bin/shfor ((i=0; i<=5; i++))do if [ $i -eq 3 ] then #contin···
通过for循环打印5 4 3 2 1[root@shnne ~]# cat for1.sh #!/bin/shfor i in 5 4 3 2 1do echo $idone [root@shnne···
1.创建[root@shnne ~]# cat mk.sh #!/bin/shfor((i=1; i<=10; i++))do j=`cat /dev/urandom|head -1|md5sum|···
[root@shnne ~]# cat sum_*#!/bin/shsum=0i=1while [ $i -le 100 ]do let sum=sum+i let i=i+1doneecho $···
echo -e "\033[30m 黑色字 \033[0m" echo -e "\033[31m 红色字 \033[0m" echo -e "\033[32m 绿色字 \033[0m" echo···
[root@shnne ~]# cat rsync_start.sh #!/bin/bash# chkconfig: 2345 58 80# description: start and stop s···
在nginx的server字段中配置下面内容即可if ($http_user_agent ~* (baiduspider|googlebot|bing|sogou|yahoo)){return···
physical id 从0到1,说明有2个物理cpu;processor 从0到7,说明有8个逻辑CPU(如果不支持超线程的话);支不支持超线程,就看siblings和cpu cores是否相等,···
1、关闭其它的邮件工具service sendmail stopchkconfig sendmail offservice postfix stopchkconfig postfix off2、安装m···