Debian9.3-安装 apache2 MariaDB10 PHP7 安装实录

root@debian:~# apt update
忽略:1 cdrom://[Debian GNU/Linux 9.3.0 _Stretch_ – Official amd64 xfce-CD Binary-1 20171209-12:11] stretch InRelease
错误:2 cdrom://[Debian GNU/Linux 9.3.0 _Stretch_ – Official amd64 xfce-CD Binary-1 20171209-12:11] stretch Release
请使用 apt-cdrom,通过它可以让 APT 识别该盘片。apt-get upgdate 不能被用来加入新的盘片。
忽略:3 http://mirrors.163.com/debian stretch InRelease
命中:4 http://security.debian.org/debian-security stretch/updates InRelease
命中:5 http://mirrors.163.com/debian stretch Release
正在读取软件包列表… 完成
E: 仓库 “cdrom://[Debian GNU/Linux 9.3.0 _Stretch_ – Official amd64 xfce-CD Binary-1 20171209-12:11] stretch Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
root@debian:~# ping www.gznet.com
PING www.gznet.com (202.104.94.3) 56(84) bytes of data.
^C
— www.gznet.com ping statistics —
2 packets transmitted, 0 received, 100% packet loss, time 1023ms

root@debian:~# ping www.163.com
PING 163.xdwscache.ourglb0.com (125.90.206.143) 56(84) bytes of data.
64 bytes from 125.90.206.143 (125.90.206.143): icmp_seq=1 ttl=128 time=43.7 ms
64 bytes from 125.90.206.143 (125.90.206.143): icmp_seq=2 ttl=128 time=31.7 ms
^C
— 163.xdwscache.ourglb0.com ping statistics —
2 packets transmitted, 2 received, 0% packet loss, time 1005ms
rtt min/avg/max/mdev = 31.742/37.740/43.738/5.998 ms
root@debian:~# cd /etc/apt/sources.list.d/
root@debian:/etc/apt/sources.list.d# ls

root@debian:/etc/apt/sources.list.d# cd ..
root@debian:/etc/apt# ls
apt.conf.d listchanges.conf preferences.d sources.list sources.list~ sources.list.d trusted.gpg.d
root@debian:/etc/apt# cp sources.list sources.list.bak2018-02-12
root@debian:/etc/apt# more sources.list
#

# deb cdrom:[Debian GNU/Linux 9.3.0 _Stretch_ – Official amd64 xfce-CD Binary-1 20171209-12:11]/ stretch main

deb cdrom:[Debian GNU/Linux 9.3.0 _Stretch_ – Official amd64 xfce-CD Binary-1 20171209-12:11]/ stretch main

deb http://mirrors.163.com/debian/ stretch main
deb-src http://mirrors.163.com/debian/ stretch main

deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main

