- 博客(13)
- 收藏
- 关注
原创 centOS8安装ffmpeg
1.添加RPMfusion仓库$ sudo yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm2.安装FFmpegsudoyuminstallhttp://rpmfind.net/linux/epel/7/x86_64/Packages/s/SDL2-2.0.10-1.el7.x86_64.rpmsudo yum install ffmpeg若有需要可...
2020-07-31 15:16:17 385
原创 centos8 安装redis
1.添加EPEL仓库在CentOS或Red Hat系统中,需要先添加EPEL仓库#添加EPEL仓库sudo yum install epel-release#更新yum源sudo yum update2.安装yum install redis3.启动systemctl start redis4.设置开机自启systemctl enable redis5.修改配置打开/etc/redis.conf文件。1)允许远程连接找到下面这一行,注释掉:
2020-05-29 15:08:25 191 1
原创 Gerapy安装macOS
由于所需众多包版本跟环境的包冲突,所需在虚拟环境中安装本次安装版本 gerapy ==0.9.2scrapy==1.6.0 #安装scrapy版本太高会导致gerapy初始化失败ps:mac中安装gerapy,由于在虚拟环境中安装会报错:mac “command 'gcc' failed with exit status 1”,解决办法:xcode-select --installpip install gerapy pip install scrap...
2020-05-28 22:02:56 251
原创 Scrapyd安装部署
Scrapyd安装部署: 在向服务器部署爬虫时,我们需要下载2个模块 a、scrapyd(安装在服务端,运行服务) b、scrapy-client(安装在客户端,用于将自己的爬虫部署到服务器上)stept1 :>>>pip install scrapydstep2:在site-packages 下的scrapyd文件里面 vim default_scrapyd.confbind_address默认值127.0.0.1,改为0.0.0....
2020-05-28 20:56:01 308
原创 CentOS8安装Docker时出错
出错:requires containerd.io >= 1.2.2-3, but none of the providers安装containerd.io即可yum install https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm
2020-05-28 16:59:38 406
原创 Mac卸载python3安装Anaconda
基于python3.61.删Python.framework$ ls /Library/Frameworks/Python.framework/Versions/$ sudo rm -rf /Library/Frameworks/Python.framework/Versions/3.62删除应用目录:$ cd /Applications$ sudo rm -rf Py...
2020-01-02 15:44:26 1033
原创 修改brew源
# 替换brew.git:step1:cd "$(brew --repo)"step2:git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.gitstep3:cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core...
2019-10-04 22:02:05 289
原创 远程连接报错pymysql.err.OperationalError: (1045
pymysql.err.OperationalError: (1045, "Access denied for user 'iiiii'@'?.?.?.?' (using password: YES)")先去查看你的表:select user,host from mysql.user;看看是不是有用户名为空的用户,有的话干掉它。因为当你设置了用户a:’user0‘@‘%’然后你...
2018-10-17 11:08:04 17423
原创 ssh保持连接
1.putty,酱紫就ok 2.终端机器上设置cat /etc/ssh/sshd_config#ClientAliveInterval 0 (设置成60,就每60秒连一下)#ClientAliveCountMax 3 (闲置3为分钟断开)找到ClientAliveCountMax修改你想要的值,最后重新加载设置:service sshd relo...
2018-10-11 12:07:44 465
原创 设置.py 默认打开方式为idle
只要将注册表中HKEY_CLASSES_ROOT\py_auto_file\shell\open\command的值设置为:"C:\python27\pythonw.exe" "C:\python27\Lib\idlelib\idle.pyw" -e "%1"(路径要改为自己python的安装路径)就可以完美解决了。...
2018-10-10 16:24:13 6753 2
原创 mysql忘记root密码重置
以管理员运行cmdnet stop mysql{若服务名无效,则需要: 1.cd C:\Program Files\MySQL\MySQL Server 5.7\bin 2.mysqld -install 3.mysqld --initialize(无这一步会:“Mysql 服务无法启动 服务没有报告任何错误”,若没有init则不存在data目录,自然无法启动成功)...
2018-10-10 16:23:39 159
原创 Python No module named win32api
https://github.com/mhammond/pywin32/releases
2018-07-04 01:31:05 282
转载 解决Scrapy安装错误:Microsoft Visual C++ 14.0 is required...
问题描述当前环境win10,python_3.6.1,64位。在windows下,在dos中运行pip install Scrapy报错:?12building 'twisted.test.raiser' extensionerror: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual 解决方案http://w...
2018-07-04 01:30:06 153
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人