ubutnu16.04 安装nginx php7.0 mysql
- 安装nginx
sudo wget http://nginx.org/keys/nginx_signing.keysudo apt-key add nginx_signing.key
sudo vim /etc/apt/sources.listVersion Codename Supported Platforms12.04 precise x86_64, i38614.04 trusty x86_64, i386, aarch64/arm6415.10 wily x86_64, i38616.04 xenial x86_64, i386deb http://nginx.org/packages/debian/ codename nginxdeb-src http://nginx.org/packages/debian/ codename nginxdeb http://nginx.org/packages/ubuntu/ xenial nginxdeb-src http://nginx.org/packages/ubuntu/ xenial nginx
sudo apt-get updatesudo apt-get install nginx
- 安装mysql
sudo apt-get install mysql-server
- 安装php7.0
sudo add-apt-repository ppa:ondrej/phporsudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/phpsudo apt-get install php7.0 php7.0-cli php7.0-fpm php7.0-gd php7.0-json php7.0-mysql php7.0-readlinesudo apt-get -y install php7.0-mysql php7.0-curl php7.0-gd php7.0-intl php7.0-pear php7.0-imagick php7.0-imap php7.0-mcrypt php7.0-memcache php7.0-pspell php7.0-recode php7.0-sqlite3 php7.0-tidy php7.0-xmlrpc php7.0-xsl php7.0-mbstring php7.0-gettext php7.0-zip