原创 Can't connect to local MySQL server through socket '/tmp/mysql.sock'

啓動mysql之後,不能進入mysql命令行: Can't connect to local MySQL server through socket '/tmp/mysql.sock':修改/etc/my.cnf 當中 socket=/tm

原创 安裝php報錯解決

configure: error: xml2-config not found. Please check your libxml2 installation.解決辦法是:yum install -y libxml2-devel還有錯誤:c

原创 sudo: effective uid is not 0, is sudo installed setuid root

當普通用戶需要臨時使用root權限的時候需要執行sudo命令,但是在執行sudo命令的時候需要使用root的權限去執行/usr/bin/sudo二進制文件。如果報錯出現sudo: effective uid is not 0, is sud

原创 configure: WARNING: unrecognized options: --with-mysql

編譯php後發生warning:configure: WARNING: unrecognized options: --with-mysql 只是php不支持mysql模塊./configure --help 查看configure的正確語

原创 VMware虛擬機開機之後等好久才能ssh連接?

VMware虛擬機開機之後等好久才能ssh連接?因爲開啓了ipv6配置,服務器刷新網絡需要很長時間,註釋掉就行了vi /etc/sysconfig/network-script/ifcfg-eth0裏面註銷了下面兩行#IPV6INIT="y

原创 升級python之後不能使用yum?

升級python之後不能使用yum?因爲yum是用python寫的,yum命令首行聲明!#/usr/bin/python,所以只要找到yum執行文件(which yum)然後第一行一行改成原來的python腳本就可以了,如: !#/usr/

原创 Can't connect to local MySQL server through socket '/tmp/mysql.sock'

啓動mysql之後,不能進入mysql命令行: Can't connect to local MySQL server through socket '/tmp/mysql.sock':修改/etc/my.cnf 當中 socket=/tm

原创 Call to undefined function set_magic_quotes_runtime() in /opt/app/apache/install/index.php:12 Stack

安裝Discuz時,輸入域名之後無法顯示正常頁面提示:Call to undefined function set_magic_quotes_runtime() in /opt/app/apache/install/index.php:12