当前位置:网站首页>One click installation script enables rapid deployment of graylog server 4.2.10 stand-alone version
One click installation script enables rapid deployment of graylog server 4.2.10 stand-alone version
2022-07-05 16:10:00 【yuanfan2012】
One click installation script enables rapid deployment GrayLog Server 4.2.10 Stand-alone version
Due to local point ( branch ) More , For rapid deployment GrayLog Stand-alone version
So I simply sorted it out GrayLog Installation step script , To achieve one click installation GrayLog Server 4.2.10 Stand-alone version
Just upload GraylogServer4.2.10_install.tar.gz and GrayLogServer_install.sh Install the script and execute the one click installation script to complete GrayLog Server 4.2.10 Stand alone installation
( Click to enlarge the picture )
The download links of the installation package and script are as follows
link :https://share.weiyun.com/MySqbCkG password :295bcq
explain :
1、GraylogServer4.2.10_install.tar.gz In Chinese, it means GrayLogServer Required for installation JDK+pwgen+MongoDB+elasticsearch+graylog-server Of RPM package Use createrepo Package and make it locally yum Source to realize offline yum install
( Click to enlarge the picture )
2、 The recommended resource allocation is as follows
operating system :CentOS7.9
CPU 8 nucleus
Memory recommendations 8GB Above memory
Disk size : It is suggested that a separate data disk , And mount /data Catalog
3、 among ES and MongoDB No encryption authentication , Because only monitor locally 127.0.0.1 non-exposure , If safety reinforcement is required , Please configure yourself
GrayLogServer_install.sh Script
The script is as follows
#!/bin/bash
# close SELINUX
sed -i 's/enforcing/disabled/g' /etc/selinux/config
setenforce 0
# Unzip the installation package
tar -zxvf GraylogServer4.2.10_install.tar.gz -C /opt/
mkdir /opt/yum_repo_backup
mv /etc/yum.repos.d/CentOS*.repo /opt/yum_repo_backup
cp /opt/graylog_local.repo /etc/yum.repos.d/
echo "priority=1" >> /etc/yum.repos.d/graylog_local.repo
# install JDK+pwgen
yum install -y java-1.8.0-openjdk-headless.x86_64
yum install -y pwgen
cp /opt/yum_repo_backup/CentOS*.repo /etc/yum.repos.d/
# install mongodb-server service
yum install -y mongodb-org
# start-up mongodb-server service
systemctl daemon-reload
systemctl enable mongod.service
systemctl start mongod.service
systemctl --type=service --state=active | grep mongod
firewall-cmd --add-port=27017/tcp --permanent --zone=public
firewall-cmd --reload
# install elasticsearch
yum install elasticsearch -y
# Create a separate directory to store elasticsearch data
mkdir -p /data/elasticsearch/data
mkdir -p /data/elasticsearch/logs
chown -R elasticsearch:elasticsearch /data/elasticsearch
cp /etc/elasticsearch/elasticsearch.yml /etc/elasticsearch/elasticsearch.yml_default
# modify elasticsearch Related configuration files
sed -i "[email protected]#cluster.name: [email protected]: [email protected]" /etc/elasticsearch/elasticsearch.yml
sed -i "s#path.data: /var/lib/elasticsearch#path.data: /data/elasticsearch/data#g" /etc/elasticsearch/elasticsearch.yml
sed -i "s#path.logs: /var/log/elasticsearch#path.logs: /data/elasticsearch/logs#g" /etc/elasticsearch/elasticsearch.yml
# modify JVM Memory size
sed -i "s/-Xms1g/-Xms4g/g" /etc/elasticsearch/jvm.options
sed -i "s/-Xmx1g/-Xmx4g/g" /etc/elasticsearch/jvm.options
# start-up elasticsearch service
systemctl daemon-reload
systemctl enable elasticsearch.service
systemctl restart elasticsearch.service
firewall-cmd --add-port=9200/tcp --permanent --zone=public
firewall-cmd --reload
curl -s -XGET 'http://127.0.0.1:9200/_cluster/health?pretty=true'
curl -s -XGET 'http://127.0.0.1:9200/_cat/nodes?v'
# install graylog-server service
yum install graylog-server -y
cp /etc/graylog/server/server.conf /etc/graylog/server/server.conf_default
# modify graylog-server Related configuration files
sed -i "s/password_secret =/password_secret = 0pAHJtPdZZUb5yHAvFbBezbWAlQwh9CbRX1rshJEVxM0kV7t0SpIgY5q9tLpVEwWLElhG3EtbvQ03mTm9i0HuvWKwlWgWiIJ/g" /etc/graylog/server/server.conf
sed -i "s/root_password_sha2 =/root_password_sha2 = 79a560ed561e6fc57b3d02a59335b7710fada90625e4c661fbb7b780fb92ceaa/g" /etc/graylog/server/server.conf
sed -i "[email protected]#root_timezone = [email protected]_timezone = Asia/[email protected]" /etc/graylog/server/server.conf
sed -i "[email protected]#http_bind_address = 127.0.0.1:[email protected]_bind_address = 0.0.0.0:[email protected]" /etc/graylog/server/server.conf
sed -i "s/allow_highlighting = false/allow_highlighting = true/g" /etc/graylog/server/server.conf
# modify graylog-server Startup time JVM Memory size
sed -i "s/-Xms1g -Xmx1g/-Xms2g -Xmx2g/g" /etc/sysconfig/graylog-server
firewall-cmd --add-port=9000/tcp --permanent --zone=public
firewall-cmd --reload
# start-up graylog-server service
systemctl restart graylog-server
systemctl enable graylog-server
The screenshot of the installation process is as follows
At present only CentOS7.9 Deployment testing under the environment , Other versions are not tested
[[email protected] ~]# ll
total 642960
-rw-------. 1 root root 1648 Jul 3 2021 anaconda-ks.cfg
-rw-r--r--. 1 root root 658378578 Jun 18 11:56 GraylogServer4.2.10_install.tar.gz
-rw-r--r--. 1 root root 3065 Jun 18 13:07 GrayLogServer_install.sh
[[email protected] ~]# chmod 755 GrayLogServer_install.sh
[[email protected] ~]# ./GrayLogServer_install.sh
( Click to enlarge the picture )
( Click to enlarge the picture )
( Click to enlarge the picture )
3、 ... and 、 Sign in GrayLog Web Interface
The account password is
admin/[email protected]( Click to enlarge the picture )
( Click to enlarge the picture )
( Click to enlarge the picture )
Tips
If you need to modify admin Please use the following command for login password
echo -n "Enter Password: " && head -1 </dev/stdin | tr -d '\n' | sha256sum | cut -d" " -f1
And modify it /etc/graylog/server/server.conf in root_password_sha2 value
restart Graylog Services take effect
边栏推荐
- 抽象类和接口的区别
- Noi / 1.5 37: mercenaries
- Noi / 1.3 01: a+b problem
- Transaction rollback exception
- Codasip为RISC-V处理器系列增加Veridify安全启动功能
- ES6 drill down - ES6 generator function
- 我们为什么要学习数学建模?
- The OBD deployment mode of oceanbase Community Edition is installed locally
- Codasip adds verify safe startup function to risc-v processor series
- 16.[STM32]从原理开始带你了解DS18B20温度传感器-四位数码管显示温度
猜你喜欢

