docs/以服务方式启动
阅读约 3 分钟

以服务方式启动

安装 Fast-Https v1.6.0 服务端 .deb 包时,系统会同时安装 fast-https.service 单元。下载和安装步骤见 Ubuntu 安装与部署。

启动与开机自启

立即启动服务。

sudo systemctl start fast-https.service

立即启动并设置开机自启。

sudo systemctl enable --now fast-https.service

重启与停止

修改配置后,重启服务使配置生效。

sudo systemctl restart fast-https.service

需要停止服务并取消开机自启时,执行以下命令。

sudo systemctl disable --now fast-https.service

查看状态与日志

systemctl status fast-https.service --no-pager
sudo journalctl -u fast-https.service -n 30 --no-pager