随笔分类 -  Linux

CentOS7
摘要:` ` 阅读全文
posted @ 2020-02-18 09:41 LeoShi2020 阅读(304) 评论(0) 推荐(0)
摘要:修改配置文件(永久修改) 命令方式(临时修改重启失效) ` ` 阅读全文
posted @ 2020-02-18 09:23 LeoShi2020 阅读(775) 评论(0) 推荐(0)
摘要:系统环境 安装依赖 添加Docker Yum源 安装报错 先安装containerd.io 再安装docker ce 打开Docker服务 ` ` 阅读全文
posted @ 2020-02-18 09:19 LeoShi2020 阅读(5642) 评论(1) 推荐(1)
摘要:` ` 阅读全文
posted @ 2020-02-18 09:03 LeoShi2020 阅读(487) 评论(0) 推荐(0)
摘要:系统环境 yum安装 ` ` Redis服务启动 Redis开机启动 查看运行状态 查看程序进程以及端口 6379 阅读全文
posted @ 2020-02-16 17:02 LeoShi2020 阅读(674) 评论(0) 推荐(0)
摘要:# yum install telnet Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Resolving Dependencies --> Running transaction check > P 阅读全文
posted @ 2020-02-16 12:30 LeoShi2020 阅读(559) 评论(0) 推荐(0)
摘要:shell直接运行 cat > 01.yumrepo.sh << 'EOF' # 创建备份路径 mkdir -p /etc/yum.repos.d/repo.bak/ # 备份源 mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/repo.bak/ # 导入镜像 阅读全文
posted @ 2020-02-16 12:26 LeoShi2020 阅读(7569) 评论(0) 推荐(0)
摘要:Socket5 curl --socks5 10.2.46.19:10808 http://www.baidu.com # 查询结果 <!DOCTYPE html> <!--STATUS OK--><html> <head><meta http-equiv=content-type content= 阅读全文
posted @ 2020-02-13 12:17 LeoShi2020 阅读(2006) 评论(1) 推荐(0)
摘要:使用subprocess模块 import subprocess # 防火墙服务存在关闭状态 child1 = subprocess.Popen(["systemctl status firewalld | grep Active"], stdout=subprocess.PIPE, shell=T 阅读全文
posted @ 2020-02-12 17:40 LeoShi2020 阅读(460) 评论(0) 推荐(0)
摘要:Linux执行完命令之后默认会有一个返回值 # ls app backupconfig.json Doc manage.py __pycache__ settings.py # echo $? 0 错误对照表 "OS error code 1: Operation not permitted" "O 阅读全文
posted @ 2020-02-12 13:37 LeoShi2020 阅读(1475) 评论(0) 推荐(0)
摘要:Python 通过pyodbc 连接SQL Server 数据库驱动 安装环境 cat /etc/redhat-release CentOS Linux release 7.7.1908 (Core) 微软官网 https://docs.microsoft.com/zh-cn/sql/connect 阅读全文
posted @ 2020-02-12 10:53 LeoShi2020 阅读(5150) 评论(0) 推荐(0)