# stretch-updates, previously known as ‘volatile’
# Line commented out by installer because it failed to verify:
#deb http://mirrors.163.com/debian/ stretch-updates main
# Line commented out by installer because it failed to verify:
#deb-src http://mirrors.163.com/debian/ stretch-updates main
root@debian:/etc/apt#
root@debian:/etc/apt# rm sources.list
root@debian:/etc/apt# touch sources.list
root@debian:/etc/apt# vi sources.list
“sources.list” 9 lines, 448 characters written
root@debian:/etc/apt# aptitude update && aptitude dist-upgrade
-su: aptitude: 未找到命令
root@debian:/etc/apt# apt-get install aptitude
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
将会同时安装下列软件:
aptitude-common libcgi-fast-perl libcgi-pm-perl libclass-accessor-perl libcwidget3v5 libfcgi-perl libio-string-perl libparse-debianchangelog-perl
libsub-name-perl
建议安装:
aptitude-doc-en | aptitude-doc apt-xapian-index debtags libcwidget-dev libhtml-template-perl libxml-simple-perl
下列【新】软件包将被安装:
aptitude aptitude-common libcgi-fast-perl libcgi-pm-perl libclass-accessor-perl libcwidget3v5 libfcgi-perl libio-string-perl libparse-debianchangelog-perl
libsub-name-perl
升级了 0 个软件包,新安装了 10 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 3,765 kB 的归档。
解压缩后会消耗 16.4 MB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://mirrors.163.com/debian stretch/main amd64 aptitude-common all 0.8.7-1 [1,593 kB]
获取:2 http://mirrors.163.com/debian stretch/main amd64 libcwidget3v5 amd64 0.5.17-4+b1 [313 kB]
获取:3 http://mirrors.163.com/debian stretch/main amd64 aptitude amd64 0.8.7-1 [1,478 kB]
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
已下载 3,765 kB,耗时 1秒 (2,313 kB/s)
正在选中未选择的软件包 aptitude-common。
(正在读取数据库 … 系统当前共安装有 127158 个文件和目录。)
正准备解包 …/0-aptitude-common_0.8.7-1_all.deb …
正在解包 aptitude-common (0.8.7-1) …
正在选中未选择的软件包 libcwidget3v5:amd64。
正准备解包 …/1-libcwidget3v5_0.5.17-4+b1_amd64.deb …
正在解包 libcwidget3v5:amd64 (0.5.17-4+b1) …
正在选中未选择的软件包 aptitude。
正准备解包 …/2-aptitude_0.8.7-1_amd64.deb …
正在解包 aptitude (0.8.7-1) …
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
正在设置 aptitude (0.8.7-1) …
update-alternatives: 使用 /usr/bin/aptitude-curses 来在自动模式中提供 /usr/bin/aptitude (aptitude)
正在设置 libcgi-fast-perl (1:2.12-1) …
正在设置 libparse-debianchangelog-perl (1.2.0-12) …
正在处理用于 libc-bin (2.24-11+deb9u1) 的触发器 …
正在处理用于 menu (2.1.47+b1) 的触发器 …
root@debian:/etc/apt# aptitude update && aptitude dist-upgrade
忽略 http://mirrors.163.com/debian stretch InRelease
读取: 1 http://mirrors.163.com/debian stretch-updates InRelease [91.0 kB]
读取: 2 http://download.virtualbox.org/virtualbox/debian stretch InRelease [7,782 B]
错误 http://download.virtualbox.org/virtualbox/debian stretch InRelease
由于没有公钥,无法验证下列签名: NO_PUBKEY A2F683C52980AECF
读取: 3 http://mirrors.163.com/debian-security stretch/updates InRelease [63.0 kB]
命中 http://mirrors.163.com/debian stretch Release
读取: 4 http://mirrors.163.com/debian stretch-updates/main Sources [4,220 B]
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
已下载 1,215 kB,耗时 5秒 (217 kB/s)
W: GPG 错误:http://download.virtualbox.org/virtualbox/debian stretch InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY A2F683C52980AECF
E: 仓库 “http://download.virtualbox.org/virtualbox/debian stretch InRelease” 没有数字签名。
E: Failed to download some files
W: 无法下载 http://download.virtualbox.org/virtualbox/debian/dists/stretch/InRelease:由于没有公钥,无法验证下列签名: NO_PUBKEY A2F683C52980AECF
E: Some index files failed to download. They have been ignored, or old ones used instead.

当前状态:2 (+2) upgradable, 813 (+813) new。
root@debian:/etc/apt# ls
apt.conf.d listchanges.conf preferences.d sources.list sources.list~ sources.list.bak2018-02-12 sources.list.d trusted.gpg.d
root@debian:/etc/apt# vi sources.list
# 163
deb http://mirrors.163.com/debian/ stretch main
deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
deb http://httpredir.debian.org/debian stretch-backports main contrib non-free

~
“sources.list” 7 lines, 366 characters written
root@debian:/etc/apt# aptitude update && aptitude dist-upgrade
忽略 http://mirrors.163.com/debian stretch InRelease
命中 http://mirrors.163.com/debian stretch-updates InRelease
命中 http://mirrors.163.com/debian-security stretch/updates InRelease
命中 http://mirrors.163.com/debian stretch Release
命中 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease

