Ubuntu용 부팅으로 NATS를 설치했습니다. Ubuntu 16.04에서 NATS를 설치하고 구성하는 방법
Fedora 27에서 이와 동일한 지시어를 사용했는데 작동 중입니다.
하지만 nats.service 파일은 Fedora 29에서 작동하지 않습니다.
/etc/systemd/system/nats.service
[Unit]
Description=NATS messaging server
[Service]
ExecStart=/srv/nats/bin/gnatsd -c /srv/nats/gnatsd.config
User=nats
Restart=on-failure
[Install]
WantedBy=multi-user.target
내가 sudo systemctl start nats
그랬고sudo systemctl status nats
그것은 보여주고있다
● nats.service - NATS messaging server
Loaded: loaded (/etc/systemd/system/nats.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2019-02-17 16:28:54 +0530; 1s ago
Process: 6664 ExecStart=/srv/nats/bin/gnatsd -c /srv/nats/gnatsd.config (code=exited, status=203/EXEC)
Main PID: 6664 (code=exited, status=203/EXEC)
Feb 17 16:28:54 localhost.localdomain systemd[1]: nats.service: Service RestartSec=100ms expired, scheduling restart.
Feb 17 16:28:54 localhost.localdomain systemd[1]: nats.service: Scheduled restart job, restart counter is at 5.
Feb 17 16:28:54 localhost.localdomain systemd[1]: Stopped NATS messaging server.
Feb 17 16:28:54 localhost.localdomain systemd[1]: nats.service: Start request repeated too quickly.
Feb 17 16:28:54 localhost.localdomain systemd[1]: nats.service: Failed with result 'exit-code'.
Feb 17 16:28:54 localhost.localdomain systemd[1]: Failed to start NATS messaging server.
하지만 /srv/nats/bin/gnatsd -c /srv/nats/gnatsd.config
잘 작동합니다.