摘要: 查看pod kubectl get pod -A 重新部署 kubectl rollout restart deployment <deployment_name> -n <namespace> kubectl rollout restart deployment webdatamanager -n 阅读全文
posted @ 2023-10-25 14:33 leechg 阅读(4) 评论(0) 推荐(0) 编辑
摘要: ``` #!/bin/bash if netstat -an | grep 'LISTEN' | grep ':3000\b' > /dev/null; then echo "1" # 端口已被占用,输出1 else echo "0" # 端口未被占用,输出0 fi ``` 阅读全文
posted @ 2023-08-03 19:54 leechg 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 在 Linux 中,您可以使用 `groupadd` 命令来创建组,使用 `useradd` 命令来创建用户,并使用 `passwd` 命令来为用户设置密码。以下是创建组和用户并设置密码的步骤: 1. 创建组 要创建组,请使用以下命令: ``` sudo groupadd ``` 其中 `` 是您要 阅读全文
posted @ 2023-07-12 09:26 leechg 阅读(2044) 评论(0) 推荐(0) 编辑
摘要: 在 Linux 中,您可以使用各种命令来查看系统信息。以下是一些常用的命令: 1. `uname` 命令:用于显示系统内核名称和版本号。 ``` uname -a ``` 2. `lsb_release` 命令:用于显示系统发行版信息。 ``` lsb_release -a ``` 3. `cat 阅读全文
posted @ 2023-07-12 09:25 leechg 阅读(3608) 评论(0) 推荐(0) 编辑
摘要: ``` function ajax(url) { const p = new Promise((resolve, reject) => { const xhr = new XMLHttpRequest(); xhr.open('GET', url, true) xhr.onreadystatecha 阅读全文
posted @ 2023-02-06 11:37 leechg 阅读(27) 评论(0) 推荐(0) 编辑
摘要: webpack 模糊地址代理websocket proxy '/**/ws/server/**/**/websocket': { // 7.1测试服务器 // target: 'http://192.168.190.129:8088', target: 'http://192.168.190.46: 阅读全文
posted @ 2022-10-28 14:55 leechg 阅读(201) 评论(0) 推荐(0) 编辑
摘要: pip 设置代理 设置国内镜像源 在用户目录(C:\Users\lc\pip)下创建pip.ini 文件,文件内容如下 [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple proxy = http://127.0.0.1:108 阅读全文
posted @ 2022-10-16 10:29 leechg 阅读(1671) 评论(0) 推荐(0) 编辑
摘要: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986 @Bean public ConfigurableServletWebServerFact 阅读全文
posted @ 2022-10-09 18:42 leechg 阅读(35) 评论(0) 推荐(0) 编辑
摘要: + + + |objectid| $geometry| + + + | 5|[106.366970696000...| + + + print(df1.toJSON().collect()) print(df1.toJSON().map(lambda str_json: json.loads(str 阅读全文
posted @ 2022-09-30 14:22 leechg 阅读(176) 评论(0) 推荐(0) 编辑
摘要: #使用http代理 git config --global http.proxy http://127.0.0.1:1080 git config --global https.proxy https://127.0.0.1:1080 #使用socks5代理 git config --global 阅读全文
posted @ 2022-09-20 10:27 leechg 阅读(83) 评论(0) 推荐(0) 编辑
摘要: arcpy 获取shp要素数量 import arcpy arcpy.env.workspace="E:\data\china-latest-free.shp" dss1=arcpy.ListFeatureClasses( ) for l in dss1: result = arcpy.GetCou 阅读全文
posted @ 2022-09-06 09:53 leechg 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 使用go install安装依赖出错,提示连接超时 go install -v golang.org/x/tools/gopls@latest go install golang.org/x/tools/gopls@latest: module golang.org/x/tools/gopls: G 阅读全文
posted @ 2022-07-29 09:28 leechg 阅读(2012) 评论(0) 推荐(0) 编辑
摘要: 旧版鲁大师官方下载地址 http://dl1.ludashi.com/ludashi/ludashisetup.exe 阅读全文
posted @ 2022-06-11 08:23 leechg 阅读(2500) 评论(0) 推荐(0) 编辑
摘要: 后端 Springboot maven依赖 使用springboot官方starter <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifa 阅读全文
posted @ 2021-11-18 15:02 leechg 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 应用报错 java.io.IOException: Too many open files 排查 应该是应用程序使用文件或者创建连接过多,被操作系统限制 使用命令查看 ulimits -a core file size (blocks, -c) 0 data seg size (kbytes, -d 阅读全文
posted @ 2021-10-14 11:30 leechg 阅读(122) 评论(0) 推荐(0) 编辑
摘要: call :agreelic :agreelic :: echo -n "请输入是否同意许可声明:y 同意/n 不同意 " set /p isagreee=请输入是否同意许可声明:y 同意/n 不同意: echo "%isagreee%" if "%isagreee%" == "n" ( echo 阅读全文
posted @ 2021-06-28 10:34 leechg 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 查找状态异常的pod ubectl get pod -A|grep Evicted|awk '{print "kubectl delete pod -n cattle-system "$2}' > aaaa.sh 删除pod sh aaaa.sh 通过grep 计算有多少pod异常 kubectl 阅读全文
posted @ 2021-06-23 14:22 leechg 阅读(570) 评论(0) 推荐(0) 编辑
摘要: 每次服务器重启,在docker中运行的jenkins中使用docker时遇到以下错误 failed to dial gRPC: cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial un 阅读全文
posted @ 2021-01-22 15:45 leechg 阅读(927) 评论(0) 推荐(0) 编辑
摘要: UnicodeDecodeError: 'gbk' codec can't decode byte 0xbf in position 2: illegal multibyte sequence 在某种情况下忽略字符错误 file = open(path, encoding='gb18030', er 阅读全文
posted @ 2021-01-22 10:32 leechg 阅读(167) 评论(0) 推荐(0) 编辑
摘要: apiVersion: apps/v1 kind: Deployment metadata: name: httpd spec: selector: matchLabels: run: httpd replicas: 1 template: metadata: labels: run: httpd 阅读全文
posted @ 2021-01-20 18:20 leechg 阅读(72) 评论(0) 推荐(0) 编辑
摘要: # yaml格式的pod定义文件完整内容: apiVersion: v1 #必选,版本号,例如v1 kind: Pod #必选,Pod metadata: #必选,元数据 name: intellect1 #必选,Pod名称 namespace: app #必选,Pod所属的命名空间 labels: 阅读全文
posted @ 2021-01-20 17:07 leechg 阅读(103) 评论(0) 推荐(0) 编辑
摘要: yarn.lock 转换为 package-lock.json synp Convert yarn.lock to package-lock.json and vice versa. install npm install -g synp command line usage yarn.lock = 阅读全文
posted @ 2021-01-12 14:27 leechg 阅读(1903) 评论(0) 推荐(0) 编辑
摘要: bind 127.0.0.1 设置只允许本机访问 protected-mode no 保护模式设置为 norequirepass 12346 设置redis访问密码 阅读全文
posted @ 2021-01-06 15:19 leechg 阅读(69) 评论(0) 推荐(0) 编辑
摘要: ^ server.c:5346:31: 错误:‘struct redisServer’没有名为‘server_cpulist’的成员 redisSetCpuAffinity(server.server_cpulist); ^ server.c: 在函数‘hasActiveChildProcess’中 阅读全文
posted @ 2021-01-06 14:53 leechg 阅读(778) 评论(0) 推荐(0) 编辑
摘要: 下载nginx-ingress-controller:0.20.0 docker pull wc1fpquu.mirror.aliyuncs.com/kubernetes-ingress-controller/nginx-ingress-controller:0.20.0 docker image 阅读全文
posted @ 2021-01-04 10:04 leechg 阅读(801) 评论(0) 推荐(0) 编辑
摘要: 修改了 kube-apiserver.yaml配置,后apiserver无法启动,执行kubectl 命令报错。 , The connection to the server 192.168.190.128:6443 was refused - did you specify the right h 阅读全文
posted @ 2020-12-29 17:31 leechg 阅读(1640) 评论(2) 推荐(0) 编辑
摘要: Java后端 附件下载遇到 ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION 错误 经排查发现原来是文件名称包含逗号,导致浏览器认为该响应头设置了多次 暂时把逗号替换掉解决问题 阅读全文
posted @ 2020-12-11 10:55 leechg 阅读(2604) 评论(0) 推荐(0) 编辑
摘要: function readFileToString(code) { const reader = new FileReader(); reader.onload = function() { console.log(this.result); let str = this.result var v8 阅读全文
posted @ 2020-12-07 17:54 leechg 阅读(1249) 评论(0) 推荐(0) 编辑
摘要: Postgresql 设置字段搜索支持中文排序 alter table map_model_resource ALTER COLUMN name TYPE character varying COLLATE "zh_CN" 阅读全文
posted @ 2020-12-01 18:11 leechg 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 添加以下环境变量 ENV LANG C.UTF-8 ENV LC_ALL C.UTF-8 DockerFile 为 FROM java:8 ADD app-0.0.1-SNAPSHOT.jar /tmp/app-0.0.1-SNAPSHOT.jar VOLUME /tmp ENV LANG C.UT 阅读全文
posted @ 2020-10-26 10:50 leechg 阅读(1296) 评论(0) 推荐(0) 编辑