$ sudo systemctl enable hexo Created symlink from /etc/systemd/system/multi-user.target.wants/hexo.service to /etc/systemd/system/hexo.service. $ $ sudo systemctl start hexo Failed to start hexo.service: Unit is not loaded properly: Invalid argument. See system logs and 'systemctl status hexo.service' for details.
起動に失敗しました。See system logs and 'systemctl status hexo.service' for details.と書いてあるので言われた通りにやってみます。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
$ sudo systemctl status hexo.service ● hexo.service - hexo Loaded: error (Reason: Invalid argument) Active: failed (Result: start-limit) since 水 2019-06-26 20:40:03 JST; 10 months 10 days ago Main PID: 13043 (code=exited, status=2)
May 7 01:04:35 ip-172-31-43-237 systemd: [/etc/systemd/system/hexo.service:7] Executable path is not absolute, ignoring: sudo /home/ec2-user/.anyenv/envs/nodenv/shims/hexo server -p 8080