美文网首页
使用 PPA 源安装 Nginx+PHP7

使用 PPA 源安装 Nginx+PHP7

作者: 字母数字或汉字 | 来源:发表于2016-08-03 01:43 被阅读185次

在第一次使用 add-apt-repository 脚本前要先安装它

$ sudo apt-get install software-properties-common

这包含 python-software-properties 包中比较常用的一部分脚本。

之后就可以使用 add-apt-repository 添加具体的源。比如每次找到 PPA 源时即可:

$ add-apt-repository ppa:nginx/stable
$ add-apt-repository ppa:ondrej/php
$ sudo apt-get update
$ sudo apt-get install nginx php7.0

大功告成。

如果你需要 nginx 的 SPDY 服务,需要再安装额外组件。

$ sudo apt-get install nginx-extras

吐槽一句,这个 launchpad.net 网站在墙外,访问速度不是很理想。

相关文章

网友评论

      本文标题:使用 PPA 源安装 Nginx+PHP7

      本文链接:https://www.haomeiwen.com/subject/dgrqsttx.html