随笔分类 -  linux shell

上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 77 下一页
摘要:001、问题 002、问题原因 原因为升级python后新建了软连接指向了新版本,除非同时升级yum不然无法使用。需要手动更改报错文件指向python2后即可解决。 003、解决方法 找出python2.7的路径 whereis python 编辑报错的配置文件,vim /usr/libexec/u 阅读全文
posted @ 2022-10-21 16:43 小鲨鱼2018 阅读(2097) 评论(0) 推荐(0)
摘要:001、问题 except KeyboardInterrupt, e: 002、问题原因 2.原因:yum需要用python2编译,如果服务器安装的是python3并作为默认编译器的话,就会出现这个错误。 003、解决方法 找到python2的路径: whereis python 004、修改yum 阅读全文
posted @ 2022-10-21 16:33 小鲨鱼2018 阅读(456) 评论(0) 推荐(0)
摘要:001、 tar -xJvf Python-3.7.9.tar.xz 阅读全文
posted @ 2022-10-21 15:45 小鲨鱼2018 阅读(48) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2022-10-21 10:19 小鲨鱼2018 阅读(261) 评论(0) 推荐(0)
摘要: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] 阅读全文
posted @ 2022-10-21 10:07 小鲨鱼2018 阅读(487) 评论(0) 推荐(0)
摘要:001、查看防火墙状态 systemctl status firewalld 002、关闭防火墙 systemctl stop firewalld 003、查看关闭防火墙状态 systemctl status firewalld 004、启动防火墙并查看状态 systemctl start fire 阅读全文
posted @ 2022-10-17 14:28 小鲨鱼2018 阅读(108) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2022-10-16 16:20 小鲨鱼2018 阅读(2119) 评论(0) 推荐(0)
摘要:001、echo + xargs + cp实现 [root@pc1 data]# ls ## 测试目录及文件a.txt为测试文件, test01~04为测试目录,均为空目录 a.txt test01 test02 test03 test04 [root@pc1 data]# tree ## 利用tr 阅读全文
posted @ 2022-10-15 19:41 小鲨鱼2018 阅读(1284) 评论(0) 推荐(0)
摘要:001、 yum install libzip libzip-devel 阅读全文
posted @ 2022-10-14 15:50 小鲨鱼2018 阅读(356) 评论(0) 推荐(0)
摘要:001、 (base) [root@pc1 build]# cat /etc/redhat-release ## 系统 CentOS Linux release 7.6.1810 (Core) (base) [root@pc1 build]# cmake --version ## 当前cmake版本 阅读全文
posted @ 2022-10-14 15:12 小鲨鱼2018 阅读(1128) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2022-10-14 09:41 小鲨鱼2018 阅读(1223) 评论(0) 推荐(0)
摘要:https://www.kernel.org/pub/software/scm/git 阅读全文
posted @ 2022-10-08 21:54 小鲨鱼2018 阅读(13) 评论(0) 推荐(0)
摘要:set -e选项保证程序的每一步都执行正确,如果前面一部程序执行错误,则直接退出程序 001、 不加 set -e的情况 (base) [root@PC1 test2]# ls test.sh (base) [root@PC1 test2]# cat test.sh #!/bin/bash xxxx 阅读全文
posted @ 2022-10-06 12:10 小鲨鱼2018 阅读(1162) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/qq_40605511/article/details/122590227 https://blog.csdn.net/qq_40605511/article/details/122590227 阅读全文
posted @ 2022-10-05 11:33 小鲨鱼2018 阅读(45) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2022-10-02 18:18 小鲨鱼2018 阅读(114) 评论(0) 推荐(0)
摘要:001、系统 [root@localhost home]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) 002、查看当前glibc版本 [root@localhost home]# ldd --version ldd (G 阅读全文
posted @ 2022-09-30 16:03 小鲨鱼2018 阅读(4311) 评论(0) 推荐(0)
摘要:001、 ldd --version 阅读全文
posted @ 2022-09-30 15:51 小鲨鱼2018 阅读(98) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2022-09-30 15:48 小鲨鱼2018 阅读(65) 评论(0) 推荐(0)
摘要:001、系统 [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) 002、当前make版本 [root@localhost ~]# make --version GNU Make 3.82 阅读全文
posted @ 2022-09-30 15:47 小鲨鱼2018 阅读(2946) 评论(0) 推荐(1)
摘要:001、系统 [root@localhost home]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) 002、当前gcc 及 g++版本 [root@localhost home]# gcc --version gcc 阅读全文
posted @ 2022-09-30 11:44 小鲨鱼2018 阅读(1822) 评论(0) 推荐(0)

上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 77 下一页