Debian 11 ,已经更新到最新
写法 1:apt install -y php php-fpm ...... The following additional packages will be installed: libsodium23 php-common php7.4 php7.4-cli php7.4-common php7.4-fpm php7.4-json php7.4-opcache php7.4-readline psmisc Suggested packages: php-pear The following NEW packages will be installed: libsodium23 php php-common php-fpm php7.4 php7.4-cli php7.4-common php7.4-fpm php7.4-json php7.4-opcache php7.4-readline psmisc 0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
对比写法 2:apt install -y php ...... The following additional packages will be installed: apache2 apache2-bin apache2-data apache2-utils libapache2-mod-php7.4 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.3-0 libsodium23 php-common php7.4 php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline psmisc ssl-cert Suggested packages: apache2-doc apache2-suexec-pristine | apache2-suexec-custom php-pear The following NEW packages will be installed: apache2 apache2-bin apache2-data apache2-utils libapache2-mod-php7.4 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.3-0 libsodium23 php php-common php7.4 php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline psmisc ssl-cert 0 upgraded, 21 newly installed, 0 to remove and 0 not upgraded.
我觉得奇怪的是:
写法 1 apt install -y php php-fpm ,不会安装 apache2.
而写法 2 apt install -y php 则会安装 apache2.
难道
apt install -y php php-fpm
不等于
apt install -y php + apt install -y php-fpm
?
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.