随笔分类 -  Linux

Linux
摘要:https://hub.docker.com/r/sebp/elk 安装ELK镜像 docker pull sebp/elk:793 启动 elk 容器 docker run --name elk --restart always \ -d -p 5601:5601 -p 9200:9200 -p 阅读全文
posted @ 2021-05-19 18:09 VipSoft 阅读(748) 评论(0) 推荐(0) 编辑
摘要:每5分钟检查一次,如果不在线就重启 #!/bin/bash count=`ps axu | grep kafka_2.11-1.0.0|grep -v grep|wc -l` echo "process count => "$count if [ "$count" != 0 ];then echo 阅读全文
posted @ 2021-03-02 17:16 VipSoft 阅读(110) 评论(0) 推荐(0) 编辑
摘要:放行FTP服务器 TCP 21端口及FTP服务器被动1024/65535端口 阅读全文
posted @ 2021-01-25 14:23 VipSoft 阅读(182) 评论(0) 推荐(0) 编辑
摘要:[root@centos-linux jimmy]# firewall-cmd --state not running [root@centos-linux jimmy]# sysctl net.ipv4.ip_forward net.ipv4.ip_forward = 0 [root@centos 阅读全文
posted @ 2020-07-04 00:13 VipSoft 阅读(1006) 评论(0) 推荐(0) 编辑
摘要:简单安装为了集成 SpringBoot,真实使用,增加增加更多配置,比如将log映射出来 1.安装 zookeeper [root@centos-linux ~]# docker pull wurstmeister/zookeeper [root@centos-linux ~]# docker pu 阅读全文
posted @ 2020-07-03 22:35 VipSoft 阅读(1397) 评论(0) 推荐(2) 编辑
摘要:1. 创建仓库 管理里面,可以查看详细的信息 设置登录密码 2. 接下来,将本地镜像推到阿里 : SpringBoot Docker 发布 docker commit 这部分可以不操作 docker commit -m "提交信息" -a "作者" 容器id 要创建的目标镜像名:标签名 [root@ 阅读全文
posted @ 2020-06-27 20:31 VipSoft 阅读(333) 评论(0) 推荐(0) 编辑
摘要:本文是手动模式,可以移步 Intellij IDEA 集成 Docker 发布 使用 Intellij 集成Docker 发布,比较方便 pom 文件 <groupId>com.vipsoft.boot</groupId> <artifactId>vipsoft-web-boot</artifact 阅读全文
posted @ 2020-06-27 19:01 VipSoft 阅读(686) 评论(0) 推荐(0) 编辑
摘要:配置好后 重新加载一下 daemon [root@centos-linux jimmy]# systemctl daemon-reload [root@centos-linux jimmy]# systemcel restart docker 重启后,docker pull 就会有飞一般的感觉 如果 阅读全文
posted @ 2020-06-25 23:35 VipSoft 阅读(745) 评论(0) 推荐(0) 编辑
摘要:将文件上传至 /opt 目录下 [root@localhost opt]# ll total 63704 -rw-r--r--. 1 root root 9181276 Mar 28 11:07 apache-maven-3.6.1-bin.zip drwxr-xr-x. 7 root root 8 阅读全文
posted @ 2020-04-19 21:09 VipSoft 阅读(161) 评论(0) 推荐(0) 编辑
摘要:配置 Nginx 可以把.conf 文件拉到本地,配置好再传上去 #gzip on; upstream cluster{ server 192.168.0.113:8848; server 192.168.0.110:8848; server 192.168.0.109:8848; } server 阅读全文
posted @ 2020-04-19 21:00 VipSoft 阅读(3094) 评论(0) 推荐(0) 编辑
摘要:三台虚机的IP地址被DHCP重分了一下1.MySQL 配置 先建一个 nacos_config 数据库 将SQL执行(方法很多,选自己喜欢的就行) 2.修改 application.properties 配置文件(application.properties.example 是示例) 先备份一下 v 阅读全文
posted @ 2020-04-19 19:00 VipSoft 阅读(1340) 评论(0) 推荐(0) 编辑
摘要:虚机准备、Nacos 文件准备、MySQL 5.7 安装 https://nacos.io/zh-cn/docs/cluster-mode-quick-start.html 根据官网要求,至少3个节点(VM VirtualBox 比VMWare占资源要少些) 2.用 SecureCRT(工具无所谓, 阅读全文
posted @ 2020-04-13 00:11 VipSoft 阅读(1985) 评论(0) 推荐(0) 编辑
摘要:1.安装 docker-compose 将 docker-compose-Linux-x86_64 传到 /usr/local/bin 目录下,并改名为 docker-compose 2.设置权限 [root@localhost ~]# chmod +x /usr/local/bin/docker- 阅读全文
posted @ 2020-03-28 17:22 VipSoft 阅读(1885) 评论(0) 推荐(0) 编辑
摘要:首先创建一个镜像,点击:创建一个简单的Docker镜像 1.先注册帐号 https://hub.docker.com/ 2.将镜象推上去 [root@localhost docker]# docker login [root@localhost docker]# docker tag hello-k 阅读全文
posted @ 2020-03-28 14:26 VipSoft 阅读(551) 评论(0) 推荐(0) 编辑
摘要:1. 创建 Dockerfile 文件、index.html测试页面 [root@localhost docker]# vi Dockerfile FROM nginx:1.17.6 #基于 nginx 1.17,在build 时,会自动pull 一个 1.17.6 版本的 nginx ENV LA 阅读全文
posted @ 2020-03-28 13:35 VipSoft 阅读(2148) 评论(0) 推荐(0) 编辑
摘要:[root@localhost ~]# docker pull zookeeper Using default tag: latest latest: Pulling from library/zookeeper 68ced04f60ab: Already exists 4874c5772968: 阅读全文
posted @ 2020-03-22 17:36 VipSoft 阅读(823) 评论(0) 推荐(0) 编辑
摘要:安装 ElasticSearch https://www.elastic.co/guide/cn/index.html [root@localhost ~]# docker pull elasticsearch Using default tag: latest latest: Pulling fr 阅读全文
posted @ 2020-03-22 16:27 VipSoft 阅读(438) 评论(0) 推荐(0) 编辑
摘要:ob for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for detail 阅读全文
posted @ 2020-03-13 15:18 VipSoft 阅读(19016) 评论(2) 推荐(0) 编辑
摘要:[root@localhost ~]# docker cp /opt/web/docker_cp.txt tomcat9093:/usr/local/apache-tomcat-9.0.31/ [root@localhost ~]# docker exec tomcat9093 ls -l /usr 阅读全文
posted @ 2020-03-12 10:05 VipSoft 阅读(3027) 评论(0) 推荐(0) 编辑
摘要:国外镜像太慢了。可以找一个国内的。比如:https://hub.daocloud.io/ 【其它的应用安装我都是用的 阿里 镜像:https://cr.console.aliyun.com/】 [root@localhost ~]# docker images REPOSITORY TAG IMAG 阅读全文
posted @ 2020-03-12 08:42 VipSoft 阅读(227) 评论(0) 推荐(0) 编辑