摘要: #os && shutil 模块 阅读全文
posted @ 2020-09-24 18:11 pigeast 阅读(109) 评论(0) 推荐(0)
摘要: #Visual Studio 1)基础操作 1. 设置自动保存 file >> Auto Save || Preferences >> Settings >> Commonly Used 2. HTML展示 Extention插件live server 可以实现html的实时查看修改内容 3. py 阅读全文
posted @ 2020-09-24 14:14 pigeast 阅读(143) 评论(0) 推荐(0)
摘要: ssh 无法远程登录 #####1)确认openssh的客户端是否安装 ps aux | grep ssh ssh 服务是否开启 若没有开启,apt install openssh-server 重启ssh:/etc/init.d/ssh restart #####2)修改配置文件容许root登录 阅读全文
posted @ 2020-09-24 00:31 pigeast 阅读(739) 评论(0) 推荐(0)
摘要: find 命令 # 如下两种方式,速度均挺快,但是通过grep 是匹配的会匹配很多 find / -name test.txt # 精确查找名称为test.txt的文件 find / | grep test.txt touch test{1..10}.txt # 查找并删除文件 find . | g 阅读全文
posted @ 2020-09-23 23:37 pigeast 阅读(133) 评论(0) 推荐(0)
摘要: Centos7 安装redis 1) 下载redis源码包尝试安装 # 地址:http://download.redis.io/releases/ # 下载最新稳定版 (此链接目前最新的版本为6.0.8) wget http://download.redis.io/releases/redis-st 阅读全文
posted @ 2020-09-23 17:38 pigeast 阅读(173) 评论(0) 推荐(0)
摘要: #zerorpc 注:python库自带的rpc模块是SimpleXMLRPCServer 1)安装zerorpc #1) 通过pip pip3 install zerorpc # ERROR: from _ctypes import Union, Structure, Array ModuleNo 阅读全文
posted @ 2020-09-22 17:43 pigeast 阅读(536) 评论(0) 推荐(0)
摘要: uwsgi 官方文档链接:uWSGI # 渐渐习惯使用源码包安装的形式 放置在/usr/local/, # 创建软链接 ln -s 源执行文件 /usr/bin/目标执行文件 这样就方便在终端直接输入命令执行 阅读全文
posted @ 2020-09-21 23:54 pigeast 阅读(128) 评论(0) 推荐(0)
摘要: #修改pip的下载源 # 在家目录下~, 新建.pip/pip.conf文件 # 内部定义如下内容,即给定一个国内的镜像源地址 [global] index_url=https://pypi.tuna.tsinghua.edu.cn/simple 阅读全文
posted @ 2020-09-21 21:25 pigeast 阅读(443) 评论(0) 推荐(0)
摘要: #shell 数组 # 定义一个数组 ARRAY=('a' 'b' 'c' 'd') # 空格作为元素的分隔符 # 访问数组 echo ${ARRAY[0]} # 获取第一个元素,a echo ${ARRAY[@]} # 获取全部元素 等价${ARRAY[*]} a b c d echo ${#AR 阅读全文
posted @ 2020-09-21 10:20 pigeast 阅读(110) 评论(0) 推荐(0)
摘要: #Centos7 安装Mariadb ###1) 安装前查看-了解总结 Centos7 原生安装了Mariadb, 并且可以看到在/etc/my.cnf文件 但是不知道如何启动,启动不了 索性直接删除了安装包,自己重新安装 ###2)yum安装Mariadb #1) 修改为国内的源 mv /etc/ 阅读全文
posted @ 2020-09-20 23:30 pigeast 阅读(719) 评论(0) 推荐(0)