/images/avatar.png

半生戎码

centos6.6安装supervisor3.x方法

安装 meld (如果缺少的话)

cd /usr/local
wget https://pypi.python.org/packages/0f/5e/3a57c223d8faba2c3c2d69699f7e6cfdd1e5cc31e79cdd0dd48d44580b50/meld3-1.0.1.tar.gz#md5=2f045abe0ae108e3c8343172cffbe21d
tar -zxvf meld3-1.0.1.tar.gz
cd meld3-1.0.1
python setup.py install

安装 supervisor3

wget https://pypi.python.org/packages/source/s/supervisor/supervisor-3.0b2.tar.gz --no-check-certificate
tar -zxvf supervisor-3.0b2.tar.gz
cd supervisor-3.0b2
python setup.py install
yum install python-setuptools

创建日志文件

touch /var/log/supervisord.log
chmod 755 /var/log/supervisord.log

创建默认的配置文件

echo_supervisord_conf > /etc/supervisord.conf

修改/etc/supervisord.conf

# 添加到末尾
[include]
files = /etc/supervisord.d/\*.ini

Elasticsearch 安装

单节点安装

修改相关配置文件

# 或者执行  sysctl -w vm.max_map_count=262144
echo "vm.max_map_count=262144" >> /etc/sysctl.conf
echo "* soft nproc 131072" >> /etc/security/limits.conf
echo "* hard nproc 131072" >> /etc/security/limits.conf
echo "* soft nofile 131072" >> /etc/security/limits.conf
echo "* hard nofile 131072" >> /etc/security/limits.conf

二进制方式安装

官网下载链接

cd /usr/local
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-xxx-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-xxx-linux-x86_64.tar.gz.sha512
shasum -a 512 -c elasticsearch-xxx-linux-x86_64.tar.gz.sha512
tar -xzf elasticsearch-xxx-linux-x86_64.tar.gz
cd elasticsearch-xxx/
./bin/elasticsearch -d -p pid
# 验证是否启动成功
curl --cacert $ES_HOME/config/certs/http_ca.crt -u elastic https://localhost:9200

docker 方式安装

docker pull docker.elastic.co/elasticsearch/elasticsearch:8.6.0
docker network create elastic
docker run --name es01 --net elastic -p 9200:9200 -it docker.elastic.co/elasticsearch/elasticsearch:8.6.0
# 重置相关密码
docker exec -it es01 /usr/share/elasticsearch/bin/elasticsearch-reset-password

集群

首先按照单节点安装能跑起来先