原创 Iptables基本語法
Netfilter/Iptables是Linux核集成的IP信息包過濾系統。 Netfilter/Iptables IP過濾系統可作爲一個整體來看,
原创 Sql Server查詢表結構和索引信息
以下兩段語句分別是獲取表的基本結構和獲取表對應的索引信息,直接複製到查詢分析器中就可以使用,在每個的最下面有一個輸入表名的地方,若不輸入則代表查詢全部的表。 1.表結構信息查詢 表結構信息查詢 SELECT TableNam
原创 bugfree升級報錯“Field 'id' doesn't have a default value”問題解決
MySQL 5中,出現錯誤提示: Field 'id' doesn't have a default value 解決方法: 打開my.ini,查找 sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE
原创 Linux系統的一些優化
1、關閉不需要的服務 使用命令如下: #ntsysv 關閉iptables的代碼如下: service iptables stop && #chkconfig iptables off 關閉SELinux的方法如下: vim /etc/s
原创 linux 常用下載
1、HTTP http://httpd.apache.org/download.cgi wget http://apache.dataguru.cn//httpd/httpd-2.4.3.tar.gz 2、MYSQL http://w
原创 單機版hadoop實例安裝
目標:運行單機版hadoop http://localhost:50030 mapredule監控界面 http://localhost:50070 HDFS監控頁面 -->安裝linux系統 -->java環境 -->ssh免密碼登陸
原创 php安裝報錯 ‘gdIOCtx’ 沒有名爲 ‘data’ 的成員
在安裝php時,報如下錯誤 In file included from /kk/php-5.4.0/ext/gd/gd.c:103: /root/php-5.4.0/ext/gd/gd_ctx.c: In function ‘_php_i
原创 grep與正則表達式
一、grep的正則表達式元字符 grep的正則表達式元字符基本集包含^、$、*、[]、[^]、\>和\<。 ^ 行首定位符,用於指定匹配字符串的頭部。 例: jay@ubuntu:~$ grep ^root /etc/passwd roo
原创 Centos下apche與tomcat整合
安裝JDK wget http://download.oracle.com/otn-pub/java/jdk/7u11-b21/jdk-7u11-linux-i586.tar.gz?AuthParam=1359007347_7dcb9
原创 -bash: mysql: command not found
問題: [root@xsunt94-pc mysql]# mysql -uroot -p -bash: mysql: command not found 因爲mysql命令的路徑在/usr/local/mysql/bin下面,所
原创 bugfree郵件發送的時間怎麼與系統時間不一致問題
1、先分別查找MYSQL與PHP中my.ini和php.ini文件。 2、修改php/php.ini,找到[Date] ; Defines the default timezone used by the date functions ;
原创 /bin/rm: cannot remove `libtoolT': No such file or directory
最近在編譯MySQL的過程發現錯誤提示:/bin/rm: cannot remove `libtoolt': No such file or directory解決方法: 1、確認libtool是否已經安裝,如果沒有安裝的話,則先安裝l
原创 Warning: date(): It is not safe to rely on the system's timezone settings
在用PHP5.3以上的PHP版本時,只要是涉及時間的會報一個 Warning: strtotime(): It is not safe to rely on the system's timezone settings. You
原创 checking for termcap functions library... configure: error: No curses/termcap library foun
mysql版本:5.1.67 這次在./configure後出現以下錯誤: checking for tgetent in -lncurses... no checking for tgetent in -lcurses... no c
原创 Nginx安裝報錯:./configure: error: the HTTP rewrite module requires the PCRE library.
Nginx安裝報錯: checking for PCRE library ... not found checking for PCRE library in /usr/local/ ... not found checking for