Time of Update: 2018-12-05
一,許可權:把檔案夾設定成可讀寫;二,設定pdo_mysql的完整路徑,根據你的實際情況設,完全複製可不行extension = /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so基本的操作方法基本的操作方法基本的操作方法基本的操作方法:::: 本文假設你的apahce安裝目錄為/usr/local/apache2,這些方法適合任何情況 apahce啟動命令: 推薦/usr/local/apache2
Time of Update: 2018-12-05
[root@rhes6 svn]# svn add 186svn: warning: cannot set LC_CTYPE localesvn: warning: environment variable LANG is ENsvn: warning: please check that your locale name is
Time of Update: 2018-12-05
轉自:http://rtxbc.iteye.com/blog/870160首先保證我們拿到的是最新代碼,運行Linux代碼 svn up Index/ 然後找出要撤銷的確切版本:Linux代碼 svn log --limit 10 Index/tpl/css/global.css 根據log懷疑是16976版本改壞的,比較一下:Linux代碼 svn diff -r 16975:16976 Index/tpl/css/global.css 發現16976有錯誤 撤銷16976
Time of Update: 2018-12-05
本文摘自(偶有較小改動)《Linux 裝置驅動開發詳解》(宋寶華 編著;人民郵電出版社;),留作紀念。——Living Park 第14章 Linux終端裝置驅動14.1終端裝置 在Linux系統中,終端是一種字元型裝置。包括序列埠終端、偽終端和控制台終端。14.2終端裝置驅動結構 Linux核心中tty的層次包含tty核心、tty線路和tty驅動。操作:分配tty驅動 alloc_tty_driver();註冊tty驅動
Time of Update: 2018-12-05
方法一:linux 下tomcat開機自啟動修改Tomcat/bin/startup.sh 為:export JAVA_HOME=/usr/java/j2sdk1.4.2_08export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:.export PATH=$PATH:$JAVA_HOME/binexport
Time of Update: 2018-12-05
移植hello world 模組到TQ2440開發板1.準備核心,TQ2440開發板內建的linux-2.6.30.4_20100531.tar.bz2。2.放到自己建立的目錄/opt/guoqian/下,tar -jxvf linux-2.6.30.4_20100531.tar.bz23.進入解壓的核心目錄底下,執行make distclean.4.利用TQ2440內建的配置,執行cp config_EmbedSky_W43
Time of Update: 2018-12-05
開發板:TQ2440核心:2.6.30.4-EmbedSky實現目標:控制led開關,併當前讀取狀態-------驅動實現 mini2440_leds.c-------#include <linux/miscdevice.h>#include <linux/delay.h>#include <asm/irq.h>#include <mach/regs-gpio.h>#include <mach/hardware.h>#include
Time of Update: 2018-12-05
1.關於ubuntu網路設定:1)設定檔:/etc/network/interfaceauto eth0iface eth0 inet static(靜態)或動態設定(iface eth0 inet dhcp)address xxx.xxx.xxx.xxxnetmaskgateway在設定檔中也可增加無線網卡的設定:auto wlan0iface wlan0 inet dhcpwpa-conf /etc/wpa_config.conf
Time of Update: 2018-12-05
1. 從http://www.apache.org/ 上下載apache_1.3.39.tar.gz,然後解壓縮的一個目錄,然後轉到apache_1.3.39目錄。2. 使用本地的gcc編譯這個版本,我用的是FC6上的gcc 4.1,運行:./ configuremake 完成後,不需要make install3. 然後建立一個新的編譯arm版本的目錄,然後在那個目錄下解壓縮apache_1.3.39.tar.gz,轉到該目錄下的apache_1.3.39,運行: export
Time of Update: 2018-12-05
#include <unistd.h>#include <sys/types.h>#include <sys/wait.h>#include <stdio.h>#include <errno.h>#include <math.h>int main(void){ pid_t child; if((child=vfork())==-1) //建立子進程 {
Time of Update: 2018-12-05
今天鬱悶死了,在虛擬機器上重裝了ubuntu系統,竟然ibus輸入框不知道跑到哪裡去了。於是卸載了,然後重裝,終於看見了那個小小的輸入鍵盤,可是竟然沒可選擇的IME。火大。直接卸載了ibus:apt-get remove ibus。然後就開始裝Google拼音的旅程。 1.下載源碼,通過如下命令下載,下載的東西在目前的目錄下sudo wget http://malu.googlecode.com/files/scim-googlepinyin.tar.gz2.解壓tar zxvf
Time of Update: 2018-12-05
#include <unistd.h>#include <sys/types.h>#include <errno.h>#include <stdio.h>#include <string.h>#include <stdlib.h>int main(){ int pipe_fd[2]; //建立管道標識符 pid_t pid; char r_buffer[100];
Time of Update: 2018-12-05
直接利用宿主機的核心編譯hello world 模組1.選擇一個工作目錄,我選擇/opt/guoqian/hellomod;mkdir -p /opt/guoqian/hellomod 2.然後用vim編輯hello.c,代碼如下:#include <linux/init.h>#include <linux/module.h>MODULE_LICENSE("Dual BSD/GPL");static int hello_init(void){
Time of Update: 2018-12-05
現在是網路社會,學linux不會tcp/ip,心裡老感覺空空的。所以也要認真好好學習這個東東了。實驗目的:實現用戶端發送,伺服器接收===========server===================#include <stdio.h>#include <stdlib.h>#include <errno.h>#include <string.h>#include <netdb.h>#include
Time of Update: 2018-12-05
ICMP是(Internet Control Message
Time of Update: 2018-12-05
#include <iostream>#include <string>#include <stdio.h>#include <stdlib.h>#include <fcntl.h>#include <string.h>using namespace std;int main(){ /*int fd; fd = open("/sddisk/tmpfile",O_RDWR|O_CREAT); if(fd==-
Time of Update: 2018-12-05
1.玩TQ2440,燒寫uboot時,忘記拔usb線電腦藍屏,重啟電腦DNW工具不能用了。 解決方案:刪掉C盤下的dnw.ini檔案,就可以了 問題描述:SecureCRT串連主機時,無法從鍵盤輸入,進入不了ok狀態,而用超級終端可以。解決辦法:在使用CRT串連時,在quick connect裡取消Flow Control選項(把勾取消)通常我們都是設定:(Flow Control 中選擇了一項)取消Flow
Time of Update: 2018-12-05
準備:首先在你的linux上確定nfs掛載沒問題,然後設定好你要掛載nfs的目錄,我的設定如下:/opt/EmbedSky/root_nfs *(rw,sync,no_root_squash)其次,你要把TQ2440製作的根檔案系統root_qtopia_2.2.0_2.6.30.4_20100601.tar.bz2解壓到root_nfs目錄下(如果高手的話,自己製作根目錄也行)。TQ2440製作的根檔案系統要修改一個地方,修改檔案系統/etc/init.d/rcS#net_set &
Time of Update: 2018-12-05
為了記錄學習驅動過程,自己簡單的做了筆記。某年某月,當自己成為驅動高手的時候,我再回過頭看看自己當時的想法。。。應該這種感覺是妙不可言的 So,come on!Everyday is nice! 關於基礎1.tar 可以用來備份關鍵資料,而 dd 則可以用來備份整顆 partition 或 整顆 disk2.vim區塊選擇(Visual Block)的功能3.set 這個指令除了會將環境變數列出來之外,其它我們的自訂變數,與所有的變數,都會被列出來喔4.uptime查看開機已耗用時間5.
Time of Update: 2018-12-05
[root@localhost haha]# cd /home/檢出檔案:[root@localhost home]# svn checkout svn://192.168.10.188:3690 ./svn到版本庫下的hooks:[root@localhost home]# cd /opt/svndata/yaoyao_v0/hooks/建立檔案:[root@localhost hooks]# vi