小编Vel*_*kan的帖子

如何使用 systemd-firstboot.service?

我正在制作 Debian Jessie 的图像。启动时系统没有/etc/machine-id文件。这会导致无法启动的日志出现一些问题。

我在 systemd 仓库中发现:

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

[Unit]
Description=First Boot Wizard
Documentation=man:systemd-firstboot(1)
DefaultDependencies=no
Conflicts=shutdown.target
After=systemd-remount-fs.service
Before=systemd-sysusers.service sysinit.target shutdown.target
ConditionPathIsReadWrite=/etc
ConditionFirstBoot=yes

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=@rootbindir@/systemd-firstboot --prompt-locale …
Run Code Online (Sandbox Code Playgroud)

linux boot systemd

11
推荐指数
1
解决办法
6270
查看次数

尝试代理 HTTPS,但得到:收到意外的 TLS 数据包

一个端口 (5006) 上有一个 HTTPS 服务器。我想,使其可在35001和(通过添加位置,例如服务于相同的35001太其他的事情/app/auth/admin,等)。

服务器是auth-server.org.local. 尝试只添加一个端口:

server {
    listen 35001;
    location / {
        proxy_pass       https://auth-server.org.local:5006;
    }
}
Run Code Online (Sandbox Code Playgroud)

输出:

$ curl -k -X GET https://auth-server.org.local:5006
<h1>My auth server</h1>

$ curl -k -X GET https://auth-server.org.local:35001
curl: (35) gnutls_handshake() failed: An unexpected TLS packet was received.
Run Code Online (Sandbox Code Playgroud)

为什么 35001 不起作用?我错过了什么?我使用过本指南:https : //www.nginx.com/resources/admin-guide/nginx-https-upstreams/

nginx

4
推荐指数
1
解决办法
8717
查看次数

标签 统计

boot ×1

linux ×1

nginx ×1

systemd ×1