- 博客(17)
- 资源 (2)
- 收藏
- 关注
原创 ELK分布式日志收集
一、环境部署es 要求Linux 的 参数 vm.max_map_count 至少为 262144,目录需要赋权限: chmod -R 777 search新建docker-compose.ymlversion: '3.1'services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:7.6.2 container_name: elasticsearch restart:
2021-10-25 09:51:02
661
原创 Ubuntu镜像下载
官方下载地址(不推荐) https://www.ubuntu.com/download中科大源 http://mirrors.ustc.edu.cn/ubuntu-releases/16.04/阿里云开源镜像站 http://mirrors.aliyun.com/ubuntu-releases/16.04/兰州大学开源镜像站 http://mirror.lzu.edu.cn/ubuntu-releases/16.04/北京理工大学开源 http://mirror.bit.edu.
2021-09-01 16:32:26
494
原创 Schedulis执行任务
Schedulis执行任务添加执行用户或组是否有相应的权限。sudo adduser hadoopsudo usermod -a -G hadoop hadoop#并为该用户赋予 root 权限vim /etc/sudoershadoop ALL=(ALL) NOPASSWD: NOPASSWD: ALL一、执行command任务新建hello项目、hello.job打包zip,上传hello项目执行任务。#hello jobtype=commandcommand=ec
2021-07-23 16:19:46
266
原创 window配置vscode免密登录
window配置vscode免密登录打开window的cmd命令行窗口#中间过程需要多次点击回车按钮确认ssh-keygen将秘钥发送到目标机器上,输入bash命令, 即可进入到linux操作命令模式执行如下代码PS C:\Users\admin\.ssh> function ssh-copy-id([string]$userAtMachine, $args){>> $publicKey = "$ENV:USERPROFILE" + "/.ssh/id_r
2021-07-15 17:31:24
302
原创 WeBank/Schedulis部署和开发
一、Schedulis 普通版环境部署准备一)、使用前置请基于 Linux 操作系统操作(建议 CentOS)创建新用户 hadoop, 并为该用户赋予 root 权限,用于部署schedulis准备好 MySQL(版本5.5+) 的客户端和服务端请确保已安装并且正确配置 JDK(版本1.8+)配置集群各节点之间的免密码登录请准备一台已经正确安装和配置 Maven(版本3.3+) 和 Git 的机器,用来编译代码二)、获取项目文件并编译打包使用 Git 下载 Schedulis 项
2021-07-09 11:07:04
1472
1
原创 postgresql路径规划pgrouting使用
一、安装postgres_postgis_pgroutingversion: '3'services: postgres: image: starefossen/pgrouting container_name: postgres_postgis_pgrouting restart: always privileged: true volumes: - ./pgdata:/var/lib/postgresql environment:
2021-07-02 15:30:16
1920
原创 MybatisCodeHelper代码生成
MybatisCodeHelper代码生成1、随便右键一张表,选择生成多张表2、填写配置信息13、配置信息24、配置信息3
2021-06-29 15:41:09
393
原创 Win10系统端口查看和释放
Win10系统端口查看# 具体的端口号查看netstat -aon|findstr "9527"TCP 0.0.0.0:9527 0.0.0.0:0 LISTENING 7588# 查找pid为7588的进程tasklist|findstr "7588"# 打开任务管理器,点击详细信息,可以找到对应的进程,结束掉进程,端口就被释放了...
2021-06-29 14:31:07
471
原创 git主分支和子分支提交
git主分支和子分支提交# 查看状态git status# 新建分支git checkout -b common# 查看分支git branch# 把改动文件添加到暂存区git add .# 提交暂存区代码到本地仓库git commit -m "common功能"# 切换到master分支git checkout master# master合并分支commongit merge common# 本地master分支推送到远程仓库git push# 本地子分支推送到远程仓库
2021-06-29 11:56:47
495
原创 docker+nginx部署前端的dist
docker+nginx部署前端的dist1、编写Dockerfile:# 设置基础镜像FROM nginx:alpine# 将dist文件中的内容复制到 /app/dist 这个目录下面COPY dist/ /app/dist#用本地的 default.conf 配置来替换nginx镜像里的默认配置COPY default.conf /etc/nginx/conf.d/default.conf2、编写nginx配置文件default.conf:upstream backendapi
2021-06-23 08:58:07
3036
原创 postgres数据库导入、导出
postgres数据库导入、导出1、进入docker容器:docker exec -it postgres_dc /bin/bash# 切换postgres用户su - postgres# 执行导出命令:pg_dump -U postgres -d sysgis -f sysgis.sql2、进入新数据库容器:docker exec -it postgres_dc /bin/bash# 切换postgres用户su - postgres# 创建数据库createdb sysgis
2021-06-21 16:07:25
659
原创 docker-compose 部署Java项目
docker-compose 部署Java项目1、创建docker-compose.yml文件和sysgis文件夹version: '3.1'services: system-gis-api: build: context: ./sysgis dockerfile: Dockerfile restart: always container_name: system-gis-api volumes: - /etc/localtime
2021-06-21 15:47:35
1230
原创 docker运行中的容器,重新打包成镜像和压缩以及解压和载入镜像
docker运行中的容器,重新打包成镜像和压缩以及解压和载入镜像将容器保存成镜像sudo docker commit 85a2fe8491fb test/postgis:11.0-2.5将镜像打包docker save -o testpostgis.tar test/postgis:11.0-2.5将镜像包压缩sudo tar -zcvf testpostgis.tar.gz testpostgis.tar# 还有一种容器的打包和压缩一步到位的方法: docker save
2021-06-21 10:37:09
4059
2
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人