標籤:blank 原始碼 border target 軟體包
一.原始碼類型和編譯檔案的關係不寫了.看圖吧,點開圖放大看一下
650) this.width=650;" title="源碼包管理" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; padding-right: 0px" border="0" alt="源碼包管理" src="http://s3.51cto.com/wyfs02/M02/6C/6A/wKiom1VIp2HRvyOMAAcMwyofBuY869.jpg" "2287" height="1316" />
二.執行個體操作之nginx編譯安裝
1.確保當前系統時間正確
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/6C/6A/wKiom1VIp2GxD9PWAABqfcsUOzU468.jpg" "572" height="60" />
2.解壓軟體包並進入軟體包
tar -xf nginx-1.4.2.tar.gz
cd nginx-1.4.2
使用./configure –help 擷取協助資訊.
3.安裝軟體
./configure --prefix=/usr/local/nginx --conf-path=/etc/nginx/nginx.conf //根據需求選擇需啟用的功能
注:依賴某些庫的錯誤提示說明:依賴哪些程式,程式包組識:主包,支包(開發環境通常都在-devel支包裡面),
如果所依賴的程式沒有rpm包,需手動下載來源程式編譯安裝.
make //編譯
make install //安裝
4.查看安裝目錄和設定檔目錄
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/6C/66/wKioL1VIqNKDSk6fAAGjGc-A6go280.jpg" "1148" height="150" />
5.啟動nginx
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/6C/66/wKioL1VIqNOBrU2fAAIZyTgYkG0363.jpg" "1154" height="207" />
三.安裝Linux中斷點續傳的下載工具axel
1.解壓並進入軟體目錄
tar -zxvf axel-2.4.tar.gz
2.安裝
./configure
make
make install
Example:
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/6C/6A/wKiom1VIp2Ozwfs0AALKRNb-PUQ821.jpg" "891" height="316" />
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/6C/66/wKioL1VIqNPxyW39AAFOYSLV7zw155.jpg" "875" height="157" />
3.下載執行個體
axel –o /tmp –n 3 ftp://<IP> //-o指定下載後的目錄,-n 指定線程數
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/6C/6A/wKiom1VIp2Tx333cAAYMOxlpwwE382.jpg" "828" height="495" />
三.編譯安裝HTTPD服務
1.解壓
tar -xf httpd-2.2.25.tar.bz2
cd httpd-2.2.25
2.安裝
./configure –prefix=/usr/local/apache –sysconfdir=/etc/httpd –enable-so
make
make install
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/6C/66/wKioL1VIqNTSIxDcAABkNk2VnsI654.jpg" "566" height="63" />
3.匯入檔案(apache支援二次開發需要匯入軟體自身所包含的二進位/庫檔案/標頭檔/協助檔案等)
1.匯出二進位程式給系統
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/6C/66/wKioL1VIqNXj2TPuAACtfuB08ng872.jpg" "740" height="77" />
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/6C/6A/wKiom1VIp2XSsXBnAAEOwuK07r0987.jpg" "785" height="83" />
2.匯出標頭檔給系統
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/6C/66/wKioL1VIqNXTV43RAADiOhl8m44872.jpg" "820" height="55" />
3.匯出庫檔案給系統
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/6C/66/wKioL1VIqNXzcxB6AACAoAf0yt4356.jpg" "623" height="91" />
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/6C/66/wKioL1VIqNbgNGySAAGMXwuSpdg684.jpg" "719" height="192" />
4.匯出協助檔案給系統
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M02/6C/6A/wKiom1VIp2bg8UXyAAJgKPGVJtk349.jpg" "953" height="331" />
man -M /usr/local/apache/man httpd
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M00/6C/66/wKioL1VIqNfyl3WbAAHBzVt3fig872.jpg" "1256" height="209" />
4.測試網站
650) this.width=650;" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-right: 0px" border="0" alt="image" src="http://s3.51cto.com/wyfs02/M01/6C/66/wKioL1VIqNfjduV4AAIsw8prXqA406.jpg" "1300" height="245" />
Linux基礎軟體包編譯安裝