下列“新”软件包将被安装。
firmware-linux-free{a} irqbalance{a} linux-image-4.9.0-5-amd64{a}
下列软件包将被升级:
linux-image-amd64 tzdata
2 个软件包被升级,新安装 3 个,0 个将被删除, 同时 0 个将不升级。
需要获取 39.1 MB 的存档。解包后将要使用 190 MB。
您要继续吗?[Y/n/?] y
读取: 1 http://mirrors.163.com/debian stretch-updates/main amd64 tzdata all 2018c-0+deb9u1 [264 kB]
读取: 2 http://mirrors.163.com/debian stretch/main amd64 firmware-linux-free all 3.4 [19.2 kB]
读取: 3 http://mirrors.163.com/debian-security stretch/updates/main amd64 linux-image-4.9.0-5-amd64 amd64 4.9.65-3+deb9u2 [38.8 MB]
读取: 4 http://mirrors.163.com/debian-security stretch/updates/main amd64 linux-image-amd64 amd64 4.9+80+deb9u3 [6,994 B]
读取: 5 http://mirrors.163.com/debian stretch/main amd64 irqbalance amd64 1.1.0-2.3 [40.4 kB]
已下载 39.1 MB,耗时 8秒 (4,641 kB/s)
读取变更记录(changelogs)… 完成
正在预设定软件包 …
(正在读取数据库 … 系统当前共安装有 127490 个文件和目录。)
正准备解包 …/tzdata_2018c-0+deb9u1_all.deb …
正在将 tzdata (2018c-0+deb9u1) 解包到 (2017c-0+deb9u1) 上 …
正在选中未选择的软件包 firmware-linux-free。
正准备解包 …/firmware-linux-free_3.4_all.deb …
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

Current default time zone: ‘Asia/Shanghai’
Local time is now: Mon Feb 12 10:53:04 CST 2018.
Universal Time is now: Mon Feb 12 02:53:04 UTC 2018.
Run ‘dpkg-reconfigure tzdata’ if you wish to change it.

正在设置 linux-image-4.9.0-5-amd64 (4.9.65-3+deb9u2) …
I: /vmlinuz is now a symlink to boot/vmlinuz-4.9.0-5-amd64
I: /initrd.img is now a symlink to boot/initrd.img-4.9.0-5-amd64
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.9.0-5-amd64
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file …
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-4.9.0-5-amd64
Found initrd image: /boot/initrd.img-4.9.0-5-amd64
Found linux image: /boot/vmlinuz-4.9.0-4-amd64
Found initrd image: /boot/initrd.img-4.9.0-4-amd64
done
正在设置 linux-image-amd64 (4.9+80+deb9u3) …
正在处理用于 systemd (232-25+deb9u1) 的触发器 …
正在设置 firmware-linux-free (3.4) …
update-initramfs: deferring update (trigger activated)
正在处理用于 man-db (2.7.6.1-2) 的触发器 …
正在设置 irqbalance (1.1.0-2.3) …
正在处理用于 initramfs-tools (0.130) 的触发器 …
update-initramfs: Generating /boot/initrd.img-4.9.0-5-amd64
正在处理用于 systemd (232-25+deb9u1) 的触发器 …

当前状态:0 (-2) upgradable。
root@debian:/etc/apt# apt install apache2
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
将会同时安装下列软件:
apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
建议安装:
apache2-doc apache2-suexec-pristine | apache2-suexec-custom
下列【新】软件包将被安装:
apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
升级了 0 个软件包,新安装了 8 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 2,013 kB 的归档。
解压缩后会消耗 6,638 kB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://mirrors.163.com/debian stretch/main amd64 libapr1 amd64 1.5.2-5 [96.6 kB]
获取:2 http://mirrors.163.com/debian stretch/main amd64 libaprutil1 amd64 1.5.4-3 [85.8 kB]
获取:3 http://mirrors.163.com/debian stretch/main amd64 libaprutil1-dbd-sqlite3 amd64 1.5.4-3 [19.3 kB]
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
已下载 2,013 kB,耗时 1秒 (1,413 kB/s)

