- 博客(4)
- 收藏
- 关注
原创 mysql 启动 shell
#! /bin/bash## this is mysql contorl### config#my_password="888888"function start(){ echo "mysql Starting ......" isExists=$(ps aux | grep mysql | awk '/^mysql/{print $2}') if [[ ${isExists} > 0 ]]; then stop
2011-02-17 08:51:00 3394
转载 CentOS 5.4安装 libmcrypt 2.5.8 错误及其解决方案记录
<br />错误代码:<br />checking for libmcrypt – version >= 2.5.0…<br />*** ‘libmcrypt-config –version’ returned 2.4.0, but LIBMCRYPT (2.5.8)<br />*** was found! If libmcrypt-config was correct, then it is best<br />*** to remove the old version of LIBMCRYPT. You
2011-02-15 08:48:00 4393
原创 备份shell
#! /bin/bash ## config#etcConfig=/etc/wwwbackup.conf if [[ ! -f ${etcConfig} ]]; then echo "${etcConfig} not exists" exit 1fi while read s tdo ss=`date +%F%r`.tar.gz backDir=`basename ${s}` if [[ -d ${s} ]]; t
2011-02-14 08:34:00 580
原创 解决虚拟机下无法访问web服务器
<br />装好了虚拟机的nginx服务器,但是一直无法访问,费解啊。本机能ping通虚拟机 ,虚拟机能访问自己的web但就是本机无法访问虚拟机的web 服务器,google之找到原因<br /><br />默认iptables防火墙将80端口屏蔽了的缘故。<br /><br />对防火墙不太了解,先关了吧<br /><br />查看CentOS防火墙信息:/etc/init.d/iptables status<br />关闭CentOS防火墙服务:/etc/init.d/iptables st
2011-02-12 08:42:00 3544
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人