我尝试启动我的新服务:
/etc/systemd/system/myservice.service
[Unit]
Description=My Desc...
After=network.target
[Service]
User=webXX
Group=clientXX
ExecStart=/var/www/xxx/xxx/xxx/golang-binay /var/www/xxx/xxx/xxx/.env
Restart=always
[Install]
WantedBy=multi-user.target
我这样 做了systemctl daemon-reload
,但是在尝试启动后出现错误:systemctl enable myservice
systemctl start myservice
Failed to start myservice.service: Unknown unit: myservice.service
See system logs and 'systemctl status myservice.service' for details.
如果我获得状态,我会收到此消息Failed to get properties: No such interface ''