上一页 1 2 3 4 5 6 7 8 ··· 23 下一页
摘要: Closing as this looks like a mismatch between build library and Python versions;编译版本与实际版本不同导致。(完) 阅读全文
posted @ 2022-05-14 23:52 Anonymous596 阅读(273) 评论(0) 推荐(0)
摘要: 编译安装 swig 或 nginx 时需要 pcre-config, 在 ubuntu 下可以这么安装, $ sudo apt-get install libpcre3-dev $ pcre-config --version (完) 阅读全文
posted @ 2022-05-12 20:56 Anonymous596 阅读(87) 评论(0) 推荐(0)
摘要: 如题,虚拟机开机提示如下错误信息, 解决方案,修改显卡控制器为 VBoxVGA 如下,(注意,更改默认的推荐设置后,设置框底部可能出现无效设置的提示,没有影响,无需担心) (完) 阅读全文
posted @ 2022-05-07 09:25 Anonymous596 阅读(2307) 评论(0) 推荐(0)
摘要: 查所有 ext4 磁盘, $ df -ht ext4 查某个文件夹大小, $ du -hd 1 <folder name> (完) 阅读全文
posted @ 2022-05-03 16:57 Anonymous596 阅读(149) 评论(0) 推荐(0)
摘要: 查看 coredump 文件是否开启,如下输出表示没有开启 $ ulimit -a core file size (blocks, -c) 0 ... $ ulimit -c 0 临时开启, $ ulimit -c unlimited 要永久开启,将语句加入 /etc/profile, ulimit 阅读全文
posted @ 2022-04-18 15:12 Anonymous596 阅读(429) 评论(0) 推荐(0)
摘要: 首先安装 pylint-django, $ sudo pip3 install pylint-django 然后设置 pylint 启动选项,如下图, (完) 阅读全文
posted @ 2022-04-12 10:47 Anonymous596 阅读(105) 评论(0) 推荐(0)
摘要: 假设 share folder 名为 vbox_share, 则在虚拟机中使用以下命令即可, $ sudo mount -t vboxsf vbox_share /mnt (完) 阅读全文
posted @ 2022-04-11 23:15 Anonymous596 阅读(138) 评论(0) 推荐(0)
摘要: 可以创建一个 pip.conf 文件,用于增加默认配置,例如,创建文件 /etc/pip.conf 并填入以下内容, [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple [install] trusted-host = http 阅读全文
posted @ 2022-03-23 15:59 Anonymous596 阅读(876) 评论(0) 推荐(0)
摘要: 安装 pylint 以后可以使用 pyreverse 生成 Python 代码库的 dot 文件,并且可以调用 graphviz 生成 png, pdf 等 $ sudo pip3 install pylint $ sudo pip3 install graphviz 下载 https://www. 阅读全文
posted @ 2022-03-22 13:15 Anonymous596 阅读(769) 评论(0) 推荐(0)
摘要: 给每个 log 文件第一行插入 hello world, $ find . -name '*.log' | xargs sed -i '1 i\hello world' 给每个 log 文件匹配模式 bcd (可以使用其他正则表达例如 \w+\d+\w+ etc.) 行之前插入 hello worl 阅读全文
posted @ 2022-03-03 19:41 Anonymous596 阅读(181) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 23 下一页