03 2024 档案
摘要:虚拟私有云(Virtual Private Cloud,VPC)、云解析服务(DNS)、虚拟专用网络(VPN)、云专线(DC)、弹性网络(EIP)、NAT网关(NET GW)、弹性负载均衡(ELB) 1.虚拟私有云(Virtual Private Cloud,VPC) https://support
阅读全文
摘要:1.下载代码 cd /data/salt-web/ gitlab git clone https://github.com/erwindon/SaltGUI.git gitee拷贝的1.30.0 (2023-11-11)版本 git clone https://gitee.com/xiaoxiaom
阅读全文
摘要:使用npm install时,由于npm install控制台输出的构建信息是加载条,之前用的python脚本不能输出,且加载条完之后的输出也不能获取。因为需要使用新的脚本,使用下面的脚本python执行npm install 可以输出加载条之后的日志。process.poll()为返回码,正确运行
阅读全文
摘要:1.在参数部分添加bool参数 parameters { booleanParam( name: 'CleanWorkspace', defaultValue: false, description: '清理工作空间,默认不清理!' ) } 2.在脚本用引用这个参数 stage("Initializ
阅读全文
摘要:1. Error occurred while executing a write operation to database 'component' due to limited free space on the disk (3748 MB). The database is now worki
阅读全文
摘要:1.安装obsutil obsutil是一款用于访问管理华为云对象存储服务(Object Storage Service,OBS)的命令行工具 https://support.huaweicloud.com/utiltg-obs/obs_11_0003.html #下载obsutiltar包 wge
阅读全文
摘要:1.Grains的二次开发 在master上添加Grains,且同步给minion。注意:只能从master同步给minion,而不能从master通过syndic同步给minion。 在master的file_roots目录下建_grains,在_grains目录下写grains的py文件,用re
阅读全文
摘要:1.gradle的默认local仓库路径为:~/.gradle/caches/modules-2/files-2.1
阅读全文
摘要:配置文件 1.master配置文件 timeout: 5 与minion链接超时时间,生产环境可以配置的长一些如timeout: 30 即超时时间为30s。 2.minion配置文件 多master配置,列表形式。需要所有master文件都是一样的: 1)/etc/salt/pki/master/中
阅读全文
摘要:1.按照下面文档,手动也激活不了 https://support.huaweicloud.com/intl/zh-cn/my-kualalumpur-1-usermanual-ecs/zh-cn_topic_0043474374.html 原因:KMS主机地址需要换一个ip地址进行注册 处理过程:
阅读全文
摘要:1.在nexus做salt官方的yum源代理 http://xxxx/repository/gw-yum-proxys 代理https://repo.saltproject.io/salt/py3/ 2.在yum仓库里上传repo文件及salt.sh安装文件 latest.repo 文件 [salt
阅读全文
摘要:官网教程:https://docs.saltproject.io/en/latest/topics/states/index.html 注意:配置管理表示的是状态,是可以多次运行的,比如执行某个命令如创建目录,如果不添加相关限制参数,那么每次执行都会执行创建这个目录。配置文件即sls文件,以.sls
阅读全文
摘要:1.报错 error Unexpected console statement no-console百度得知是eslint校验问题处理方法:1)在代码中增加eslint忽略文件(貌似不生效) cat .eslintignore build/*.js src/assets public dist sr
阅读全文
摘要:1.使salt可以使用配置文件进行配置 配置文件的位置的配置在/etc/salt/master中的file_roots字段,将base的注释打开,重启salt-master生效 # file_roots: # base: # - /srv/salt/ # dev: # - /srv/salt/dev
阅读全文
摘要:1.nacos日志报错com.alibaba.nacos.api.exception.runtime.NacosRuntimeException: ErrCode:500, ErrMsg:User limit of inotify watches reached 解决:这个错误是由于 Linux 中
阅读全文
摘要:1.pod报错:unable to ensure pod container exists: failed to create container for [kubepods burstable pod7e45f702-c697-4b39-b34b-db8792445622] : mkdir /sy
阅读全文