随笔分类 - linux shell
摘要:001、问题 002、问题原因 原因为升级python后新建了软连接指向了新版本,除非同时升级yum不然无法使用。需要手动更改报错文件指向python2后即可解决。 003、解决方法 找出python2.7的路径 whereis python 编辑报错的配置文件,vim /usr/libexec/u
阅读全文
摘要:001、问题 except KeyboardInterrupt, e: 002、问题原因 2.原因:yum需要用python2编译,如果服务器安装的是python3并作为默认编译器的话,就会出现这个错误。 003、解决方法 找到python2的路径: whereis python 004、修改yum
阅读全文
摘要:001、 tar -xJvf Python-3.7.9.tar.xz
阅读全文
摘要:001、grep -v实现 [liujiaxin01@pc1 test]$ ls a.txt [liujiaxin01@pc1 test]$ cat a.txt ## 测试数据 r t d d g k z c k e w a d j k q f i [liujiaxin01@pc1 test]$ g
阅读全文
摘要:001、 方法1 grep -v [liujiaxin01@pc1 test]$ ls a.txt [liujiaxin01@pc1 test]$ cat a.txt ## 测试数据 r t d d g k z c g e w a d j e q f i [liujiaxin01@pc1 test]
阅读全文
摘要:001、查看防火墙状态 systemctl status firewalld 002、关闭防火墙 systemctl stop firewalld 003、查看关闭防火墙状态 systemctl status firewalld 004、启动防火墙并查看状态 systemctl start fire
阅读全文
摘要:001、ls + sed实现 [root@pc1 data]# ls ## 测试文件、目录 a.txt test01 test02 [root@pc1 data]# ls | sed "s#^#$(pwd)/#" ## ls + sed实现 /home/data/a.txt /home/data/t
阅读全文
摘要:001、echo + xargs + cp实现 [root@pc1 data]# ls ## 测试目录及文件a.txt为测试文件, test01~04为测试目录,均为空目录 a.txt test01 test02 test03 test04 [root@pc1 data]# tree ## 利用tr
阅读全文
摘要:001、 yum install libzip libzip-devel
阅读全文
摘要:001、 (base) [root@pc1 build]# cat /etc/redhat-release ## 系统 CentOS Linux release 7.6.1810 (Core) (base) [root@pc1 build]# cmake --version ## 当前cmake版本
阅读全文
摘要:001、 [root@pc1 test3]# ls test.txt [root@pc1 test3]# cat test.txt ## 测试数据 addg ad adfgg d dfg [root@pc1 test3]# awk '{print length}' test.txt 4 2 5 1
阅读全文
摘要:https://www.kernel.org/pub/software/scm/git
阅读全文
摘要:set -e选项保证程序的每一步都执行正确,如果前面一部程序执行错误,则直接退出程序 001、 不加 set -e的情况 (base) [root@PC1 test2]# ls test.sh (base) [root@PC1 test2]# cat test.sh #!/bin/bash xxxx
阅读全文
摘要:https://blog.csdn.net/qq_40605511/article/details/122590227 https://blog.csdn.net/qq_40605511/article/details/122590227
阅读全文
摘要:001、问题 src/delly.h:8:42: fatal error: boost/graph/adjacency_list.hpp: No such file or directory 002、解决方法 (py37) [root@localhost delly-1.1.5]# yum inst
阅读全文
摘要:001、系统 [root@localhost home]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) 002、查看当前glibc版本 [root@localhost home]# ldd --version ldd (G
阅读全文
摘要:001、问题 002、解决方法 wget -c https://github.com/ldc-developers/ldc/releases/download/v1.30.0/ldc2-1.30.0-linux-x86_64.tar.xz tar -xJvf ldc2-1.30.0-linux-x8
阅读全文
摘要:001、系统 [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) 002、当前make版本 [root@localhost ~]# make --version GNU Make 3.82
阅读全文
摘要:001、系统 [root@localhost home]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) 002、当前gcc 及 g++版本 [root@localhost home]# gcc --version gcc
阅读全文