39 lines
624 B
Markdown
39 lines
624 B
Markdown
|
Filebeat 재배포
|
||
|
|
||
|
```bash
|
||
|
|
||
|
systemctl stop filebeat.service &&
|
||
|
systemctl disable filebeat.service &&
|
||
|
rm -f /usr/lib/systemd/system/filebeat.service &&
|
||
|
systemctl daemon-reload &&
|
||
|
systemctl reset-failed &&
|
||
|
ps -ef | grep filebeat
|
||
|
|
||
|
|
||
|
|
||
|
cd /home/gmt/app &&
|
||
|
rm -rf filebeat &&
|
||
|
tar -xvf filebeat.tar &&
|
||
|
rm -f filebeat.tar &&
|
||
|
cd filebeat $$
|
||
|
chmod -R 755 /home/gmt/app/filebeat &&
|
||
|
chown -R gmt:gmt /home/gmt/app/filebeat &&
|
||
|
sh /home/gmt/app/filebeat/filebeat_service_reg/service_reg.sh &&
|
||
|
ll
|
||
|
|
||
|
|
||
|
nano /etc/sudoers
|
||
|
|
||
|
gmt ALL=(ALL) ALL
|
||
|
|
||
|
tss_fusion
|
||
|
tss_asde
|
||
|
tss_ana
|
||
|
tss_ai_location
|
||
|
|
||
|
|
||
|
|
||
|
cd /home/gmt/app/filebeat/ && ./start.sh
|
||
|
|
||
|
|
||
|
```
|