
简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
下载vmware station 12 pro后安装,发现有以下问题:解决方法:在提示这个页面的时候,在运行中输入: %temp%在打开来的文件窗口中,找到末尾为 ~setup的文件夹,一般在第一个:进入这个文件夹,找到vmwarestation的可运行文件,点击运行安装即可
前后端分离的登录验证我们的程序一般是通过微信扫码来进行登录的,但是在接进前后端分离之后,发现登录验证过程不是很友好,于是查了一些资料。比较推荐用JWT来做一个token的验证实现登录,但是有些文章提到,JWT token会有token失效时间过短造成要重新登录的问题。考虑到这个,参考一些文章在jwt的基础上添加了auth2.0中的refresh token的机制。关于代码我们的前后端架构是f...
有时候想知道import的模块的文件路径,看看脚本,可以通过以下方式来查看:Python 2.6.6 (r266:84292, Jul 23 2015, 15:22:56)[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2Type "help", "copyright", "credits" or "license" for more in
在docker容器中,安装好ssh:1)替换掉容器中的安装源为163源2)安装ssh服务apt-get updateapt-get install openssh-server3)添加目录,修改ssh配置文件mkdir -p /var/run/sshdvim /etc/pam.d/sshd找到 session required pam_loginu
在Push一个镜像到本地的registry时,报错:#docker push 192.168.163.131:5000/testThe push refers to a repository [192.168.163.131:5000/test]Get https://192.168.163.131:5000/v1/_ping: http: server gave HTTP respons
代码如下:#!/usr/bin/env pythonimport socketfrom time import sleepimport Queueimport threadingdef put_queue(q):with open('D:/vim/alllist','rb') as f:for line in f:#print 'Put %s to qu
python3.7.5环境打包打包前准备环境可能是由于版本原因,fpm打包时默认会从系统拿默认的python来打包,即使进行虚拟环境也一样。但是我们需要用python3。所以首先把系统默认的python改为3.7cp /usr/bin/python3.7 /usr/bin/pythoncp /usr/bin/pip3.7 /usr/bin/pip3.7因为打包virtualenv需要...
为方便用ipset 来管理防火墙,写了下面Ipset类来对Ip进行管理#!/usr/bin/env python# coding: utf-8import MySQLdbimport MySQLdb.cursorsimport subprocessimport loggingimport re,osimport xml.saxclass XMLHandler(xml.sa...
#!/usr/sbin/env pythonimport urllib2,jsonimport os,threadingdef action(ip):try:a=urllib2.urlopen("http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip="+ip).read()
如题:#!/usr/bin/env python# encoding: utf-8import rewith open('a.txt', 'r') as f:dictResult = {}# Find the letters each linefor line in f.readlines():listMatch = re.finda