正在选中未选择的软件包 libapr1:amd64。
(正在读取数据库 … 系统当前共安装有 131760 个文件和目录。)
正准备解包 …/0-libapr1_1.5.2-5_amd64.deb …
正在解包 libapr1:amd64 (1.5.2-5) …
正在选中未选择的软件包 libaprutil1:amd64。
正准备解包 …/1-libaprutil1_1.5.4-3_amd64.deb …
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
正在设置 apache2-bin (2.4.25-3+deb9u3) …
正在设置 apache2 (2.4.25-3+deb9u3) …
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
Enabling conf serve-cgi-bin.
Enabling site 000-default.
Created symlink /etc/systemd/system/multi-user.target.wants/apache2.service → /lib/systemd/system/apache2.service.
Created symlink /etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service → /lib/systemd/system/apache-htcacheclean.service.
正在处理用于 libc-bin (2.24-11+deb9u1) 的触发器 …
正在处理用于 systemd (232-25+deb9u1) 的触发器 …

root@debian:/etc/apt# apt install mariadb-server
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
将会同时安装下列软件:
galera-3 gawk libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libjemalloc1 libreadline5 libsigsegv2 libterm-readkey-perl mariadb-client-10.1
mariadb-client-core-10.1 mariadb-common mariadb-server-10.1 mariadb-server-core-10.1 rsync socat
建议安装:
gawk-doc libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl libipc-sharedcache-perl mariadb-test netcat-openbsd tinyca
下列【新】软件包将被安装:
galera-3 gawk libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libjemalloc1 libreadline5 libsigsegv2 libterm-readkey-perl mariadb-client-10.1
mariadb-client-core-10.1 mariadb-common mariadb-server mariadb-server-10.1 mariadb-server-core-10.1 rsync socat
升级了 0 个软件包,新安装了 18 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 24.9 MB 的归档。
解压缩后会消耗 187 MB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://mirrors.163.com/debian stretch/main amd64 libsigsegv2 amd64 2.10-5 [28.9 kB]
获取:2 http://mirrors.163.com/debian stretch/main amd64 gawk amd64 1:4.1.4+dfsg-1 [571 kB]
获取:3 http://mirrors.163.com/debian stretch/main amd64 mariadb-common all 10.1.26-0+deb9u1 [27.3 kB]
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
已下载 24.9 MB,耗时 5秒 (4,362 kB/s)
正在预设定软件包 …

正在选中未选择的软件包 libsigsegv2:amd64。
(正在读取数据库 … 系统当前共安装有 132452 个文件和目录。)
正准备解包 …/libsigsegv2_2.10-5_amd64.deb …
正在解包 libsigsegv2:amd64 (2.10-5) …
正在设置 libsigsegv2:amd64 (2.10-5) …
正在选中未选择的软件包 gawk。
(正在读取数据库 … 系统当前共安装有 132462 个文件和目录。)
正准备解包 …/00-gawk_1%3a4.1.4+dfsg-1_amd64.deb …
正在解包 gawk (1:4.1.4+dfsg-1) …
正在选中未选择的软件包 mariadb-common。
正准备解包 …/01-mariadb-common_10.1.26-0+deb9u1_all.deb …
正在解包 mariadb-common (10.1.26-0+deb9u1) …
正在选中未选择的软件包 galera-3。
正准备解包 …/02-galera-3_25.3.19-2_amd64.deb …
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
正在设置 mariadb-common (10.1.26-0+deb9u1) …
update-alternatives: 使用 /etc/mysql/mariadb.cnf 来在自动模式中提供 /etc/mysql/my.cnf (my.cnf)
正在选中未选择的软件包 mariadb-server-10.1。
(正在读取数据库 … 系统当前共安装有 133031 个文件和目录。)
正准备解包 …/mariadb-server-10.1_10.1.26-0+deb9u1_amd64.deb …
正在解包 mariadb-server-10.1 (10.1.26-0+deb9u1) …
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
正在设置 rsync (3.1.2-1+deb9u1) …
Created symlink /etc/systemd/system/multi-user.target.wants/rsync.service → /lib/systemd/system/rsync.service.
正在处理用于 libc-bin (2.24-11+deb9u1) 的触发器 …
正在设置 libaio1:amd64 (0.3.110-3) …
正在设置 galera-3 (25.3.19-2) …
正在处理用于 systemd (232-25+deb9u1) 的触发器 …
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
正在设置 mariadb-client-10.1 (10.1.26-0+deb9u1) …
正在设置 mariadb-server-10.1 (10.1.26-0+deb9u1) …
Created symlink /etc/systemd/system/mysql.service → /lib/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/mysqld.service → /lib/systemd/system/mariadb.service.
Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → /lib/systemd/system/mariadb.service.
正在设置 mariadb-server (10.1.26-0+deb9u1) …
正在处理用于 libc-bin (2.24-11+deb9u1) 的触发器 …
正在处理用于 menu (2.1.47+b1) 的触发器 …
正在处理用于 systemd (232-25+deb9u1) 的触发器 …

