十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
公司主营业务:做网站、网站建设、移动网站开发等业务。帮助企业客户真正实现互联网宣传,提高企业的竞争能力。创新互联公司是一支青春激扬、勤奋敬业、活力青春激扬、勤奋敬业、活力澎湃、和谐高效的团队。公司秉承以“开放、自由、严谨、自律”为核心的企业文化,感谢他们对我们的高要求,感谢他们从不同领域给我们带来的挑战,让我们激情的团队有机会用头脑与智慧不断的给客户带来惊喜。创新互联公司推出江南免费做网站回馈大家。
cp /etc/logstash/conf.d/*.conf /bak
service stop logstash
dpkg -P logstash
rm /usr/share/logstash
rm /etc/logstash
rm /var/lib/logstash
rm /var/log/logstash
wget https://artifacts.elastic.co/downloads/logstash/logstash-5.3.1.zip
unzip logstash-5.3.1.zip -d /data/software/
ln -sv logstash-5.3.1 logstash
cd logstash
vim config/logstash.yml
pipeline.workers: 8
pipeline.output.workers: 8
pipeline.batch.size: 10000
pipeline.batch.delay: 10
vim config/jvm.options
-Xms2g
-Xmx2g
mkdir conf.d
touch conf.d/index.conf # 业务配置文件
mkdir data/data{1,2,3,4,5}
mkdir logs/log{1,2,3,4,5}
useradd elk
chown -R elk.elk data/
chown -R elk.elk logs/
pip install supervisor
mkdir /etc/supervisor
cat >> supervisord.conf <
cd /etc/supervisor
mkdir conf.d/
mkdir /var/log/supervisor
mkdir /data/logs/supervisord/
cd conf.d/
cat >> logstash2.conf <
supervisord -c /etc/supervisor/supervisord.conf
supervisorctl -c /etc/supervisor/supervisord.conf
supervisor 更改配置文件,必须要重启整个supervisor进场才能生效
supervisorctl -c /etc/supervisor/supervisord.conf shutdown
supervisord -c /etc/supervisor/supervisord.conf