摘要: Postgresql 设置字段搜索支持中文排序 alter table map_model_resource ALTER COLUMN name TYPE character varying COLLATE "zh_CN" 阅读全文
posted @ 2020-12-01 18:11 leechg 阅读(344) 评论(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 阅读(1349) 评论(0) 推荐(0)
摘要: yum -y install ntp /usr/sbin/ntpdate -u ntp.api.bz hwclock -w 阅读全文
posted @ 2020-10-21 18:04 leechg 阅读(170) 评论(0) 推荐(0)
摘要: springboot jetty 提交表单报错 2020/10/12 下午3:58:202020-10-12 15:58:20.272 ERROR 1 [1579280783-4931] c.x.d.core.ControllerExceptionHandler : 400: Unable to p 阅读全文
posted @ 2020-10-12 17:38 leechg 阅读(5694) 评论(0) 推荐(0)
摘要: 在系统host文件中添加以下内容,保存,刷新网页即可登录 54.164.109.84 graphql.unrealengine.com 阅读全文
posted @ 2020-09-24 22:43 leechg 阅读(464) 评论(0) 推荐(0)
摘要: #!/bin/shjava -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 restDate-0.0.1-SNAPSHOT.jar -- server.port=8083 阅读全文
posted @ 2020-09-18 10:47 leechg 阅读(459) 评论(0) 推荐(0)
摘要: 解决相对路径404问题 upstream api { ip_hash; server 192.168.190.46:31181 weight=1; } server { listen 80; listen [::]:80; server_name localhost; #/etc/nginx/con 阅读全文
posted @ 2020-09-04 16:04 leechg 阅读(1218) 评论(0) 推荐(1)
摘要: docker images|grep none|awk '{print $3}'|xargs docker rmi docker images|grep none|awk '{print $3}'|xargs docker rmi 阅读全文
posted @ 2020-09-01 19:13 leechg 阅读(411) 评论(0) 推荐(0)
摘要: pipeline { agent any tools { // Install the Maven version configured as "M3" and add it to the path. maven "M3" } stages { stage('Build') { steps { // 阅读全文
posted @ 2020-08-30 23:36 leechg 阅读(508) 评论(0) 推荐(0)
摘要: docker images | grep none | awk '{print $3}' | xargs docker rmi 阅读全文
posted @ 2020-08-27 10:01 leechg 阅读(932) 评论(0) 推荐(0)
摘要: 在docker中搭建Jenkins运行环境后,使用docker命令构建docker镜像,报以下错误 + docker build -f ../Dockerfile -t 192.168.190.126:5000/aa***:latest . time="2020-08-25T09:39:21Z" l 阅读全文
posted @ 2020-08-25 11:11 leechg 阅读(2860) 评论(0) 推荐(0)
摘要: rancher单节点kubernetes启动容器错误 0/1 nodes are available: 1 node(s) had taints that the pod didn't tolerate. 是由于默认的master节点不允许作为数据节点使用,需要修改master节点使之可以同时作为d 阅读全文
posted @ 2020-08-18 15:46 leechg 阅读(732) 评论(0) 推荐(0)
摘要: jenkins 在设置邮箱时报错 501 mail from address must be same as authorization user 后来才发现Jenkins Location配置中需要填写相同的邮件地址 阅读全文
posted @ 2020-08-18 14:56 leechg 阅读(439) 评论(0) 推荐(0)
摘要: 允许保存密码 ``` git config --global credential.helper store ``` 配置用户信息 ``` git config user.name "userName" git config user.email "email address" ``` 下载镜像 ` 阅读全文
posted @ 2020-08-18 14:00 leechg 阅读(150) 评论(0) 推荐(0)
摘要: docker 镜像启动后需要调整容器的配置,比如修改端口配置或者修改卷映射配置。 首先在docker服务器上找到对应的容器的目录 /var/lib/docker/containers/42c6fa8f4514050f2a4129207678f1cdd81d2335824e38f047bdc135a8 阅读全文
posted @ 2020-08-18 10:13 leechg 阅读(771) 评论(0) 推荐(0)
摘要: 使用describe查看pod信息,出现以下事件 Back-off restarting failed container 使用kubectl logs 发现是网络不通 关闭防火墙后重新导入,导入成功 阅读全文
posted @ 2020-08-14 18:44 leechg 阅读(1797) 评论(0) 推荐(0)
摘要: 使用在线编辑工具编辑字幕文件,导出vtt文件 https://subplayer.js.org/ 使用命令把vtt转为srt文件 ffmpeg -i 集群调度_2020814145322.vtt 集群调度_2020814145322.srt 使用命令把字幕文件嵌入MP4文件中 > ffmpeg -i 阅读全文
posted @ 2020-08-14 15:37 leechg 阅读(313) 评论(0) 推荐(0)
摘要: docker pull registry:2.7.1 mkdir -p /var/docker/registry/data docker run -d -v /var/docker/registry/data:/var/lib/registry -p 5000:5000 --restart=alwa 阅读全文
posted @ 2020-08-14 09:30 leechg 阅读(470) 评论(0) 推荐(0)
摘要: 首先添加新版本的repo curl --silent --location https://rpm.nodesource.com/setup_14.x | sudo bash 执行安装 yum -y install nodejs 参考 新安装NODEJS之后配置 阅读全文
posted @ 2020-08-11 14:13 leechg 阅读(155) 评论(0) 推荐(0)
摘要: 在docker服务器上添加新的镜像后想在rancher中部署运行,通过docker image ls可以看到镜像存在,但是在通过rancher添加部署的时候却出现以下错误。 Failed to pull image "data-center-catalog:latest": rpc error: c 阅读全文
posted @ 2020-08-10 15:34 leechg 阅读(2444) 评论(0) 推荐(0)
摘要: 1 打包springboot项目 生成 data-center-catalog-1.0-SNAPSHOT.jar 2 配置dockerfile Dockerfile FROM java:8 ADD data-center-catalog-1.0-SNAPSHOT.jar /tmp/data-cent 阅读全文
posted @ 2020-08-10 15:26 leechg 阅读(226) 评论(0) 推荐(0)
摘要: 使用rancher运行镜像时报以下错误 0/1 nodes are available: 1 node(s) had taints that the pod didn't tolerate. 是因为默认kubernetes默认不让pod部署到master节点,但是我在测试环境只有一个节点也是mast 阅读全文
posted @ 2020-08-10 11:47 leechg 阅读(7543) 评论(0) 推荐(0)
摘要: 注册k8s到rancher时 agent pods一直处于containercreating状态 cattle-system cattle-cluster-agent-5dfcdff98b-7b2br 0/1 ContainerCreating 0 13m <none> localhost.loca 阅读全文
posted @ 2020-08-10 10:54 leechg 阅读(1054) 评论(0) 推荐(0)
摘要: 查看磁盘读写速度 time dd if=/dev/zero of=/testw.dbf bs=4k count=100000 time dd if=/dev/sda of=/dev/null bs=4k 查看文件系统整体情况 df -h 查看当前目录使用情况 du -sh ./* 查看当前文件夹文件 阅读全文
posted @ 2020-08-10 10:36 leechg 阅读(342) 评论(0) 推荐(0)
摘要: [root@localhost ~]# date -s "20200807 09:38:00" Fri Aug 7 09:38:00 CST 2020 [root@localhost ~]# date Fri Aug 7 09:38:03 CST 2020保存到硬件配置 [root@localhos 阅读全文
posted @ 2020-08-07 09:46 leechg 阅读(209) 评论(0) 推荐(0)
摘要: windows 添加路由 route add 10.0.0.0 mask 255.0.0.0 172.16.1.253 -p 参数-p代表永久路由,系统重启后该路由依旧生效 查看已有路由 route print 阅读全文
posted @ 2020-08-04 10:29 leechg 阅读(838) 评论(0) 推荐(0)
摘要: 环境 Notebook docker环境 https://registry.hub.docker.com/r/jupyter/datascience-notebook/ 下载安装包 spark安装包 http://mirror.bit.edu.cn/apache/spark/spark-3.0.0/ 阅读全文
posted @ 2020-07-04 18:17 leechg 阅读(370) 评论(0) 推荐(0)
摘要: 按照之前的加载百度地图的方式切片排版会错误 修改resouce为下边任意一种:baidu_source 或者baidusource都可以正常加载百度地图 <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="te 阅读全文
posted @ 2020-06-18 11:48 leechg 阅读(1219) 评论(1) 推荐(0)
摘要: ( select t.rid from (select rowid rid ,rownum rn from YJJBNTBHQ_2017 where rownum<100000 ) t where t.rn>99990 ) select t1.GEOMETRY.Get_WKT(),t1. BHQBH 阅读全文
posted @ 2020-06-10 09:47 leechg 阅读(234) 评论(0) 推荐(0)
摘要: vscode 终端无法打开并报错 终端进程命令“C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe ”无法启动 (退出代码: {2}) 百度后配置为cmd也是相同的错误 解决方法:关闭360 阅读全文
posted @ 2020-06-10 09:44 leechg 阅读(4905) 评论(0) 推荐(0)