摘要:首先说一下需求,我们有2套前后端的项目要做集成,其中一套使用开源系统scui作为portal,另外一套A项目以iframe的形式加到portal菜单里去。并且想要实现从portal跳转A项目时候是免密的,无需再次登陆。 这时候了解到vue的localstorage存的信息在同一个域名,同一个端口的情
阅读全文
摘要:报错如下: DNS-1123 label must consist of lower case alphanumeric characters or '-', an 原因: k8s应用名称--不能出现下划线
阅读全文
摘要:报错1: git clone https://github.com/liferay/liferay-portal.git Cloning into 'liferay-portal'... fatal: the remote end hung up unexpectedly 解决办法: 这个错误,原因
阅读全文
摘要:安装Jenkins 一、安装 Jenkins 前的环境准备(CentOS7) 1.添加yum仓库源 wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo 2.导入仓库源的key(秘钥)
阅读全文
摘要:def sh(self,cmds, print_msg=True): print('sh') msgStr = [] env = ###dev### compilePopen = subprocess.Popen(cmds,shell=True,stdout=subprocess.PIPE,clos
阅读全文
摘要:我们可以使用echo_supervisord_conf命令得到supervisor配置模板,打开终端执行如下Linux shell命令: # echo_supervisord_conf > supervisord.conf 该命令输出文件到当前目录下(当然,你也可以指定绝对路径到具体位置),文件名为
阅读全文
摘要:1、在Linux服务器上的处理 首先需要在Linux中安装python,并且安装pywinm库。安装之前首先需要安装isodate和xmlwitch两个依赖包,在安装pywinrm。下面是安装时用到的命令。 pip install isodate pip install xmlwitch pip i
阅读全文
摘要:docker pull镜像时报错: ERROR: error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/7
阅读全文
摘要:获取commit id git log 确定你要回滚到哪个版本 git reset --hard commit_id git push origin master --force 成功! 报错:remote: GitLab: You are not allowed to force push cod
阅读全文
摘要:向钉钉群发送文本消息 def sendDingDing(self,text): print(text) headers = {'Content-Type': 'application/json'} webhook = "https://oapi.dingtalk.com/robot/send?acc
阅读全文
摘要:钉钉API文档:https://ding-doc.dingtalk.com/doc#/serverapi2/skn8ld 钉钉有回调事件流程,有哪些回调?比如:通讯录回调、审批回调等等,拿通讯录回调来说,就是当你公司组织架构发生变动时,会自动触发你自己注册的回调地址,然后根据回调信息做一些自定义的处
阅读全文
摘要:发送文本消息 def sendDingDing(self,text): headers = {'Content-Type': 'application/json'} webhook = "https://oapi.dingtalk.com/robot/send?access_token="+self
阅读全文
摘要:前情:之前用java 1.8,因业务需求要用到1.7,多版本jdk安装后,echo $JAVA_HOME路径指的不是我想要的,把环境变量1.7注释掉仍然不起作用,把新安装的1.7删除重新编译,报错:JAVA_HOME is not defined correctly. We cannot execu
阅读全文
摘要: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
阅读全文
摘要:linux下同步文件夹 rsync -avz /local_position/test_dir/ root@192.168.1.165:/target_position # ps:rsync -avz本地路径+要传送的文件夹 远程用户@远程ip:要上传到的目录 上述命令执行之后,cmd命令行一直处于
阅读全文
摘要:import requests import json try: import cookielib except: import http.cookiejar as cookielib # 使用urllib2请求https出错,做的设置 import ssl context = ssl._creat
阅读全文
摘要:首先,什么是Ldap,官方解释 轻型目录访问协议(英文:Lightweight Directory Access Protocol,缩写:LDAP,/ˈɛldæp/)是一个开放的,中立的,工业标准的应用协议,通过ip协议提供访问控制和维护分布式信息的目录信息。 ldap能做什么?为什么要用ldap
阅读全文
摘要:准备一台虚拟机node1: 配置网卡 设置主机域名解析 vim /etc/hosts 设置DNS vim /etc/resolv.conf 安装最新 epel yum 源 rpm -ivh https://mirrors.aliyun.com/epel/epel-release-latest-7.n
阅读全文
摘要:SaltStack管理工具允许管理员对多个操作系统创建一个一致的管理系统,包括VMware vSphere环境。 在安装saltstack的过程中,执行到 salt-key(在master中查看所有key的状态)的时候,遇到上述报错。 超 齐 全 的 解 决 攻 略 1. 在python的安装路径下
阅读全文
摘要:zabbix:是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案。 zabbix能监视各种网络参数,保证服务器系统的安全运营;并提供灵活的通知机制以让系统管理员快速定位/解决存在的各种问题。 zabbix由2部分构成,zabbix server与可选组件zabbix ag
阅读全文