Loading

摘要: GitHub Action 是 GitHub 于 2018 年 10 月推出的一个 CI\CD 服务。 官方文档:https://docs.github.com/cn/actions CI\CD 持续集成(Continuous Integration) 持续交付(Continuous Deliver 阅读全文
posted @ 2021-07-19 17:30 亚里士多智 阅读(205) 评论(0) 推荐(0)
摘要: JumpServer 是符合 4A 的专业运维安全审计系统。 前提条件 已部署docker Jumpserver 对外需要开放 80 443 和 2222 端口 服务器、数据库、redis 等依赖组件请勿使用弱口令密码 MySQL准备 docker run -d --restart=always - 阅读全文
posted @ 2021-07-12 09:50 亚里士多智 阅读(516) 评论(0) 推荐(1)
摘要: 前提条件 已部署docker 已部署grafana 需要开放 3000 9100 和 9090 端口 启动node-exporter docker run --name node-exporter -d \ --restart=always \ -p 9100:9100 \ -v "/proc:/h 阅读全文
posted @ 2021-07-12 09:47 亚里士多智 阅读(655) 评论(0) 推荐(0)
摘要: 编写systemd文件 $ sudo vi /etc/systemd/system/iptables-import.service # /etc/systemd/system/iptables-import.service [Unit] Description=Iptables rules impo 阅读全文
posted @ 2021-07-12 09:45 亚里士多智 阅读(271) 评论(0) 推荐(0)
摘要: 本文档对于docker环境下并不适用,docker环境的iptables持久化请参考https://www.cnblogs.com/wiseo/p/15000745.html 添加iptables规则后使用以下命令进行规则持久化 sudo iptables-save > /home/<用户名>/ip 阅读全文
posted @ 2021-07-09 13:40 亚里士多智 阅读(835) 评论(0) 推荐(0)
摘要: 编译环境 执行编译操作环境如下 #操作系统 CentOS Linux release 7.4.1708 (Core) #docker版本 Version: 19.03.5 编译过程 Dockerfile FROM centos:7 WORKDIR /usr/local/gm-openresty # 阅读全文
posted @ 2021-07-02 17:20 亚里士多智 阅读(853) 评论(0) 推荐(0)
摘要: 问题现象 docker容器起来以后,查看9100端口监听情况,如下图: $ ss -lntp State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 128 *:22 *:* users:(("sshd",pid=1151, 阅读全文
posted @ 2021-06-30 17:29 亚里士多智 阅读(1025) 评论(0) 推荐(0)
摘要: 系统版本:CentOS Linux release 7.4.1708 (Core) $ vi /etc/nfsmount.conf # # /etc/nfsmount.conf - see nfsmount.conf(5) for details # # This is an NFS mount c 阅读全文
posted @ 2021-06-16 23:30 亚里士多智 阅读(1846) 评论(0) 推荐(0)
摘要: 在使用kubernetes过程中,我们经常会遇到无法删除资源的情况,但是如果一一去删除资源比较麻烦。下面给大家介绍强制删除的方法。 第一种 如果之前因为某些原因使得crd、pod、deploy、namespaces资源一直Terminating,再用kubectl delete crd也显示XXX 阅读全文
posted @ 2021-06-15 21:33 亚里士多智 阅读(1418) 评论(0) 推荐(0)
摘要: 上锁 文件锁有两种 shared lock 共享锁 exclusive lock 排他锁 当文件被上了共享锁之后,其他进程可以继续为此文件加共享锁,但此文件不能被加排他锁,此文件会有一个共享锁计数,加上一个共享锁计数+1,解锁后-1,只有当共享锁计数为0时,才有可能被上排他锁。 当文件被上了排锁之后 阅读全文
posted @ 2021-06-15 09:26 亚里士多智 阅读(596) 评论(0) 推荐(0)