zookeeper 与 kafka 集群设置教程, 作为教程, 下文描述的步骤是在 1台 服务器上部署 启动三个 zookeeper 和 kafka 服务以组成模拟集群, 多机上的注意事项会在相关位置说明
FIXME 的均为在实际环境中需要注意的值(比如 ip, 端口, 文件路径), 其余值新增内容均为固定值
mkdir -p /data/kafka-cluster-test/{kafka,zookeeper}-data-{1,2,3}| div[placeholder~="Heading"]::after { | |
| margin-left: 0.5em; | |
| font-size: 0.6em; | |
| vertical-align: middle; | |
| opacity: 0.7; | |
| } | |
| div[placeholder="Heading 1"]::after { | |
| content: "h1"; | |
| } |
| #!/bin/bash | |
| set -e | |
| echo Build All | |
| echo Build for linux | |
| (CGO_ENABLED=0 GOOS=linux ./build.sh) | |
| echo Build for windows | |
| (CGO_ENABLED=0 GOOS=windows ./build.sh) |
| """ | |
| Example: | |
| Input: { | |
| "format": "short", | |
| "label": "Mbps", | |
| "logBase": 1, | |
| "max": null, | |
| "min": null, | |
| "show": true |
| #!/bin/sh | |
| set -e | |
| is_wsl() { | |
| case "$(uname -r)" in | |
| *microsoft* ) true ;; # WSL 2 | |
| *Microsoft* ) true ;; # WSL 1 | |
| * ) false;; | |
| esac | |
| } |
| #!/bin/bash | |
| # install docker (with aliyun yum repo) | |
| sudo yum remove docker \ | |
| docker-client \ | |
| docker-client-latest \ | |
| docker-common \ | |
| docker-latest \ | |
| docker-latest-logrotate \ | |
| docker-logrotate \ |
| target_encoding = "utf-16" | |
| text = ''' | |
| # coding: utf-16 | |
| print("你好,世界") | |
| ''' | |
| with open("/tmp/utf-16", "w", encoding="utf-16") as f: | |
| f.write(text) |
| """ | |
| Varint encoder/decoder | |
| varints are a common encoding for variable length integer data, used in | |
| libraries such as sqlite, protobuf, v8, and more. | |
| Here's a quick and dirty module to help avoid reimplementing the same thing | |
| over and over again. | |
| For both python 2 and 3 | |
| """ |
zookeeper 与 kafka 集群设置教程, 作为教程, 下文描述的步骤是在 1台 服务器上部署 启动三个 zookeeper 和 kafka 服务以组成模拟集群, 多机上的注意事项会在相关位置说明
FIXME 的均为在实际环境中需要注意的值(比如 ip, 端口, 文件路径), 其余值新增内容均为固定值
mkdir -p /data/kafka-cluster-test/{kafka,zookeeper}-data-{1,2,3}I hereby claim:
To claim this, I am signing this object:
| on run {} | |
| tell application "OmniFocus" | |
| tell content of first document window of front document | |
| set validSelectedItemsList to value of (selected trees where class of its value is not item and class of its value is not folder) | |
| -- 未选择 | |
| if (count of validSelectedItemsList) is 0 then | |
| display alert "未选择任何项" message "请选择一个或多个动作/项目后重试" as critical | |
| return | |
| end if |