小编kuj*_*jiy的帖子

如何删除mariaDB指定的Connection_name以进行多源复制

我在mariaDB上有几个复制设置(最新版本:10.1.8).请确保我使用的Multiple replication不是遗产Single replication.

我已经用CHANGE MASTER "blah" TO命令添加了一些设置.现在我想从中删除其中一个show all slaves status.

mysql -e "show all slaves status\G;" | grep "Connection_name\|Running"
              Connection_name: 
             Slave_IO_Running: No
            Slave_SQL_Running: Yes
              Connection_name: asi.exapmle.com
             Slave_IO_Running: Connecting
            Slave_SQL_Running: Yes
              Connection_name: bee.exapmle.com
             Slave_IO_Running: Connecting
            Slave_SQL_Running: Yes
              Connection_name: dild.exapmle.com
             Slave_IO_Running: Yes
            Slave_SQL_Running: Yes
              Connection_name: datr.exapmle.com
             Slave_IO_Running: Connecting
            Slave_SQL_Running: Yes
              Connection_name: db.exapmle.com
             Slave_IO_Running: Connecting
            Slave_SQL_Running: Yes
              Connection_name: nop.exapmle.com
             Slave_IO_Running: Yes
            Slave_SQL_Running: Yes
Run Code Online (Sandbox Code Playgroud)

如何db.exapmle.com在不影响其他复制的情况下仅从此复制列表中删除?

mysql replication mariadb

3
推荐指数
1
解决办法
1860
查看次数

错误:(gcloud.beta.container.clusters.create) ResponseError: code=400, message=v1 API 无法用于访问 GKE 区域集群

Google Kubernetes Engine 的这个教程似乎不起作用。

https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-app

$ gcloud beta container clusters create hello-cluster --num-nodes=3
WARNING: You invoked `gcloud beta`, but with current configuration Kubernetes Engine v1 API will be used instead of v1beta1 API.
`gcloud beta` will switch to use Kubernetes Engine v1beta1 API by default by the end of March 2018.
If you want to keep using `gcloud beta` to talk to v1 API temporarily, please set `container/use_v1_api` property to true.
But we will drop the support for this property …
Run Code Online (Sandbox Code Playgroud)

google-cloud-platform kubernetes google-kubernetes-engine

2
推荐指数
1
解决办法
8133
查看次数

Ansible:如何使用“ansible -a”执行多个命令

这有效:

  ansible host -a "echo hello"                # hello
Run Code Online (Sandbox Code Playgroud)

但这返回了一个奇怪的答案

  ansible host -a "echo hello && echo world"      # hello && echo world
Run Code Online (Sandbox Code Playgroud)

ansible 是否会逃脱&&and ;with ansible -a

我怎样才能执行它?

ansible ansible-2.x

2
推荐指数
1
解决办法
7657
查看次数

如何使用Python将包含双引号在内的单词提取到类似GOOGLE的列表中

我正在创建网站的搜索功能。我需要将用户输入的句子类型提取到列表中,但要求引号中的单词应成为列表的一项。

在我的期望中,请专注于杰夫·沃森纽约一词。

期望:

str = 'Hello, I am "Jeff Watson" from a part of "New York".'

result = ["Hello", "I", "am", "Jeff Watson", "from", "a", "part", "of", "New York"]
Run Code Online (Sandbox Code Playgroud)

如果您的答案也使用单引号,那是最好的。

python regex

-3
推荐指数
1
解决办法
40
查看次数