ubuntu1604安装 LNMP

 

 

gao@gao-VirtualBox:/opt/sublime_text$ sudo apt-add-repository ppa:nginx/stable
 This PPA contains the latest Stable Release version of the nginx web server software.

The following releases of Ubuntu (including in-development releases) are supported in this PPA:
* Precise (12.04)
* Trusty (14.04)
* Wily (15.10)
* Xenial (16.04)

The following releases of Ubuntu are no longer supported, and have had their packages removed from the PPA:
* Lucid (10.04)
* Maverick (10.10)
* Natty (11.04)
* Oneiric (11.10)
* Quantal (11.10)
* Raring (13.04)
* Saucy (13.10)
* Utopic (14.10)
* Vivid (15.04)
 更多信息: https://launchpad.net/~nginx/+archive/ubuntu/stable
按回车继续或者 Ctrl+c 取消添加

 

gao@gao-VirtualBox:/opt/sublime_text$ sudo apt-get install php7.0 php7.0-fpm
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
将会同时安装下列软件:
  php-common php7.0-cli php7.0-common php7.0-json php7.0-opcache
  php7.0-readline
建议安装:
  php-pear
下列【新】软件包将被安装:
  php-common php7.0 php7.0-cli php7.0-common php7.0-fpm php7.0-json
  php7.0-opcache php7.0-readline
升级了 0 个软件包,新安装了 8 个软件包,要卸载 0 个软件包,有 224 个软件包未被升级。
需要下载 3,488 kB 的归档。
解压缩后会消耗 14.0 MB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 php-common all 1:35ubuntu6 [10.8 kB]
获取:2 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 php7.0-common amd64 7.0.4-7ubuntu2.1 [811 kB]
获取:3 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 php7.0-json amd64 7.0.4-7ubuntu2.1 [16.7 kB]
获取:4 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 php7.0-opcache amd64 7.0.4-7ubuntu2.1 [76.1 kB]
获取:5 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 php7.0-readline amd64 7.0.4-7ubuntu2.1 [12.8 kB]
获取:6 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 php7.0-cli amd64 7.0.4-7ubuntu2.1 [1,275 kB]
获取:7 http://cn.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 php7.0-fpm amd64 7.0.4-7ubuntu2.1 [1,284 kB]
获取:8 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 php7.0 all 7.0.4-7ubuntu2.1 [1,284 B]
已下载 3,488 kB,耗时 4秒 (835 kB/s)
正在选中未选择的软件包 php-common。
(正在读取数据库 ... 系统当前共安装有 175763 个文件和目录。)
正准备解包 .../php-common_1%3a35ubuntu6_all.deb  ...
正在解包 php-common (1:35ubuntu6) ...
正在选中未选择的软件包 php7.0-common。
正准备解包 .../php7.0-common_7.0.4-7ubuntu2.1_amd64.deb  ...
正在解包 php7.0-common (7.0.4-7ubuntu2.1) ...
正在选中未选择的软件包 php7.0-json。
正准备解包 .../php7.0-json_7.0.4-7ubuntu2.1_amd64.deb  ...
正在解包 php7.0-json (7.0.4-7ubuntu2.1) ...
正在选中未选择的软件包 php7.0-opcache。
正准备解包 .../php7.0-opcache_7.0.4-7ubuntu2.1_amd64.deb  ...
正在解包 php7.0-opcache (7.0.4-7ubuntu2.1) ...
正在选中未选择的软件包 php7.0-readline。
正准备解包 .../php7.0-readline_7.0.4-7ubuntu2.1_amd64.deb  ...
正在解包 php7.0-readline (7.0.4-7ubuntu2.1) ...
正在选中未选择的软件包 php7.0-cli。
正准备解包 .../php7.0-cli_7.0.4-7ubuntu2.1_amd64.deb  ...
正在解包 php7.0-cli (7.0.4-7ubuntu2.1) ...
正在选中未选择的软件包 php7.0-fpm。
正准备解包 .../php7.0-fpm_7.0.4-7ubuntu2.1_amd64.deb  ...
正在解包 php7.0-fpm (7.0.4-7ubuntu2.1) ...
正在选中未选择的软件包 php7.0。
正准备解包 .../php7.0_7.0.4-7ubuntu2.1_all.deb  ...
正在解包 php7.0 (7.0.4-7ubuntu2.1) ...
正在处理用于 man-db (2.7.5-1) 的触发器 ...
正在处理用于 ureadahead (0.100.0-19) 的触发器 ...
正在处理用于 systemd (229-4ubuntu4) 的触发器 ...
正在设置 php-common (1:35ubuntu6) ...
正在设置 php7.0-common (7.0.4-7ubuntu2.1) ...

Creating config file /etc/php/7.0/mods-available/calendar.ini with new version

Creating config file /etc/php/7.0/mods-available/ctype.ini with new version

Creating config file /etc/php/7.0/mods-available/exif.ini with new version

Creating config file /etc/php/7.0/mods-available/fileinfo.ini with new version