root@debian:/etc/apt# apt install php7.0 libapache2-mod-php7.0 php7.0-mysql php7.0-gd php7.0-opcache
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
将会同时安装下列软件:
php-common php7.0-cli php7.0-common php7.0-json php7.0-readline
建议安装:
php-pear
下列【新】软件包将被安装:
libapache2-mod-php7.0 php-common php7.0 php7.0-cli php7.0-common php7.0-gd php7.0-json php7.0-mysql php7.0-opcache php7.0-readline
升级了 0 个软件包,新安装了 10 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 3,711 kB 的归档。
解压缩后会消耗 14.6 MB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://mirrors.163.com/debian stretch/main amd64 php-common all 1:49 [14.1 kB]
获取:2 http://mirrors.163.com/debian-security stretch/updates/main amd64 php7.0-common amd64 7.0.27-0+deb9u1 [877 kB]
获取:3 http://mirrors.163.com/debian-security stretch/updates/main amd64 php7.0-json amd64 7.0.27-0+deb9u1 [17.0 kB]
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
已下载 3,711 kB,耗时 1秒 (2,616 kB/s)

正在选中未选择的软件包 php-common。
(正在读取数据库 … 系统当前共安装有 133203 个文件和目录。)
正准备解包 …/0-php-common_1%3a49_all.deb …
正在解包 php-common (1:49) …
正在选中未选择的软件包 php7.0-common。
正准备解包 …/1-php7.0-common_7.0.27-0+deb9u1_amd64.deb …
正在解包 php7.0-common (7.0.27-0+deb9u1) …
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
正在设置 php-common (1:49) …
Created symlink /etc/systemd/system/timers.target.wants/phpsessionclean.timer → /lib/systemd/system/phpsessionclean.timer.
正在处理用于 man-db (2.7.6.1-2) 的触发器 …
正在设置 php7.0-common (7.0.27-0+deb9u1) …

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/tokenizer.ini with new version
正在设置 php7.0-mysql (7.0.27-0+deb9u1) …

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

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

。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

Creating config file /etc/php/7.0/mods-available/json.ini with new version
正在设置 php7.0-cli (7.0.27-0+deb9u1) …
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
正在设置 libapache2-mod-php7.0 (7.0.27-0+deb9u1) …

Creating config file /etc/php/7.0/apache2/php.ini with new version
Module mpm_event disabled.
Enabling module mpm_prefork.
apache2_switch_mpm Switch to prefork
apache2_invoke: Enable module php7.0
正在设置 php7.0 (7.0.27-0+deb9u1) …

