随笔分类 - Linux
CentOS7
摘要:修改配置文件(永久修改) 命令方式(临时修改重启失效) ` `
阅读全文
摘要:系统环境 安装依赖 添加Docker Yum源 安装报错 先安装containerd.io 再安装docker ce 打开Docker服务 ` `
阅读全文
摘要:系统环境 yum安装 ` ` Redis服务启动 Redis开机启动 查看运行状态 查看程序进程以及端口 6379
阅读全文
摘要:# yum install telnet Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Resolving Dependencies --> Running transaction check > P
阅读全文
摘要: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/ # 导入镜像
阅读全文
摘要:Socket5 curl --socks5 10.2.46.19:10808 http://www.baidu.com # 查询结果 <!DOCTYPE html> <!--STATUS OK--><html> <head><meta http-equiv=content-type content=
阅读全文
摘要:使用subprocess模块 import subprocess # 防火墙服务存在关闭状态 child1 = subprocess.Popen(["systemctl status firewalld | grep Active"], stdout=subprocess.PIPE, shell=T
阅读全文
摘要:Linux执行完命令之后默认会有一个返回值 # ls app backupconfig.json Doc manage.py __pycache__ settings.py # echo $? 0 错误对照表 "OS error code 1: Operation not permitted" "O
阅读全文
摘要:Python 通过pyodbc 连接SQL Server 数据库驱动 安装环境 cat /etc/redhat-release CentOS Linux release 7.7.1908 (Core) 微软官网 https://docs.microsoft.com/zh-cn/sql/connect
阅读全文
浙公网安备 33010602011771号