From d7645045138c0a8558cc51f111244728bd9299b4 Mon Sep 17 00:00:00 2001 From: X Date: Tue, 29 Apr 2025 02:46:01 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E8=BF=90=E7=BB=B4?= =?UTF-8?q?=E7=9B=91=E6=8E=A7=E7=B3=BB=E7=BB=9F=E9=83=A8=E7=BD=B2=EF=BC=9A?= =?UTF-8?q?Nightingale?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...B%9F%E9%83%A8%E7%BD%B2%EF%BC%9ANightingale.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/%E8%BF%90%E7%BB%B4%E7%9B%91%E6%8E%A7%E7%B3%BB%E7%BB%9F%E9%83%A8%E7%BD%B2%EF%BC%9ANightingale.md b/%E8%BF%90%E7%BB%B4%E7%9B%91%E6%8E%A7%E7%B3%BB%E7%BB%9F%E9%83%A8%E7%BD%B2%EF%BC%9ANightingale.md index f22c60e..77387e5 100644 --- a/%E8%BF%90%E7%BB%B4%E7%9B%91%E6%8E%A7%E7%B3%BB%E7%BB%9F%E9%83%A8%E7%BD%B2%EF%BC%9ANightingale.md +++ b/%E8%BF%90%E7%BB%B4%E7%9B%91%E6%8E%A7%E7%B3%BB%E7%BB%9F%E9%83%A8%E7%BD%B2%EF%BC%9ANightingale.md @@ -39,5 +39,21 @@ cd /opt/n9e mysql -uroot -p < n9e.sql ``` +- 创建服务:`vi /etc/systemd/system/n9e.service` +``` +[Unit] +Description=Nightingale Service +After=network.target + +[Service] +Type=simple +ExecStart=/opt/n9e/n9e --configs /opt/n9e/etc +WorkingDirectory=/opt/n9e/ +Restart=on-failure + +[Install] +WantedBy=multi-user.target + +``` # 三、时序数据库部署与对接 # 四、采集器Agent部署 \ No newline at end of file