源碼安裝php
- 在php官網找到5.6.40的tar包的鏈接
- 在linux上的 用戶主目錄(cd ~)用 wget 鏈接
- tar -zxvf 壓縮包名 解壓
- 進入下載後的php-5.6.40的目錄使用
./configure --prefix=/usr/local/php5.6 --enable-fpm
- 在當前目錄 make
- 在當前目錄 make install
- 返回上一級目錄 新建一個 test.php 測試文件
- 運行php文件 /use/local/php5.6/bin/php test.php
安裝mysql
- 在mysql官網找到源碼。Generic Linux (Architecture Independent), Compressed TAR Archive
linux通用版。找到下載連接。
- 在linux 用 wget 鏈接
- tar -zxvf 壓縮包名 解壓
- yum install cmake gcc-c++ ncurses-devel perl-Data-Dumper boost boost-doc boost-devel
- 進入mysql的目錄 cmake .
參考文章: https://itbilu.com/database/mysql/VJVOut01M.html
- make
- make install
Apache
- 官方找連接
- wget 鏈接
- 進入解壓後的目錄 ./configure --prefix=/usr/local/apache2.4
- http://apr.apache.org/download.cgi 參考文章