- 博客(9)
- 收藏
- 关注
原创 云服务器安装ftp服务端,客户端无法访问
配置有弹性公网IP的Linux云服务器搭建FTP服务端后,FTP客户端访问FTP服务端可能会报错显示云服务器的内网IP或没响应,也会出现登录成功,但是list目录和文件的时候卡住,我用阿里云ECS配置好vsftpd.conf文件里面的配置后实现了FTP公网上传下载文件
2022-02-15 11:36:37
1725
原创 xshell配置密钥登录,不同权限的用户配置密钥登录
首先要有公钥(.pub)和私钥(.pem),公钥的内容复制到被远程主机的~/.ssh/authorized_keys文件里面,私钥导入到做远程的主机(xshell)里面,一对公私钥可以通用到其他服务器。一对公私钥也可以通用到不同的用户,前提是私钥导入到做远程的主机(xshell)里面和公钥的内容复制到被远程主机的用户的~/.ssh/authorized_keys文件里面,即使普通用户用的是r...
2019-03-29 18:54:09
1129
原创 python发邮件报错[Errno -2] Name or service not known或者[Errno 110] Connection timed out,iptables允许发送邮件
因为iptables防火墙是默认拒绝所有的数据包进入,出去数据都是允许,无法用python发送邮件,报错信息为[Errno -2] Name or service not known或者[Errno 110] Connection timed out要想发送邮件必须开放源端口为25和53的数据进入。具体命令为:iptables -t filter -I INPUT -p tcp --s...
2019-03-20 15:53:19
4939
原创 windows server 2008 r2无法添加功能和角色,检查系统更新时也提示0x80070424?无法手动安装系统补丁
无法发现系统的状态。找到一个意外的异常:System.Runtime.InteropServices.COMException (0x80070424): 指定的服务未安装。 (异常来自 HRESULT:0x80070424) 在 System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode...
2018-05-29 16:23:22
10689
原创 安装scrapy error: [WinError 3] 系统找不到指定的路径。: 'C:\Program Files (x86)\Micros oft Visual Studio 14.0\VC**
error: [WinError 3] 系统找不到指定的路径。: 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\PlatformSDK\\lib' ----------------------------------------Command "c:\python36\python.exe -u -c "imp...
2018-05-25 11:55:46
33894
原创 python 发邮件遇到gaierror: [Errno 11004] getaddrinfo failed
今天用python发邮件出现如下错误:Traceback (most recent call last): File "D:\motest.py", line 95, in <module> sendmail(service_name,test) File "D:\motest.py", line 30, in sendmail server = smtplib.SMT...
2018-03-02 10:42:05
16972
1
原创 zabbix3.4网页提示Assuming that agent dropped connection because of access permissions
zabbix3.4今天遇到个问题提示Received empty response from Zabbix Agent at [192.168.1.104]. Assuming that agent dropped connection because of access permissions然后看了服务器的zabbix-server的日志是item "jiang1:net.if.out[e
2018-02-05 17:48:23
12961
原创 python 在windows系统上处理有空格的文件路径的问题
windows系统使用python压缩文件到一个有空格的文件路径里面,结果一直报错压缩不到指定的文件夹里面去,而是压缩到了那个空格之前的文件夹里面,试了好久终于找到了一个很简单的方法。具体如下:opt = "Rar.exe a -ep1 %s %s\\*.*" %(folder,temp_folder)变量folder是一个带空格的路径:E:\bak_log\ztc\vms\s
2018-01-24 12:18:13
7177
原创 python识别图片使用pytesser模块时__init__.py调用subprocess模块出现WindowsError: [Error 2]
File "C:\Python27\lib\site-packages\pytesser\__init__.py", line 31, in image_to_string call_tesseract(scratch_image_name, scratch_text_name_root) File "C:\Python27\lib\site-packages\pytesser\__init__.py", line 21, in call_tesseract proc = subproc
2018-01-19 11:50:27
6051
4
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人