[GH-ISSUE #941] [Bug] systemd启动会尝试绑定443端口 #643

Closed
opened 2026-03-03 01:04:54 +03:00 by kerem · 0 comments
Owner

Originally created by @12189108 on GitHub (Aug 31, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/941

软件版本 / Release Version

v0.3.26

缺陷描述 / Description

按照教程,添加服务文件:

[Unit]
Description=Certimate
After=network.target

[Service]
# 请将以下路径替换为你的实际安装路径
WorkingDirectory=/opt/certimate
ExecStart=/opt/certimate/certimate serve --http "127.0.0.1:8090" 
Restart=on-failure
User=root
PrivateTmp=true
[Install]
WantedBy=multi-user.target

启动时会一直尝试绑定443端口与nginx冲突,无法启动,但在终端启动不会去绑定443

复现步骤 / Steps to reproduce

按照缺陷描述进行,可以复现

日志 / Logs

Aug 31 18:19:06 host-172-31-11-61 systemd[1]: Started certimate.service - Certimate.
Aug 31 18:19:06 host-172-31-11-61 certimate[4560]: 2025/08/31 18:19:06 INFO [CERTIMATE] Visit the website: http://127.0.0.1:8090
Aug 31 18:19:06 host-172-31-11-61 certimate[4560]: Error: listen tcp 0.0.0.0:443: bind: address already in use
Aug 31 18:19:06 host-172-31-11-61 systemd[1]: certimate.service: Deactivated successfully.

其他 / Miscellaneous

No response

贡献 / Contribution

  • 我乐意为此贡献 PR! / I am interested in contributing a PR for this!
Originally created by @12189108 on GitHub (Aug 31, 2025). Original GitHub issue: https://github.com/certimate-go/certimate/issues/941 ### 软件版本 / Release Version v0.3.26 ### 缺陷描述 / Description 按照教程,添加服务文件: ``` [Unit] Description=Certimate After=network.target [Service] # 请将以下路径替换为你的实际安装路径 WorkingDirectory=/opt/certimate ExecStart=/opt/certimate/certimate serve --http "127.0.0.1:8090" Restart=on-failure User=root PrivateTmp=true [Install] WantedBy=multi-user.target ``` 启动时会一直尝试绑定443端口与nginx冲突,无法启动,但在终端启动不会去绑定443 ### 复现步骤 / Steps to reproduce 按照缺陷描述进行,可以复现 ### 日志 / Logs ```console Aug 31 18:19:06 host-172-31-11-61 systemd[1]: Started certimate.service - Certimate. Aug 31 18:19:06 host-172-31-11-61 certimate[4560]: 2025/08/31 18:19:06 INFO [CERTIMATE] Visit the website: http://127.0.0.1:8090 Aug 31 18:19:06 host-172-31-11-61 certimate[4560]: Error: listen tcp 0.0.0.0:443: bind: address already in use Aug 31 18:19:06 host-172-31-11-61 systemd[1]: certimate.service: Deactivated successfully. ``` ### 其他 / Miscellaneous _No response_ ### 贡献 / Contribution - [ ] 我乐意为此贡献 PR! / I am interested in contributing a PR for this!
kerem 2026-03-03 01:04:54 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/certimate#643
No description provided.