原文:
添加nginx源
echo "deb http://nginx.org/packages/mainline/ubuntu/ trusty nginx" >> /etc/apt/sources.listecho "deb-src http://nginx.org/packages/ubuntu/ trusty nginx" >> /etc/apt/sources.list
安装nginx
apt-get updateapt-get install nginx
PHP7.0.1
apt-get install python-software-properties add-apt-repository ppa:ondrej/php-7.0 apt-get install php7.0-fpm
做一些配置:
vi /etc/php/7.0/fpm/php.ini #将cgi.fix_pathinfo=1这一行去掉注释,将1改为0。
MySQL 5.7.10
下载apt文件[]
dpkg -i mysql-apt-config_xx_all.debapt-get updateapt-get install mysql-server
依赖环境:
sudo apt-get install php7.0-cli php7.0-common php7.0-zip php7.0-mcrypt php7.0-curl php7.0-mbstring php7.0-xml php7.0-gd php7.0-mysql libxml2 libxml2-dev build-essential openssl libssl-dev libcurl4-gnutls-dev libjpeg-dev libpng-dev libmcrypt-dev libreadline6 libreadline6-dev libgd-dev libxslt-dev