PHP Version 7.0.13-0ubuntu0.16.04.1 mysql-server-5.7

https://zh.wikipedia.org/wiki/Linux发行版

一个典型的Linux桌面发行版包括一个Linux 内核,来自GNU的工具和库,和附加的软件、文档,还有一个窗口系统,窗口管理器,和一个桌面环境。大部分包括的软件是自由软件/开源软件,它们同时以二进制可执行文件和源代码形式发布,只要用户愿意,还允许修改和重新编译源代码。还有一些可能是专有软件而不提供源代码。

流行的发行版[编辑]

https://en.wikipedia.org/wiki/Dpkg

dpkg is the software at the base of the package management system in the free operating system Debian and its numerous derivativesdpkg is used to install, remove, and provide information about .deb packages.

dpkg (Debian Package) itself is a low level tool. APT (Advanced Packaging Tool), a higher level tool, is more commonly used than dpkg as it can fetch packages from remote locations and deal with complex package relations, such as dependency resolution. Frontends for APT like aptitude (ncurses) and synaptic (GTK+) are used for their friendlier interfaces.

https://zh.wikipedia.org/wiki/Dpkg

dpkgDebian软件包管理器的基础,它被伊恩·默多克创建于1993年。dpkg与RPM十分相似,同样被用于安装、卸载和供给和.deb软件包相关的信息。

dpkg本身是一个底层的工具。上层的工具,像是APT,被用于从远程获取软件包以及处理复杂的软件包关系。 “dpkg”是“Debian Package”的简写。

apt-get update
apt-get install mysql-server

http://www.devopsservice.com/installation-of-mysql-server-5-7-on-ubuntu-14-04/

apt-get remove mysql-server
apt-get remove mysql-common
dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P

w纸上得来终觉浅,绝知此事要躬行。

mysql> SHOW VARIABLES LIKE "%ver%";

| version | 5.7.17-0ubuntu0.16.04.1 |

PHP Version 7.0.13-0ubuntu0.16.04.1

 1 apt-get update
 2 
 3 apt-get install apache2
 4 service apache2 restart
 5 
 6 
 7 apt-get install php7.0-fpm php7.0-mysql  php7.0-common    php7.0-curl php7.0-mbstring
 8 
 9 wget http://dev.mysql.com/get/mysql-apt-config_0.6.0-1_all.deb
10 dpkg -i mysql-apt-config_0.6.0-1_all.deb
11 apt-get install mysql-server-5.7
12 
13 
14 apt-get install php7.0-mysql
15 apt-get install libapache2-mod-php7.0
原文地址:https://www.cnblogs.com/rsapaper/p/6346495.html