摘要: python安装完毕后,提示找不到ssl模块: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting xxx Could 阅读全文
posted @ 2019-05-09 09:06 qcuser 阅读(675) 评论(0) 推荐(0) 编辑
摘要: yum install wget -y cd /etc/yum.repos.d && for r in *.repo; do mv $r $r.bak;done wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/r 阅读全文
posted @ 2019-05-06 16:14 qcuser 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 1.下载python3.6:wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz 2.解压:tar -xzf Python-3.6.4.tgz 3.安装:cd Python-3.6.4 ./configure --prefix=/ 阅读全文
posted @ 2019-04-28 16:34 qcuser 阅读(2396) 评论(0) 推荐(0) 编辑
摘要: 模拟场景:192.168.1.5服务器上配置,通过ssh远程免密登录192.168.1.160 1、安装SSH,此处省略 2、生成公钥和私钥,生成的秘钥默认在/root/.ssh/文件夹里面 [root@localhost ~ 09:16:45&&26]# ssh-keygen #默认按enter直 阅读全文
posted @ 2019-04-03 10:35 qcuser 阅读(255) 评论(0) 推荐(0) 编辑
摘要: leafpad /etc/apt/sources.list #阿里云deb http://mirrors.aliyun.com/kali kali-rolling main non-free contribdeb-src http://mirrors.aliyun.com/kali kali-rol 阅读全文
posted @ 2019-03-27 17:39 qcuser 阅读(1549) 评论(0) 推荐(0) 编辑
摘要: 1.查看RHEL是否安装了yum: rpm -qa |grep yum 2 删除redhat自带的yum包: rpm -qa|grep yum|xargs rpm -e --nodeps(不检查依赖,直接删除rpm包) rpm -qa |grep yum 3.下载新的yum包。使用Centos7的y 阅读全文
posted @ 2019-03-20 16:15 qcuser 阅读(2946) 评论(0) 推荐(0) 编辑
摘要: 1. 安装apache:yum install apr-devel apr-util-devel -yyum install gcc gcc-c++ autoconf automake -yyum install bzip2 -ycd /usr/src/ wget https://ftp.pcre. 阅读全文
posted @ 2019-03-19 09:39 qcuser 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 1. 激活root用户: sudo passwd root 2. 安装ssh服务: sudo apt-get install openssh-server 开启服务:/etc/init.d/ssh start 关闭服务:/etc/init.d/ssh stop 重启服务:/etc/init.d/ss 阅读全文
posted @ 2018-12-28 19:43 qcuser 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 输入如下命令: 1. redis-cli.exe2. shutdown3. exit4. redis-server.exe redis.windows.conf 阅读全文
posted @ 2018-09-14 22:46 qcuser 阅读(832) 评论(0) 推荐(0) 编辑
摘要: List: 1、List写在方括号之间,元素用逗号隔开。 2、和字符串一样,list可以被索引和切片。 3、List可以使用+操作符进行拼接。 4、List中的元素是可以改变的。 Tuple: 1、与字符串一样,元组的元素不能修改。 2、元组也可以被索引和切片,方法一样。 3、注意构造包含0或1个元 阅读全文
posted @ 2018-08-20 16:48 qcuser 阅读(154) 评论(0) 推荐(0) 编辑