zhang-minglei
5/22/2019 - 7:27 AM

命令

source /etc/profile

vi .zshrc

source .zshrc

kctl get pod -n pmp-test

-- 查看实时日志
kctl logs -f sps-prospect-api-747b895994-vmx8f -n pmp-test

-- 进入容器内部
kctl exec -it sps-prospect-api-747b895994-vmx8f sh -n pmp-test

-- 删除不是运行状态的pod
kctl delete pods --field-selector=status.phase!=Running -n pmp-middleeast-test

-- 查看节点10.0.0.6的pod
kctl get pods --all-namespaces -owide | grep 10.0.0.6 | awk '{print $1}'

-- 删除deployment
kctl delete deployment --all -n pmp-middleeast-dev


flink启动命令
./usr/local/Cellar/apache-flink/1.6.2/libexec/bin/start-cluster.sh

-- mongo command
docker run --name mongodb -v /data/mongodb:/data/db -p 0.0.0.0:27017:27017 -d mongo:4.1.6
docker exec -it mongodb mongo(mongo命令) admin(库)

-- elasticsearch
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.0.0


-- homeassistant docker
docker run -d --name="home-assistant" -v /data/homeassistant/config:/config -v /data/homeassistant/components/sensor:/usr/src/app/homeassistant/components/sensor -e "TZ=Asia/Shanghai" -p 8123:8123 home-assistant

/data/homeassistant/components:/usr/src/app/homeassistant/