システムユーザーインスタンスを起動できません。

システムユーザーインスタンスを起動できません。

私はCentOS 7を使用しており、ローカルユーザー用のシステムサービスを作成しようとしています。ただし、これを行う前にsystemdユーザーインスタンスが必要ですが、それを見つけるか作成することはできません。

走ってsystemctl --userくれた

Failed to issue method call: Process /bin/false exited with status 1

実行(ここで1000はコマンドが提供したIDです)systemctl status [email protected]id

[email protected]
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

自分のシステムユーザーインスタンスをどのように検索または作成しますか?

ベストアンサー1

実行したサービスを開始するには(停止した場合)、ユーザーrootをそのユーザーに置き換えて実行してみてください。systemctl status [email protected]systemctl start [email protected]

おすすめ記事