小陆同学

python 中文名:蟒蛇,设计者:Guido van Rossum

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

随笔分类 -  devops

1

portal--内实现免密登陆其他系统的方案
摘要:首先说一下需求,我们有2套前后端的项目要做集成,其中一套使用开源系统scui作为portal,另外一套A项目以iframe的形式加到portal菜单里去。并且想要实现从portal跳转A项目时候是免密的,无需再次登陆。 这时候了解到vue的localstorage存的信息在同一个域名,同一个端口的情 阅读全文

posted @ 2022-05-27 17:56 小陆同学 阅读(514) 评论(0) 推荐(0) 编辑

k8s-应用发版报错
摘要:报错如下: DNS-1123 label must consist of lower case alphanumeric characters or '-', an 原因: k8s应用名称--不能出现下划线 阅读全文

posted @ 2022-05-27 17:28 小陆同学 阅读(120) 评论(0) 推荐(0) 编辑

git--记录文档
摘要:报错1: git clone https://github.com/liferay/liferay-portal.git Cloning into 'liferay-portal'... fatal: the remote end hung up unexpectedly 解决办法: 这个错误,原因 阅读全文

posted @ 2022-05-07 20:16 小陆同学 阅读(27) 评论(0) 推荐(0) 编辑

linux--jenkins安装
摘要:安装Jenkins 一、安装 Jenkins 前的环境准备(CentOS7) 1.添加yum仓库源 wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo 2.导入仓库源的key(秘钥) 阅读全文

posted @ 2022-05-07 20:02 小陆同学 阅读(223) 评论(0) 推荐(0) 编辑

python实现linux命令结果输出
摘要:def sh(self,cmds, print_msg=True): print('sh') msgStr = [] env = ###dev### compilePopen = subprocess.Popen(cmds,shell=True,stdout=subprocess.PIPE,clos 阅读全文

posted @ 2022-01-16 10:30 小陆同学 阅读(415) 评论(0) 推荐(0) 编辑

django--celery 项目部署,进程管理,supervisor的使用
摘要:我们可以使用echo_supervisord_conf命令得到supervisor配置模板,打开终端执行如下Linux shell命令: # echo_supervisord_conf > supervisord.conf 该命令输出文件到当前目录下(当然,你也可以指定绝对路径到具体位置),文件名为 阅读全文

posted @ 2020-08-28 21:25 小陆同学 阅读(502) 评论(1) 推荐(0) 编辑

linux--远程连接windows并执行cmd命令
摘要:1、在Linux服务器上的处理 首先需要在Linux中安装python,并且安装pywinm库。安装之前首先需要安装isodate和xmlwitch两个依赖包,在安装pywinrm。下面是安装时用到的命令。 pip install isodate pip install xmlwitch pip i 阅读全文

posted @ 2020-08-28 20:29 小陆同学 阅读(3616) 评论(0) 推荐(0) 编辑

ERROR: error pulling image configuration
摘要:docker pull镜像时报错: ERROR: error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/7 阅读全文

posted @ 2020-08-28 20:22 小陆同学 阅读(4947) 评论(0) 推荐(1) 编辑

git--不小心推代码到master之后,怎么办?
摘要:获取commit id git log 确定你要回滚到哪个版本 git reset --hard commit_id git push origin master --force 成功! 报错:remote: GitLab: You are not allowed to force push cod 阅读全文

posted @ 2020-08-28 20:20 小陆同学 阅读(1743) 评论(0) 推荐(1) 编辑

python--向钉钉群发送消息(亲测可用)
摘要:向钉钉群发送文本消息 def sendDingDing(self,text): print(text) headers = {'Content-Type': 'application/json'} webhook = "https://oapi.dingtalk.com/robot/send?acc 阅读全文

posted @ 2020-08-28 20:16 小陆同学 阅读(2831) 评论(0) 推荐(0) 编辑

python--注册钉钉回调事件(亲测可用)
摘要:钉钉API文档:https://ding-doc.dingtalk.com/doc#/serverapi2/skn8ld 钉钉有回调事件流程,有哪些回调?比如:通讯录回调、审批回调等等,拿通讯录回调来说,就是当你公司组织架构发生变动时,会自动触发你自己注册的回调地址,然后根据回调信息做一些自定义的处 阅读全文

