创建安装目录
mkdir /usr/local/services
下载 jdk-8u211-linux-x64.rpm
rpm -ivh jdk-8u211-linux-x64.rpm
yum install nginx
systemctl start nginx
从 Redis 官网下载安装包
wget https://download.redis.io/releases/redis-3.2.4.tar.gz
解压
将安装包拷贝至/usr/local/services/
目录并解压, 解压后进入redis
安装目录:
cd /usr/local/services/
tar xzf redis-3.2.4.tar.gz
cd redis-3.2.4
编译
make
安装
make install
默认情况下,Redis 会被安装在/usr/local/bin
目录下
修改配置
拷贝redis.conf
至/etc/redis/redis.conf
mkdir /etc/redis
cp redis.conf /etc/redis/redis.conf
修改配置文件:/etc/redis/redis.conf
vim /etc/redis/redis.conf
protected-mode no
daemonize yes
appendonly yes
启动服务
/usr/local/bin/redis-server /etc/redis/redis.conf
检查安装是否成功
cd /usr/local/bin
./redis-cli
从 Zookeeper 官网下载安装包
wget --no-check-certificate https://dlcdn.apache.org/zookeeper/zookeeper-3.7.1/apache-zookeeper-3.7.1-bin.tar.gz
解压
将安装包拷贝至/usr/local/services/
目录并解压, 解压后进入Zookeeper
安装目录:
cd /usr/local/services/
tar -zxvf apache-zookeeper-3.7.1-bin.tar.gz
cd apache-zookeeper-3.7.1-bin
修改配置
拷贝配置文件,并增加配置项
cp ./conf/zoo_sample.cfg ./conf/zoo.cfg
admin.serverPort=8887
启动zk
./bin/zkServer.sh start
检查
./bin/zkServer.sh status
未启动成功,从./logs
里查看启动日志
从 Kafka 官网下载安装包
wget --no-check-certificate https://archive.apache.org/dist/kafka/3.3.1/kafka_2.12-3.3.1.tgz
解压
将安装包拷贝至/usr/local/services/
目录并解压, 解压后进入Kafka
安装目录:
cd /usr/local/services/
tar -xzf kafka_2.12-3.3.1.tgz
cd kafka_2.12-3.3.1
启动
./bin/kafka-server-start.sh -daemon config/server.properties
检查
创建名为test
的topic
./bin/kafka-topics.sh --create --bootstrap-server 127.0.0.1:9092 --replication-factor 1 --partitions 1 --topic test
查看topic
./bin/kafka-topics.sh --bootstrap-server 127.0.0.1:9092 --describe --topic test
不报错正常,如果未启动成功,从./logs
里查看启动日志
从 Flink官网下载安装包
wget https://archive.apache.org/dist/flink/flink-1.14.6/flink-1.14.6-bin-scala_2.12.tgz
解压
将安装包拷贝至/usr/local/services/
目录,重命名为flink-1.14.6.tgz
后解压, 解压后进入Flink
安装目录:
cd /usr/local/services/
mv flink-1.14.6-bin-scala_2.12.tgz flink-1.14.6.tgz
tar -xzf flink-1.14.6.tgz
cd flink-1.14.6
启动
./bin/start-cluster.sh
检查
安装clickhouse
yum install -y yum-utils
rpm --import https://repo.yandex.ru/clickhouse/CLICKHOUSE-KEY.GPG
yum-config-manager --add-repo https://repo.yandex.ru/clickhouse/rpm/stable/x86_64
yum install clickhouse-server clickhouse-client
修改用户验证信息
修改/etc/clickhouse-server/users.xml
文件,在标签下设置用户验证信息。比如,我们设定一个用户名为default
,密码为123456
。
更多设置请参考ClickHouse官方文档。
启动数据库
sudo systemctl enable clickhouse-server
sudo systemctl start clickhouse-server
sudo systemctl status clickhouse-server
登录数据库
clickhouse-client -u default --password 123456