ubuntu安裝lnmp

本機環境爲ubuntu14.04

安裝PHP7

sudo apt-get install -y python-software-properties software-properties-common
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update

Optionally purge PHP 5:
sudo apt-get remove php5-common -y
Or directly purge it including configuration files:
sudo apt-get purge php5-common -y

And finally install PHP 7:
sudo apt-get install php7.0 php7.0-fpm php7.0-mysql -y

Optionally clean up unneeded packages afterwards:
sudo apt-get --purge autoremove -y

Alternatively, you can install PHP 7.0 from sources using this script script or following instruction on this blog.

sudo apt-get install php7.0
Or
sudo apt-get install php

安裝mysql

wget https://repo.mysql.com//mysql-apt-config_0.8.3-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.3-1_all.deb
sudo apt-get update
sudo apt-get install mysql-server

安裝nginix

在此使用的是openresty,與nginx類似,可參考ubuntu14.04 安裝openresty

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章