How to use systemctl in Ubuntu 14.04

前端 未结 4 1603
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-31 09:35

I try to perform the following command in Ubuntu 14.04:

systemctl enable --now docker-cleanup-dangling-images.timer

I also tried it with sudo,

4条回答
  •  死守一世寂寞
    2021-01-31 09:58

    I ran across this while on a hunt for answers myself after attempting to follow a guide using pm2. The goal is to automatically start a node.js application on a server. Some guides call out using pm2 startup systemd, which is the path that leads to the question of using systemctl on Ubuntu 14.04. Instead, use pm2 startup ubuntu.

    Source: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04

提交回复
热议问题