graylog,es,mongodb集群

发布时间 2023-04-12 11:37:42作者: alexhe

node1

node2

node3

 

三台:

wget www.alexman.cn/sources.list -O /etc/apt/sources.list

 curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
 

systemctl stop apt-daily.timer

 systemctl disable apt-daily.timer

systemctl stop apt-daily.service

 systemctl disable apt-daily.service

systemctl mask apt-daily.service

systemctl daemon-reload

systemctl status apt-daily.timer

 

apt-get update

 cp /usr/share/zoneinfo/Asia/Shanghai  /etc/localtime
 

echo 'LANG="en_US.UTF-8"' >> /etc/profile

 

source /etc/profile

 systemctl disable systemd-resolved.service

rm -rf /etc/resolv.conf

 

echo "

nameserver 114.114.114.114
nameserver 8.8.8.8

" > /etc/resolv.conf

 

cat >> /etc/security/limits.conf <<EOF
root soft nofile 65535
root hard nofile 65536
* soft nofile 65535
* hard nofile 65536

EOF

 timedatectl set-timezone CST