linux上安裝php,mysql,apche步驟

源碼安裝php

  1. 在php官網找到5.6.40的tar包的鏈接
  2. 在linux上的 用戶主目錄(cd ~)用 wget 鏈接
  3. tar -zxvf 壓縮包名 解壓
  4. 進入下載後的php-5.6.40的目錄使用

./configure     --prefix=/usr/local/php5.6   --enable-fpm

  1. 在當前目錄 make
  2. 在當前目錄 make install
  3. 返回上一級目錄 新建一個 test.php 測試文件
  4. 運行php文件  /use/local/php5.6/bin/php test.php
  5.  

安裝mysql

  1. 在mysql官網找到源碼。Generic Linux (Architecture Independent), Compressed TAR Archive

linux通用版。找到下載連接。

  1. 在linux 用 wget 鏈接
  2. tar -zxvf 壓縮包名 解壓
  3. yum install  cmake    gcc-c++   ncurses-devel  perl-Data-Dumper  boost boost-doc  boost-devel
  4. 進入mysql的目錄  cmake .

參考文章:  https://itbilu.com/database/mysql/VJVOut01M.html

  1. make
  2. make install

Apache

  1. 官方找連接
  2. wget 鏈接
  3. 進入解壓後的目錄 ./configure  --prefix=/usr/local/apache2.4
  4. http://apr.apache.org/download.cgi 參考文章
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章