/usr/local/mysql/bin/mysqld: unknown option ‘–skip-bdb’解决
由于之前有安装过mysql,因为版本过低,所以换了一个二进制免编译的mysql只停掉原来的mysql,并没有删除或者将/etc/my.cnf改名导致生成mysql_install_db时候报/usr/···
由于之前有安装过mysql,因为版本过低,所以换了一个二进制免编译的mysql只停掉原来的mysql,并没有删除或者将/etc/my.cnf改名导致生成mysql_install_db时候报/usr/···
安装之前检查mysql和apache是否正常启动安装准备yum install zlib libxml libjpeg freetype libpng gd curl zlib-devel libxm···
#!/bin/shport=`netstat -antup|grep mysqld|wc -l`process=`ps -ef|grep mysqld|grep -v grep|wc -l`if [···
[root@shnne ~]# cat nginxd.sh #!/bin/bash# chkconfig: 2345 58 80# description: start and stop servic···
判断内存小于100,邮件报警[root@shnne ~]# sh baojing.sh the mem is 570,it's ok.[root@shnne ~]# vim baojing.sh #!···
#!/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 $···