Creating config file /etc/php/7.0/mods-available/ftp.ini with new version

Creating config file /etc/php/7.0/mods-available/gettext.ini with new version

Creating config file /etc/php/7.0/mods-available/iconv.ini with new version

Creating config file /etc/php/7.0/mods-available/pdo.ini with new version

Creating config file /etc/php/7.0/mods-available/phar.ini with new version

Creating config file /etc/php/7.0/mods-available/posix.ini with new version

Creating config file /etc/php/7.0/mods-available/shmop.ini with new version

Creating config file /etc/php/7.0/mods-available/sockets.ini with new version

Creating config file /etc/php/7.0/mods-available/sysvmsg.ini with new version

Creating config file /etc/php/7.0/mods-available/sysvsem.ini with new version

Creating config file /etc/php/7.0/mods-available/sysvshm.ini with new version

Creating config file /etc/php/7.0/mods-available/tokenizer.ini with new version
正在设置 php7.0-json (7.0.4-7ubuntu2.1) ...

Creating config file /etc/php/7.0/mods-available/json.ini with new version
正在设置 php7.0-opcache (7.0.4-7ubuntu2.1) ...

Creating config file /etc/php/7.0/mods-available/opcache.ini with new version
正在设置 php7.0-readline (7.0.4-7ubuntu2.1) ...

Creating config file /etc/php/7.0/mods-available/readline.ini with new version
正在设置 php7.0-cli (7.0.4-7ubuntu2.1) ...
update-alternatives: 使用 /usr/bin/php7.0 来在自动模式中提供 /usr/bin/php (php)
update-alternatives: 使用 /usr/bin/phar7.0 来在自动模式中提供 /usr/bin/phar (phar)
update-alternatives: 使用 /usr/bin/phar.phar7.0 来在自动模式中提供 /usr/bin/phar.phar (phar.phar)

Creating config file /etc/php/7.0/cli/php.ini with new version
正在设置 php7.0-fpm (7.0.4-7ubuntu2.1) ...

Creating config file /etc/php/7.0/fpm/php.ini with new version
正在设置 php7.0 (7.0.4-7ubuntu2.1) ...
正在处理用于 ureadahead (0.100.0-19) 的触发器 ...
正在处理用于 systemd (229-4ubuntu4) 的触发器 ...
gao@gao-VirtualBox:/opt/sublime_text$ php -v
PHP 7.0.4-7ubuntu2.1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
gao@gao-VirtualBox:/opt/sublime_text$

 

sudo  add-apt-repository  ppa:ondrej/mysql-5.7
 This branch tracks my attempt to package latest MySQL 5.7 packaging as available in Debian. Feel free to ping me if I am seriously behind Debian or upstream.

You can get more information about the packages at https://deb.sury.org.

If you are looking for MariaDB 10.0, please use: ppa:ondrej/mariadb-10.0: https://launchpad.net/~ondrej/+archive/mariadb-10.0
If you are looking for MySQL 5.5, please use: ppa:ondrej/mysql-5.5: https://launchpad.net/~ondrej/+archive/mysql-5.5
If you are looking for MySQL 5.6, please use: ppa:ondrej/mysql-5.6: https://launchpad.net/~ondrej/+archive/mysql-5.6
If you are looking for MySQL 5.7, please use: ppa:ondrej/mysql-5.7: https://launchpad.net/~ondrej/+archive/mysql-5.7
If you are looking for Percona XtraDB Cluster 5.5, please use: ppa:ondrej/percona-xtradb-cluster-5.5: https://launchpad.net/~ondrej/+archive/percona-xtradb-cluster-5.5

PLEASE READ: If you like my work and want to give me a little motivation, please consider donating: https://deb.sury.org/pages/donate.html
 更多信息: https://launchpad.net/~ondrej/+archive/ubuntu/mysql-5.7
按回车继续或者 Ctrl+c 取消添加

 

gao@gao-VirtualBox:/opt/sublime_text$ sudo  apt-get  install mysql-server mysql-client libmysqlclient-dev
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
将会同时安装下列软件:
  libaio1 libhtml-template-perl libmecab2 libmysqlclient20 mysql-client-5.7
  mysql-client-core-5.7 mysql-common mysql-server-5.7 mysql-server-core-5.7
  zlib1g-dev
建议安装:
  libipc-sharedcache-perl mailx tinyca
下列【新】软件包将被安装:
  libaio1 libhtml-template-perl libmecab2 libmysqlclient-dev libmysqlclient20
  mysql-client mysql-client-5.7 mysql-client-core-5.7 mysql-common
  mysql-server mysql-server-5.7 mysql-server-core-5.7 zlib1g-dev
升级了 0 个软件包,新安装了 13 个软件包,要卸载 0 个软件包,有 224 个软件包未被升级。
需要下载 21.5 MB 的归档。
解压缩后会消耗 174 MB 的额外空间。
您希望继续执行吗? [Y/n] y

你可能感兴趣的:(ubuntu1604安装 LNMP)