ubuntu16.04搭建nginx+php7.0-fpm

nginx的安装

apt-get update
apt-get install nginx
nginx -v

php安装

apt-get install python-software-properties software-properties-common

apt-get install php7.0-fpm php7.0-cli php7.0-mcrypt php7.0-mysql php7.0-mbstring php7.0-xml php7.0-dev php7.0-zip php7.0-gd php7.0-curl

MySQL的安装

sudo apt-get install mysql-server mysql-client

启动nginx、php-fpm

sudo service php7.0-fpm start
sudo service nginx start

 

转载于:https://my.oschina.net/qiongtaoli/blog/3093214

你可能感兴趣的:(运维,php,数据库)