linux下部署docker
yum list installed | grep docker
yum -y install docker
systemctl start docker
systemctl status docker
docker配置阿里云镜像
修改daemon配置文件/etc/docker/daemon.json来使用加速器
vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://f1z25q5p.mirror.aliyuncs.com"]
}
保存,运行下面命令,重启docker服务
sudo systemctl daemon-reload
sudo systemctl restart docker
pulsar部署方法
拉取镜像
docker pull apachepulsar/pulsar:latest
安装pulsar
docker run -d -it -p 6650:6650 -p 8080:8080 -v pulsardata:/pulsar/data -v pulsarconf:/pulsar/conf --name pulsar-standalone apachepulsar/pulsar:latest bin/pulsar standalone