root@debian:/etc/apt# apt install phpmysqladmin
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
E: 无法定位软件包 phpmysqladmin
root@debian:/etc/apt# apt-get install phpmyadmin
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
将会同时安装下列软件:
dbconfig-common dbconfig-mysql libcurl3 libzip4 php-bz2 php-curl php-mbstring php-mysql php-pear php-php-gettext php-phpseclib php-tcpdf php-xml php-zip
php7.0-bz2 php7.0-curl php7.0-mbstring php7.0-xml php7.0-zip
建议安装:
php-libsodium php-mcrypt php-gmp php5-imagick
推荐安装:
php5-gd php5-mcrypt
下列【新】软件包将被安装:
dbconfig-common dbconfig-mysql libcurl3 libzip4 php-bz2 php-curl php-mbstring php-mysql php-pear php-php-gettext php-phpseclib php-tcpdf php-xml php-zip
php7.0-bz2 php7.0-curl php7.0-mbstring php7.0-xml php7.0-zip phpmyadmin
升级了 0 个软件包,新安装了 20 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 13.9 MB 的归档。
解压缩后会消耗 53.0 MB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://mirrors.163.com/debian stretch/main amd64 dbconfig-common all 2.0.8 [617 kB]
获取:2 http://mirrors.163.com/debian stretch/main amd64 dbconfig-mysql all 2.0.8 [996 B]
获取:3 http://mirrors.163.com/debian-security stretch/updates/main amd64 libcurl3 amd64 7.52.1-5+deb9u4 [291 kB]
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
获取:19 http://mirrors.163.com/debian stretch/main amd64 php-zip all 1:7.0+49 [5,044 B]
获取:20 http://mirrors.163.com/debian stretch/main amd64 phpmyadmin all 4:4.6.6-4 [3,911 kB]
已下载 13.9 MB,耗时 9秒 (1,446 kB/s)
正在预设定软件包 …
正在选中未选择的软件包 dbconfig-common。
(正在读取数据库 … 系统当前共安装有 133363 个文件和目录。)
正准备解包 …/00-dbconfig-common_2.0.8_all.deb …
正在解包 dbconfig-common (2.0.8) …
正在选中未选择的软件包 dbconfig-mysql。
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
正在设置 php-phpseclib (2.0.4-1) …
正在设置 php7.0-mbstring (7.0.27-0+deb9u1) …

Creating config file /etc/php/7.0/mods-available/mbstring.ini with new version
正在设置 libcurl3:amd64 (7.52.1-5+deb9u4) …
正在处理用于 libapache2-mod-php7.0 (7.0.27-0+deb9u1) 的触发器 …
正在设置 php7.0-curl (7.0.27-0+deb9u1) …

。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
dbconfig-common: flushing administrative password
正在处理用于 libapache2-mod-php7.0 (7.0.27-0+deb9u1) 的触发器 …
root@debian:/etc/apt# ls /var/www/html
index.html
root@debian:/etc/apt# ls /var/www
html
root@debian:/etc/apt# ls
apt.conf.d listchanges.conf preferences.d sources.list sources.list~ sources.list.bak2018-02-12 sources.list.d trusted.gpg.d
root@debian:/etc/apt# systemctl restart apache2
root@debian:/etc/apt# netstat -na | grep 80
tcp6 0 0 :::80 :::* LISTEN
unix 3 [ ] STREAM CONNECTED 16380 /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTED 18000
unix 3 [ ] STREAM CONNECTED 18280 /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTED 18003 @/tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 28805 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 18072
unix 3 [ ] STREAM CONNECTED 16805
unix 3 [ ] STREAM CONNECTED 17280
unix 3 [ ] STREAM CONNECTED 18001 @/tmp/dbus-9MRo1QOiCm
unix 3 [ ] STREAM CONNECTED 18004
unix 3 [ ] STREAM CONNECTED 18002 /run/user/0/bus
unix 3 [ ] STREAM CONNECTED 18805 /run/user/0/bus
unix 3 [ ] DGRAM 12080
unix 3 [ ] STREAM CONNECTED 18807 @/tmp/dbus-oY3lLOmAqY
root@debian:/etc/apt# systemctl restart mariadb

以下文章点击率最高

Loading…

     

如果这文章对你有帮助,请扫左上角微信支付-支付宝,给于打赏,以助博客运营