Ubuntu+nginx+php+mysql安裝備忘

1.升級 php

sudo apt-get update
sudo apt-get upgrade

2.安裝前置環境mysql

sudo apt-get install gcc g++
sudo apt-get install build-essential
sudo apt-get install libtool

3.安裝pcre(重寫),zlib(gzip)nginx

wget https://ftp.pcre.org/pub/pcre/pcre-8.00.tar.gz
tar -zxvf pcre-8.00.tar.gz
cd pcre-8.00
./configure
make && make install

wget http://zlib.net/zlib-1.2.11.tar.gz
tar -zxvf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure
make && make install

4.安裝opensslsql

wget http://distfiles.macports.org/openssl/openssl-1.0.2s.tar.gz
tar -zxvf openssl-1.0.2s.tar.gz
cd openssl-1.0.2s.tar.gz
./configure
make && make install

5.安裝nginxui

wget http://nginx.org/download/nginx-1.16.0.tar.gz
tar -zxvf nginx-1.16.0.tar.gz
cd nginx-1.16.0
./configure --prefix=/usr/local/nginx
make && make install

6.安裝php.net

sudo apt-get install php

7.安裝mysqlcode

sudo apt-get install mysql-server
sudo apt-get install mysql-client
相關文章
相關標籤/搜索