posted @ 2020-08-28 20:12 小陆同学 阅读(2738) 评论(2) 推荐(0) 编辑

python--发送文本消息、链接消息带图片到钉钉告警群
摘要:发送文本消息 def sendDingDing(self,text): headers = {'Content-Type': 'application/json'} webhook = "https://oapi.dingtalk.com/robot/send?access_token="+self 阅读全文

posted @ 2020-05-27 21:40 小陆同学 阅读(1536) 评论(0) 推荐(0) 编辑

java--Error: JAVA_HOME is not defined correctly. We cannot execute
摘要:前情:之前用java 1.8,因业务需求要用到1.7,多版本jdk安装后,echo $JAVA_HOME路径指的不是我想要的,把环境变量1.7注释掉仍然不起作用,把新安装的1.7删除重新编译,报错:JAVA_HOME is not defined correctly. We cannot execu 阅读全文

posted @ 2020-03-13 23:58 小陆同学 阅读(3246) 评论(0) 推荐(0) 编辑

python--安装ldap报错
摘要:Running setup.py install for python-ldap ... error ERROR: Command errored out with exit status 1: command: /usr/local/python3/bin/python3.7 -u -c 'imp 阅读全文

posted @ 2020-03-03 00:24 小陆同学 阅读(2949) 评论(0) 推荐(0) 编辑

linux-发送文件夹rsync -avz salt-发送文件/文件夹
摘要:linux下同步文件夹 rsync -avz /local_position/test_dir/ root@192.168.1.165:/target_position # ps:rsync -avz本地路径+要传送的文件夹 远程用户@远程ip:要上传到的目录 上述命令执行之后,cmd命令行一直处于 阅读全文

posted @ 2019-12-17 22:42 小陆同学 阅读(1065) 评论(0) 推荐(0) 编辑

salt-api 获取服务器信息,minion批量执行cmd命令
摘要:import requests import json try: import cookielib except: import http.cookiejar as cookielib # 使用urllib2请求https出错,做的设置 import ssl context = ssl._creat 阅读全文

posted @ 2019-12-13 22:44 小陆同学 阅读(608) 评论(0) 推荐(0) 编辑

devops--django+ldap
摘要:首先,什么是Ldap,官方解释 轻型目录访问协议(英文:Lightweight Directory Access Protocol,缩写:LDAP,/ˈɛldæp/)是一个开放的,中立的,工业标准的应用协议,通过ip协议提供访问控制和维护分布式信息的目录信息。 ldap能做什么?为什么要用ldap 阅读全文

posted @ 2019-11-21 21:19 小陆同学 阅读(366) 评论(0) 推荐(0) 编辑

saltstack--史上最细致安装攻略!亲测无坑
摘要:准备一台虚拟机node1: 配置网卡 设置主机域名解析 vim /etc/hosts 设置DNS vim /etc/resolv.conf 安装最新 epel yum 源 rpm -ivh https://mirrors.aliyun.com/epel/epel-release-latest-7.n 阅读全文

posted @ 2019-07-28 20:44 小陆同学 阅读(9495) 评论(0) 推荐(1) 编辑

saltstack--关于报错“UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 6: ordinal not in range(128)”
摘要:SaltStack管理工具允许管理员对多个操作系统创建一个一致的管理系统,包括VMware vSphere环境。 在安装saltstack的过程中,执行到 salt-key(在master中查看所有key的状态)的时候,遇到上述报错。 超 齐 全 的 解 决 攻 略 1. 在python的安装路径下 阅读全文

posted @ 2019-07-26 23:40 小陆同学 阅读(1706) 评论(1) 推荐(0) 编辑

zabbix--完整安装攻略
摘要:zabbix:是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案。 zabbix能监视各种网络参数,保证服务器系统的安全运营;并提供灵活的通知机制以让系统管理员快速定位/解决存在的各种问题。 zabbix由2部分构成,zabbix server与可选组件zabbix ag 阅读全文

posted @ 2019-07-23 19:25 小陆同学 阅读(266) 评论(0) 推荐(0) 编辑

1
点击右上角即可分享
微信分享提示