标签:SHA256 time arch 5.x efi host inux god x86_64
系统环境本环境中的实验均未开启Selinux和防火墙
# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
# uname -r
3.10.0-862.3.2.el7.x86_64
# yum install java-1.8.0-openjdk-headless.x86_64
# vim /etc/yum.repos.d/mongodb-org-3.6.repo
[mongodb-org-3.6]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.6/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.6.asc
# yum install -y mongodb-org
# systemctl enable mongod.service
# systemctl start mongod.service
vim /etc/yum.repos.d/elasticsearch.repo
[elasticsearch-5.x]
name=Elasticsearch repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
# yum install elasticsearch
更改Elasticsearch配置文件elasticsearch.yml
vim /etc/elasticsearch/elasticsearch.yml
将集群名字改为graylog,且去掉前面的“#”
cluster.name:graylog
# rpm -Uvh https://packages.graylog2.org/repo/packages/graylog-2.4-repository_latest.rpm
# yum install graylog-server
更改Graylog配置文件/etc/graylog/server/server.conf
# vim /etc/graylog/server/server.conf
password_secret #设置登录密码(密码要输入4次)
如:password_secret = 123456123456123456123456
echo -n yourpassword | sha256sum #加密方式
将上面输入的密码进行加密,然后把加密的密文复制到root_password_sha2后面,如下
root_password_sha2 #加密密码
如:root_password_sha2 = 8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92
rest_listen_uri = http://内网IP:9000/
web_listen_uri = http://内网IP:9000/
web_endpoint_uri = http://外网IP:9000/api/ # 若无外网,则填写内网IP
elasticsearch_index_prefix = graylog #Elasticsearch索引名称,必须与Elasticsearch配置文件里集群名称(cluster.name)一致
root_timezone = Asia/Shanghai #时区配置
allow_highlighting = true #高亮显示
# Email transport
transport_email_enabled = true
transport_email_hostname = smtp.163.com
transport_email_port = 465
transport_email_use_auth = true
transport_email_use_tls = true
transport_email_use_ssl = true
transport_email_auth_username = xxxx@163.com
transport_email_auth_password = xxxx
transport_email_subject_prefix = [graylog]
transport_email_from_email = xxxx@163.com
标签:SHA256 time arch 5.x efi host inux god x86_64
原文地址:http://blog.51cto.com/roben/2159934