原创 查看centos信息

1 查看centos 是32位的還是64位的。 file /bin/ls

原创 我的友情鏈接

51CTO博客開發

原创 計算進程所佔用的內存大小的和

#/bin/bash!sum=0for mem in `ps aux |awk '{print $6}'|grep -v 'RSS'` do  sum=$[$sum+$mem]doneecho "The total memory is $s

原创 lamp Loaded Configuration File =>none

如果沒有找到你可以到 php源碼包裏面拷貝。[root@localhost php-5.3.27]# cp php.ini-production /usr/local/php/etc/php.ini。

原创 mysql 通過sock來登陸

 mysql -uroot -S /tmp/mysql2.sock

原创 ./configure: error: the HTTP rewrite module requires the PCRE library.

安裝  yum install -y pcre-devel

原创 Could not determine this machines public hostname. Please configure one or set 'visible_hostname

在squid.conf里加上visible_hostname squid.server.commm  這句話就行了。

原创 刪除錯誤的PATH路徑

只要重新賦值就可以了

原创 我的友情鏈接

51CTO博客開發

原创 configure: error: mcrypt.h not found. Please reinstall libmcrypt.

rpm -ivh "http://www.aminglinux.com/bbs/data/attachment/forum/month_1211/epel-release-6-7.noarch.rpm" yum install -y  li

原创 如何知道遠程的機器是否宕機

#!/bin/bash [email protected] while true    do ping -c 2  >/dev/null 2>&1    if [ $? -ne 0 ];then      echo " |mail