发布于 2023-12-17   20人围观   0条评论


查看更多
发布于 2023-09-23   49人围观   0条评论

golang

launch.json

  1. {
  2. // Use IntelliSense to learn about possible attributes.
  3. // Hover to view descriptions of existing attributes.
  4. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [
  7. {
  8. "name": "Launch Package",
  9. "type": "go",
  10. "request": "launch",
  11. "mode": "auto",
  12. // "program": "${fileDirname}",
  13. "program": "${workspaceFolder}/main.go",
  14. "cwd": "${workspaceFolder}",
  15. // "debugAdapter": "dlv-dap",
  16. "debugAdapter": "legacy",
  17. // "showLog": true,
  18. // "trace": "verbose",
  19. // "logOutput": "dap",
  20. // "stopOnEntry": true,
  21. // "env": {
  22. // "HOME": "/mnt/hdd_00_09/home_repository/ResearchDev",
  23. // "GOPATH": "/mnt/hdd_00_09/workspace/ResearchDev/go",
  24. // "GOROOT":
查看更多
发布于 2023-08-17   26人围观   0条评论

环境

节点名 IP
kafka01 10.15.4.244
kafka02 10.15.4.245
kafka03 10.15.4.138
依赖 版本
Linux Server Centos 9
ZooKeeper 3.8.1
kafka 3.5.0

部署

每个节点均需操作

创建相关目录

  1. mkdir /root/kafka
  2. mkdir /root/kafka/logs

下载 kafka

  1. # https://downloads.apache.org/kafka/3.5.1/kafka_2.13-3.5.1.tgz
  2. cd /root/kafka
  3. wget https://downloads.apache.org/kafka/3.5.0/kafka_2.13-3.5.0.tgz
  4. tar zxvf kafka_2.13-3.5.0.tgz

修改配置

  1. cd /root/kafka/kafka_2.13-3.5.0
  2. vim config/server.properties
  3. # 修改以下内容
  4. log.dirs=/root/kafka/logs
  5. zookeeper.connect=10.15.4.244:2181,10.15.4.245:2181,10.15.4.138:2181
  6. # 分节点配置
  7. # 配置在节点 0 上
  8. broker.id=0
  9. listeners=PLAINTEXT://10.15.4.244:9092
  10. # 配置在节点 1 上
  11. broker.id=1
  12. listeners=PLAINTEXT://10.15.4.245:9092
  13. # 配置在节点 2 上
  14. broker.id=2
  15. listeners=PLAINTEXT://10.15.4.138:9092
  16. # 以提供其他生产、消费程序的远程端口连接
  17. # host.name=128.1.136.129
  18. # 让 topic 可以真的删除
  19. delete.topic.enable=true
  20. # 禁止 consumer 或者 producer 使用时自动创建
  21. auto.create.topics.enable=
查看更多
发布于 2023-06-30   50人围观   0条评论

环境

节点名 IP
zk01 10.15.4.244
zk02 10.15.4.245
zk03 10.15.4.138
依赖 版本
Linux Server Centos 9
JDK yum install java-11-openjdk
ZooKeeper 3.8.1

部署

每个节点均需操作

创建相关目录

  1. mkdir /root/zookeeper
  2. mkdir /root/zookeeper/data
  3. mkdir /root/zookeeper/logs

下载 zookeeper

  1. cd /root/zookeeper
  2. wget https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/zookeeper-3.8.1/apache-zookeeper-3.8.1-bin.tar.gz
  3. tar zxvf apache-zookeeper-3.8.1-bin.tar.gz

修改环境变量

  1. vim ~/.bashrc
  2. # 添加以下下内容
  3. # zookeeper
  4. export ZOOKEEPER_HOME=/root/zookeeper/apache-zookeeper-3.8.1-bin
  5. export PATH=$ZOOKEEPER_HOME/bin:$PATH
  6. # 使环境变量生效
  7. source ~/.bashrc

新建配置文件

  1. cd /root/zookeeper/apache-zookeeper-3.8.1-bin/conf
  2. touch zoo.cfg
  3. # 添加以下内容
  4. tickTime=2000
  5. initLimit=10
  6. syncLimit=5
  7. dataDir=/root/zookeeper/data
  8. dataLogDir=/root/zookeeper/logs
  9. clientPort=2181
  10. server.1=10.15.4.244:2888:3888
  11. server.2=10.15.4.245:2888:3888
  12. server.3=10.15.4.138:2888:3888
查看更多
发布于 2023-02-27   155人围观   0条评论

stable-diffusion

安装 stable-diffusion 的 webui
https://github.com/AUTOMATIC1111/stable-diffusion-webui

代理问题 参考 https://www.bilibili.com/read/cv19991459/

下载基础 model

chilloutmix_.safetensors

测试用

masterpiece, 1 girl, cute face, white hair, red eyes

通用反咒

lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, bad feet

其他反咒

paintings, sketches, (worst quality:2),(low quality:2),(normal quality:2), lowres, normal quality, ((monochrome)), ((grayscale)), skin spots, acnes, skin blemishes, age spot, glans,{{{bad_hands}}},badhand, bad_feet

查看更多