惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
J
Java Code Geeks
雷峰网
雷峰网
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
V
Vulnerabilities – Threatpost
S
Securelist
The Hacker News
The Hacker News
The Register - Security
The Register - Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Help Net Security
Help Net Security
G
Google Developers Blog
Hugging Face - Blog
Hugging Face - Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
M
MIT News - Artificial intelligence
AI
AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The GitHub Blog
The GitHub Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Schneier on Security
Schneier on Security
N
Netflix TechBlog - Medium
T
The Blog of Author Tim Ferriss
Google DeepMind News
Google DeepMind News
Hacker News - Newest:
Hacker News - Newest: "LLM"
H
Hacker News: Front Page
博客园 - 司徒正美
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
B
Blog
Microsoft Azure Blog
Microsoft Azure Blog
大猫的无限游戏
大猫的无限游戏
Security Latest
Security Latest
Engineering at Meta
Engineering at Meta
N
News and Events Feed by Topic
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Threat Research - Cisco Blogs
U
Unit 42
V
V2EX
V2EX - 技术
V2EX - 技术
L
LINUX DO - 最新话题
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
Recorded Future
Recorded Future
P
Privacy & Cybersecurity Law Blog
美团技术团队
小众软件
小众软件
F
Fortinet All Blogs

冰雪殇璃陌梦の小站

冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站 冰雪殇璃陌梦の小站
冰雪殇璃陌梦の小站
冰雪殇璃陌梦 · 2022-10-26 · via 冰雪殇璃陌梦の小站

众所周知,Debian官方的包存储库向来比较保守,众多软件的版本都比较老旧.
例如都 Debian11 了,PHP8也发布两年了,PHP 版本还是和 10 一样的7.4(っ °Д °;)っ
随着越来越多的主流程序支持乃至推荐使用 php8,旧版本愈发难以满足我们的需求.

有人会说,你自己编译安装新版本不就行了吗,按着官方文档一步步做又不难?
但是,我懒啊(理直气壮ヾ(•ω•`)o
apt 多方便?装扩展,升级新版本都是一条命令搞定,不用老是重新下源码再编译.
有没有什么办法呢?
前段时间在意外看到了 Debian 官方源中 PHP 的维护者Ondřej Surý的项目DEB.SURY.ORG,里面有适用于历代Debian/Ubuntu的各个版本的 PHP 的软件包,包括最新的8.0/8.1φ(゜ ▽ ゜*)♪

简介

使用

添加存储库:

  • Debian

    curl -sSL https://packages.sury.org/php/README.txt | sudo bash -x
    sudo apt update
  • Ubuntu

    sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
    sudo apt update

    然后apt upgrade就可以平滑升级到 php8 啦ヾ(≧▽≦*)o

注意事项

升级到新的大版本后,默认的配置文件路径会改变!一定要记得把配置文件移过去 (掉线数小时的教训)
例如:
7.4版本的配置文件路径:/etc/php/7.4/
8.1版本的配置文件路径:/etc/php/8.1/