本机环境为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