原创 安裝編譯源碼php5.6.11
安裝php是建立在安裝apache和mysql之上的,可以參考我安裝mysql和apache源碼安裝的博客。 tar -zxvf php-5.6.11.tar.gz cd php-5.6.11 ./configure --prefi
原创 git使用
服務端建立倉庫: 1.git init --bare project1.git 客戶端: 1.git clone root@ip:/git倉庫路徑 2.git conf ig user.name "user1" git conf
原创 kvm(1)之快速使用
在fedora14下: 1.yum install kvm qemu virt-manager 2.dd if=/dev/zero of=fc14.img bs=1M count=8192 3.qemu-system-x86_64
原创 快速使用automake
1.hello.c #include <stdio.h> #include <sys/time.h> #include <time.h> #include "config.h" double get_epoch()
原创 linux之wait函數
#include<sys/types.h> #include<sys/wait.h> pid_t wait(int *status); 進程一旦調用了wait就立即阻塞自己,由wait自動分析是否當前進程的某個子進程已經退出,如果讓
原创 讓自己的linux系統成爲網橋
1.echo "1" > /proc/sys/net/ipv4/ip_forward 2.ifconfig eth0 0.0.0.0 up 3.ifconfig eth0 0.0.0.0 up 4.brctl addbr br0
原创 error: mcrypt.h
今天在編譯php的時候,出現如下錯誤php安裝出錯:configure: error: mcrypt.h not found. Please reinstall libmcrypt.,意思是,沒有查找到mcrytp.h,需要安裝lib
原创 centos 6.5 源碼安裝apache
1.安裝編譯環境 yum -y install gcc gcc-c++ glibc glibc-common pcre-devel flex autoconf make automake zlib-devel 2.安裝apr 和 apr
原创 玩轉centos7最小安裝
1.解決yum源問題 (1)http://mirrors.163.com/.help/centos.html 下載cetos7的yum源 (2)激活centos7的網卡:/etc/sysconfig/network-scripts/i
原创 python基礎(1)
1.下載 https://www.python.org/ftp/python/ 點贊 收藏 分享 文章舉報 會飛的幸運兒 發佈了103 篇原創文章 · 獲贊 12 · 訪
原创 fcntl設置FD_CLOEXEC標誌作用
通過fcntl設置FD_CLOEXEC標誌有什麼用?close on exec, not on-fork, 意爲如果對描述符設置了FD_CLOEXEC,使用execl執行的程序裏,此描述符被關閉,不能再使用它,但是在使用fork調用的子進
原创 玩轉bugzila
首先我們要下載最新版的Bugzilla包,這裏我下載的是4.5.2版本。 使用wget工具在shell或終端上下載: wget http://ftp
原创 爲什麼/usr/local/apache2/bin/apxs明明存在,安裝module的時候總是提示請指定有效的apxs路徑呢?
很多人認爲錯誤提示是說apxs不存在,其實真正的原因是apxs無法運行。 剛剛測試了一下,在沒裝perl的情況下編譯安裝apache生成的apxs的第一行是:#!/replace/with/path/to/perl/interpret
原创 libiconv安裝錯誤解決
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz tar zxvf libiconv-1.14.tar.gz cd libiconv-1.14/ ./co
原创 玩轉mysql源碼安裝
1.首先下載mysql源碼 wget http://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.1/mysql-5.1.73.tar.gz 2.解壓 3../configure --prefix