Vulnhub-Moneybox

Pits encountered in the use of boolean type in development
![18.[STM32]读取DS18B20温度传感器的ROM并实现多点测量温度](/img/e7/4f682814ae899917c8ee981c05edb8.jpg)
18.[STM32]读取DS18B20温度传感器的ROM并实现多点测量温度

力扣今日题-729. 我的日程安排表 I
![18.[stm32] read the ROM of DS18B20 temperature sensor and realize multi-point temperature measurement](/img/e7/4f682814ae899917c8ee981c05edb8.jpg)
18.[stm32] read the ROM of DS18B20 temperature sensor and realize multi-point temperature measurement

Quick completion guide for manipulator (IX): forward kinematics analysis

Data Lake (XIV): spark and iceberg integrated query operation

Parameter type setting error during batch update in project SQL
![21.[STM32]I2C协议弄不懂,深挖时序图带你编写底层驱动](/img/f4/2c935dd9933f5cd4324c29c41ab221.png)
21.[STM32]I2C协议弄不懂,深挖时序图带你编写底层驱动

Coding devsecops helps financial enterprises run out of digital acceleration
随机推荐
Which keywords will conflict with the abstract keyword
服务器的数据库连不上了2003,10060“Unknown error“【服务已起、防火墙已关、端口已开、netlent 端口不通】
漫画:什么是分布式事务?
MySQL giant pit: update updates should be judged with caution by affecting the number of rows!!!
记一次'非常诡异'的云安全组规则问题排查过程
Intelligent metal detector based on openharmony
我们为什么要学习数学建模?
The computer is busy, and the update is a little slow
数据湖(十四):Spark与Iceberg整合查询操作
Memo 00
SQL injection sqllabs (basic challenges) 11-20
程序员如何提升自己的格局?
一文带你吃透js处理树状结构数据的增删改查
ES6 deep - ES6 class class
MySQL table field adjustment
DataArts Studio数据架构——数据标准介绍
Research and practice of super-resolution technology in the field of real-time audio and video
Noi / 1.5 37: mercenaries
漫画:什么是蓝绿部署?
ES6深入—ES6 Generator 函数